HomeWildfire Games

Don't (mis)use technologies to differentiate elephants.

Description

Don't (mis)use technologies to differentiate elephants.

Use mixins.

Differential revision: D4590

Event Timeline

#6659, but I'm a bit lost why,,, It works fine for mercenaries.

Stan added a subscriber: Stan.Nov 24 2022, 9:01 AM

Maybe because of the order of templates?

Langbart added a subscriber: Langbart.EditedNov 24 2022, 9:55 AM

#6659, but I'm a bit lost why,,, It works fine for mercenaries.

When I do this, I no longer get errors.

--- a/binaries/data/mods/public/simulation/templates/template_unit_champion_elephant.xml
+++ b/binaries/data/mods/public/simulation/templates/template_unit_champion_elephant.xml
@@ -3,10 +3,6 @@
   <Cost>
     <Population>3</Population>
     <BuildTime>36</BuildTime>
-    <Resources>
-      <food>300</food>
-      <metal>200</metal>
-    </Resources>
   </Cost>
   <Footprint replace="">
     <Square width="4.5" depth="9.0"/>
@@ -19,11 +15,6 @@
     <GenericName>War Elephant</GenericName>
     <VisibleClasses datatype="tokens">Elephant</VisibleClasses>
   </Identity>
-  <Loot>
-    <xp>300</xp>
-    <food>30</food>
-    <metal>20</metal>
-  </Loot>
   <Position>
     <TurnRate>4</TurnRate>
   </Position>

(🌵 not a solution)

Langbart added a comment.EditedNov 24 2022, 10:28 AM

replace op="mul" with op="mul_round" ?

--> rP25245

EDIT:

"a fox is not caught twice in the same snare" -- not true apparently. ;(