update: Drop unnecessary "not simulation" guards
Since changing *sp is safe now, we can update sp->sct_work, sp->sct_loyal, sp->sct-che unconditionally in do_feed(), and likewise sp->sct_item and sp's resource in produce(). Output of budget in smoke test and update test changes slightly, because it now executes more code, and the PRNs this consumes affect random rounding. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
157892b449
commit
1c0ff91e62
3 changed files with 20 additions and 23 deletions
|
@ -23,9 +23,9 @@
|
|||
Play#1 input budget
|
||||
Play#1 command budget
|
||||
Play#1 output Play#1 1 Sector Type Production Cost
|
||||
Play#1 output Play#1 1 uranium mine 318 rad 740
|
||||
Play#1 output Play#1 1 uranium mine 317 rad 740
|
||||
Play#1 output Play#1 1 park 78 happy 702
|
||||
Play#1 output Play#1 1 defense plant 13 guns 420
|
||||
Play#1 output Play#1 1 defense plant 12 guns 420
|
||||
Play#1 output Play#1 1 shell industry 156 shells 528
|
||||
Play#1 output Play#1 1 technical center 5 tech 2700
|
||||
Play#1 output Play#1 1 research lab 6 medical 900
|
||||
|
@ -33,21 +33,21 @@
|
|||
Play#1 output Play#1 1 bank 41 bars 410
|
||||
Play#1 output Play#1 1 refinery 2581 petrol 291
|
||||
Play#1 output Play#1 1 enlistment center 75 mil 225
|
||||
Play#1 output Play#1 1 Ship building 12 ships 1531
|
||||
Play#1 output Play#1 1 Ship building 13 ships 1536
|
||||
Play#1 output Play#1 1 Ship maintenance 32 ships 2202
|
||||
Play#1 output Play#1 1 Plane building 13 planes 1932
|
||||
Play#1 output Play#1 1 Plane building 13 planes 1936
|
||||
Play#1 output Play#1 1 Plane maintenance 20 planes 1004
|
||||
Play#1 output Play#1 1 Unit building 6 units 2300
|
||||
Play#1 output Play#1 1 Unit maintenance 16 units 510
|
||||
Play#1 output Play#1 1 Sector building 40 sectors 773
|
||||
Play#1 output Play#1 1 Sector maintenance 2 sectors 120
|
||||
Play#1 output Play#1 1 Military payroll 1155 mil, 0 res 5777
|
||||
Play#1 output Play#1 1 Total expenses.....................................................24667
|
||||
Play#1 output Play#1 1 Total expenses.....................................................24676
|
||||
Play#1 output Play#1 1 Income from taxes 26911 civs, 9007 uws +12625
|
||||
Play#1 output Play#1 1 Total income......................................................+12625
|
||||
Play#1 output Play#1 1 Balance forward 25000
|
||||
Play#1 output Play#1 1 Estimated delta -12042
|
||||
Play#1 output Play#1 1 Estimated new treasury.............................................12958
|
||||
Play#1 output Play#1 1 Estimated delta -12051
|
||||
Play#1 output Play#1 1 Estimated new treasury.............................................12949
|
||||
Play#1 output Play#1 6 0 99
|
||||
Play#1 input neweff * ?newd#-
|
||||
Play#1 command neweff
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue