jkp1187
Unindicted Co-Conspirator
I am trying to create a mod slight rules variant, whereby Airships begin with a small range when they initially become available with PHYSICS (say, a range of two (2), just enough to let them fly recon in border areas, but no more long-range strikes on incoming knights and macement,) then, with the discovery of COMBUSTION, their range is immediately increased to the default range of eight (8).
My initial thought was that I would just piggyback off the code that handles the boost in naval unit movement with the discovery of REFRIGERATION, but it after poking around the XML it doesn't look like I can do it that easily. the REFRIGERATION boost goes to all units in "DOMAIN_SEA", not to specific ones.... So if I wanted to give a +6 boost to Airships, I'd have to give +6 to all other air units, too, which is not what I wanted to do.
Can anyone suggest a solution to this problem? Thanks.
My initial thought was that I would just piggyback off the code that handles the boost in naval unit movement with the discovery of REFRIGERATION, but it after poking around the XML it doesn't look like I can do it that easily. the REFRIGERATION boost goes to all units in "DOMAIN_SEA", not to specific ones.... So if I wanted to give a +6 boost to Airships, I'd have to give +6 to all other air units, too, which is not what I wanted to do.
Can anyone suggest a solution to this problem? Thanks.