Id need 2 callins which i would say should look like this, one for units the other for features both working the same way.
UnitReclaim and FeatureReclaim, being called before any respective thing is about to start reclamation by a unit, each time being called for any unit that tries reclaiming it.
Each with following prototypes: (ThingId, DefId, team, reclaimer) -> metal, energy
The arguments should be obvious and the return values would be two values that would override the actual values of the entire reclamation, meaning they would be added in chuncks of reclaimMethod as defined in modrules.
In addition it would be practical for me to have featureEfficiency param in modrules analogue to the unitEfficiency param.
Reclamation callins
Moderator: Moderators
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Reclamation callins
You can pinpoint when this occurs with AllowUnitBuildStep and AllowFeatureBuildStep, and override as required. E.g. http://imolarpg.dyndns.org/trac/balates ... ix.lua#L33 does something similar.