Changeset View
Standalone View
binaries/data/mods/public/simulation/templates/gaia/fauna_walrus.xml
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||
<Entity parent="template_unit_fauna_hunt_defensive"> | <Entity parent="template_unit_fauna_hunt_defensive"> | ||||
<Attack> | <Attack> | ||||
<Melee> | <Melee> | ||||
<AttackName>Tusks</AttackName> | |||||
Nescio: If this is to be done at all, then why not simply name it <Name>? Or <Type> or <Weapon>? | |||||
Done Inline ActionsWe have to consider the messages.json file, that will extract all data from the template in the given node. So a general thing like "Name" or "Type" won't work since it is highly likely they will be reused for other components (maybe not in vanilla, but other mods). In that case we can't add the translation context which imo should be there. Regarding weapon had some initial doubts how that would work with capture and animals, but can agree on it. bb: We have to consider the messages.json file, that will extract all data from the template in the… | |||||
Not Done Inline ActionsSorry, I don't quite understand. Both <Identity> and <Upgrade> have a <Tooltip> node; both are properly translated and displayed. So why won't <Name> work? <AttackName>, though far from perfect, might actually be better than <WeaponName>. Nescio: Sorry, I don't quite understand. Both <Identity> and <Upgrade> have a <Tooltip> node; both are… | |||||
Done Inline ActionsHmm right, I would call that a bug in rP18467. Anyway to give the proper context, we do need different nodes. bb: Hmm right, I would call that a bug in rP18467. Anyway to give the proper context, we do need… | |||||
Not Done Inline ActionsWhy is it a bug? Nescio: Why is it a bug? | |||||
Done Inline ActionsThe different tooltips serve fundamentally different purposes, hence if one ever considers adding a general context, one is likely in trouble. bb: The different tooltips serve fundamentally different purposes, hence if one ever considers… | |||||
<Damage> | <Damage> | ||||
<Hack>15.0</Hack> | <Hack>15.0</Hack> | ||||
<Pierce>10.0</Pierce> | <Pierce>10.0</Pierce> | ||||
<Crush>0.0</Crush> | <Crush>0.0</Crush> | ||||
</Damage> | </Damage> | ||||
<MaxRange>4.0</MaxRange> | <MaxRange>4.0</MaxRange> | ||||
<PrepareTime>500</PrepareTime> | <PrepareTime>500</PrepareTime> | ||||
<RepeatTime>1000</RepeatTime> | <RepeatTime>1000</RepeatTime> | ||||
Show All 39 Lines |
If this is to be done at all, then why not simply name it <Name>? Or <Type> or <Weapon>?