CnCNet / WorldAlteringEditor

Map editor for C&C: Red Alert 2, C&C: Tiberian Sun and Dawn of the Tiberium Age.
Other
76 stars 25 forks source link

De-hardcode the overlays that Tiberiums use #147

Closed ZivDero closed 6 months ago

ZivDero commented 6 months ago

This PR removes the hardcoded connection of Tiberiums to Overlays, making any inter-game differences configurable, and allowing for the use of new Tiberiums in the future if any engine extensions support that.

Vanilla overlay IDs are still hardcoded (the same between both games) as fallbacks if none are set in Tiberiums.ini

Also fixes a bug where Tiberiums were duplicated if the [Tiberiums] section was redefined in "RulesFS" and any of the Tiberiums had sections. Simultaneously also makes Tiberium properties be loaded from the map.

Also fixes a bug where the two methods of counting credits on the map overcaulculated the actual number of credits (in the same way as FA2 without FA2 SP), that is, by an extra number of tiles with Triberium * Tiberium value.

The YR config should have the following modification:

Cruentus=GEM01,GEM02,GEM03,GEM04,GEM05,GEM06,GEM07,GEM08,GEM09,GEM10,GEM11,GEM12