|
|
转自n网:https://www.nexusmods.com/mewgenics/mods/30
Provides detailed descriptions for character abilities using data scraped from the game's files.
利用从游戏文件抓取的数据,提供角色能力的详细描述。
There are too many abilities to go through manually, so I received help in automating the process using an LLM. Some of the descriptions might be awkward or incorrect as a result; please let me know any issues you find.
功能太多,无法手动完成,所以我得到了利用大型语言模型(LLM)自动化流程的帮助。因此,有些描述可能会显得尴尬或不准确;如果你发现任何问题,请告诉我。
COMPATIBILITY: due to how modding .csv files works, this mod is incompatible with those that edit the description entries of abilities (the ones that have keys end with _DESC) in the files listed below.
兼容性: 由于.csv 文件的模组设计方式,该模组与以下文件中修改能力描述条目(键尾以_DESC 结尾的模组)不兼容。
I edited the /data/text/abilities.csv and /data/text/items.csv file using the following logic:
我用以下逻辑编辑了 /data/text/abilities.csv 和 /data/text/items.csv 文件:
1. Find cells in column A that end with _DESC. These are used as descriptions for abilities, and the file stores all their translations as well. (I didn't edit any of the translations because, as mentioned, these detailed descriptions are simply values copied from the game's code written in english)
1. 在 A 列中寻找以_DESC 结尾的单元格。这些被用作能力描述,文件中也存储了所有翻译。(我没有编辑任何翻译,因为如前所述,这些详细描述只是从游戏英文代码中复制的数值)
2. For each of those cells, find their full text inside .gon files stored in /data/abilities or /data/weapons. These strings are stored inside data structures for the individual abilities, for example inside basic_attacks.gon you can find:
2. 对于这些单元格,在 .gon 文件中查找其全文,存储在 /data/abilities 或 /data/weapons 中。这些字符串存储在各个能力的数据结构中,例如在 basic_attacks.gon 中你可以找到:
BasicRanged {
template lobbed_attack
meta {
name "ABILITY_LOBBEDSHOT_NAME"
desc "ABILITY_LOBBEDSHOT_DESC"
animate_name false
}
target {
min_range 3
max_range 5+bonus_range
}
damage_instance {
damage 4+bonus_ranged_damage
}
}
3. From here we take the relevant info, like min range, max range, and whether or not it scales with ranged damage, and append it to the column B in the abilities.csv file from step 1
3. 接下来我们把相关信息,比如最小射程、最大射程,以及是否随远程伤害加成,然后附加到第一步 abilities.csv 文件的 B 列
4. Some abilities inherit their properties from others. For example, ScatterShot and ScatterShot2:
4. 某些能力会继承他人的属性。例如,ScatterShot 和 ScatterShot2:
ScatterShot {
template lobbed_attack
meta {
name "ABILITY_SCATTERSHOT_NAME"
desc "ABILITY_SCATTERSHOT_DESC"
class Hunter
}
graphics {
}
cost {
infcantrip true
mana 7
}
target {
max_aoe 3
min_range 3
max_range 6+bonus_range
aoe_chance .5
restrictions none
can_multihit true
}
damage_instance {
damage 5+bonus_ranged_damage
type ranged
}
}
ScatterShot2 {
variant_of ScatterShot
meta {
desc "ABILITY_SCATTERSHOT2_DESC"
}
target {
max_aoe 4
aoe_restrictions [exclude_allies]
}
}
For ScatterShot2, values from ScatterShot were used in addition to its own properties.
对于 ScatterShot2,除了其自身属性外,还使用了 ScatterShot 的值。
I only scraped values that I found in /data/ability_templates/ability_templates.gon
我只抓取了我在 /data/ability_templates/ability_templates.gon 里找到的数值
There's probably other stuff missing, but this is what I have for now.
可能还有其他东西缺失,但这就是我目前掌握的。
|
|