This is the mail archive of the
xconq7@sources.redhat.com
mailing list for the Xconq project.
Re: Building doesn't ever use treasury?
- From: Hans Ronne <hronne at pp dot sbbs dot se>
- To: "Stanley Sutton" <sutton at t-surf dot com>
- Cc: xconq7 at sources dot redhat dot com
- Date: Wed, 31 Jul 2002 23:52:22 +0200
- Subject: Re: Building doesn't ever use treasury?
>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