The aim of this project is to create an Advance Wars Clone with a lot of additions customizations and modding support. For Contact Inforamtion see the wiki page. Take a view on the game.
canRepair() only uses building.getConstructionList() so far
the actual BUILDING.replenishUnit() uses both building.getConstructionList() and building.getRepairTypes()
so there's a mismatch for the units that have a matching type, but aren't in the construction list (the ZCOUNIT units)
Moved the conditional in BUILDING.replenishUnit() into BUILDING.canRepair()
Changed building.canRepair() to use the js <BUILDING_TYPE>.canRepair()
canRepair()
only usesbuilding.getConstructionList()
so far the actualBUILDING.replenishUnit()
uses bothbuilding.getConstructionList()
andbuilding.getRepairTypes()
so there's a mismatch for the units that have a matching type, but aren't in the construction list (the ZCOUNIT units)BUILDING.replenishUnit()
intoBUILDING.canRepair()
building.canRepair()
to use the js<BUILDING_TYPE>.canRepair()