Reclamation callins
Posted: 30 Dec 2014, 22:33
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.
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.