Opened 7 years ago

Last modified 4 years ago

#4504 closed defect

[PATCH] Insufficient DisabledTechnologies, StartingTechnologies, GatherRateMultiplier, StartingTechnologies, StartingResources, PopulationCap implementation — at Initial Version

Reported by: elexis Owned by:
Priority: Should Have Milestone: Alpha 24
Component: Simulation Keywords: patch
Cc: Patch:

Description

DisabledTechnologies can only be set from JS trigger scripts, but not from the JSON / XML mapfile, because r16632 only implemented the code for DisabledTemplates.

Same is true for StartingTechnologies.

GatherRateMultiplier seems to be implemented, but commented out.

StartingResources implementation is bad as the global property is done in InitGame.js and sets all resources equally by one number, while the player-individual property is done in Player.js and can specify different resource counts per type.

Population limitation is badly implemented, the global one is called PopulationCap and done in InitGame.js, the local one is called PopulationLimit and done in Player.js. This part doesn't have to be unified in this ticket.

To avoid copy & pasting, helper functions should be used.

Halfway finished patch I lost interest in at https://code.wildfiregames.com/P32

Change History (0)

Note: See TracTickets for help on using tickets.