Changeset View
Standalone View
binaries/data/mods/public/simulation/templates/template_unit_ship_merchant.xml
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | <Capacities> | ||||
<food>75</food> | <food>75</food> | ||||
<wood>75</wood> | <wood>75</wood> | ||||
<stone>50</stone> | <stone>50</stone> | ||||
<metal>50</metal> | <metal>50</metal> | ||||
</Capacities> | </Capacities> | ||||
</ResourceGatherer> | </ResourceGatherer> | ||||
<Trader> | <Trader> | ||||
<GainMultiplier>0.75</GainMultiplier> | <GainMultiplier>0.75</GainMultiplier> | ||||
<GainMultiplierPerGarrisonedTrader>0.2</GainMultiplierPerGarrisonedTrader> | |||||
Nescio: Very long node name (33 letters).
Also, how much work would it be to allow for custom classes? | |||||
Done Inline ActionsFeel free to propose shorter name :) Silier: Feel free to propose shorter name :)
Short answer: Not much.
Longer:
That would make… | |||||
Not Done Inline ActionsWould you deem it also out of scope to not hard-code the trader part? So not allowing more multipliers but just adding a GarrisonGainMultiplierClasses-node? (One could argue that garrisoning slaves would also increase the gain or something.) Then instead of let cmpGarrisonedUnitTrader = Engine.QueryInterface(entity, IID_Trader); if (cmpGarrisonedUnitTrader) one could do: MatchesClassesList(...)? Freagarach: Would you deem it also out of scope to not hard-code the trader part? So not allowing more… | |||||
</Trader> | </Trader> | ||||
<UnitAI> | <UnitAI> | ||||
<DefaultStance>passive</DefaultStance> | <DefaultStance>passive</DefaultStance> | ||||
<CanGuard>false</CanGuard> | <CanGuard>false</CanGuard> | ||||
<CanPatrol>false</CanPatrol> | <CanPatrol>false</CanPatrol> | ||||
</UnitAI> | </UnitAI> | ||||
<UnitMotion> | <UnitMotion> | ||||
<PassabilityClass>ship-small</PassabilityClass> | <PassabilityClass>ship-small</PassabilityClass> | ||||
Show All 9 Lines |
Very long node name (33 letters).
Also, how much work would it be to allow for custom classes? E.g. a DonkeyTrader adds 0.1, OxTrader 0.2, CamelTrader 0.3; somewhat similar to bonus attacks.
Just wondering; I'm not sure it's worth it, though.