Building doesn't ever use treasury?
Hans Ronne
hronne@pp.sbbs.se
Wed Jul 31 14:56:00 GMT 2002
>So far, almost every command I've documented in actions.c (about 1/2 way
>through), checks to see if the teasury can be used to supply materials.
>However; do_build_action expects all the materials to be supplied by the
>building unit.
The advanced unit code (which is where the treasury comes into play) uses
what is known these days as "creative accounting". Thus, before the action,
the side transfers all its assets to the unit in question so that it looks
much richer than it is. Then it immediately takes any remaining assets
back. Check out take_all_from_treasury and give_all_to_treasury in run.c.
Hans
Hans Ronne
hronne@pp.sbbs.se
More information about the Xconq7
mailing list