Sanitize ProductionQueue and fix bugs in TechTreeCache.

Gives perf win on every tick, and fixes bugs where you lose prereqs when buildings are low power.
This commit is contained in:
Paul Chote
2010-09-17 22:21:49 +12:00
committed by Chris Forbes
parent 692ef539f9
commit 22861fca5a
6 changed files with 152 additions and 106 deletions

View File

@@ -1,26 +1,26 @@
Player:
TechTreeCache:
ProductionQueue@Building:
PlayerProductionQueue@Building:
Type: Building
BuildSpeed: .4
LowPowerSlowdown: 3
ProductionQueue@Defense:
PlayerProductionQueue@Defense:
Type: Defense
BuildSpeed: .4
LowPowerSlowdown: 3
ProductionQueue@Vehicle:
PlayerProductionQueue@Vehicle:
Type: Vehicle
BuildSpeed: .4
LowPowerSlowdown: 3
ProductionQueue@Infantry:
PlayerProductionQueue@Infantry:
Type: Infantry
BuildSpeed: .4
LowPowerSlowdown: 3
ProductionQueue@Ship:
PlayerProductionQueue@Ship:
Type: Ship
BuildSpeed: .4
LowPowerSlowdown: 3
ProductionQueue@Plane:
PlayerProductionQueue@Plane:
Type: Plane
BuildSpeed: .4
LowPowerSlowdown: 3