$$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
| 3143 | $$END |
| 3144 | */ |
| 3145 | void 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 |
no test coverage detected