MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / aMatcenSetValues

Function aMatcenSetValues

scripts/DallasFuncs.cpp:3145–3151  ·  view source on GitHub ↗

$$ACTION Misc Set matcen [m:Matcen] max produced = [i:MaxProduced=-1], production rate multiplier = [f:Multiplier=1.0], max alive children = [i:MaxAlive=-1:1|32] aMatcenSetValues Set matcen values Set matcen values for max produced, production rate multiplier, and max alive children Parameters: Matcen: the matcen to set MaxProduced: the total number this matcen will produce in its lifetime, o

Source from the content-addressed store, hash-verified

3143$$END
3144*/
3145void aMatcenSetValues(int matcen_id, int max_produced, float multiplier, int max_alive) {
3146 if (matcen_id >= 0) {
3147 Matcen_Value(matcen_id, VF_SET, MTNV_I_MAX_PROD, &max_produced, 0);
3148 Matcen_Value(matcen_id, VF_SET, MTNV_F_PROD_MULTIPLIER, &multiplier, 0);
3149 Matcen_Value(matcen_id, VF_SET, MTNV_I_MAX_ALIVE_CHILDREN, &max_alive, 0);
3150 }
3151}
3152
3153/*
3154$$ACTION

Callers 3

CallEventMethod · 0.85
SetMatCenToLevel1Function · 0.85
SetMatCenToLevel2Function · 0.85

Calls 1

Matcen_ValueFunction · 0.85

Tested by

no test coverage detected