Reclamation callins

Reclamation callins

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
code_man
Posts: 260
Joined: 19 Jan 2014, 13:10

Reclamation callins

Post by code_man »

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.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Reclamation callins

Post by Silentwings »

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.
Post Reply

Return to “Feature Requests”