| 1246 | } |
| 1247 | |
| 1248 | GameValue ObjAddMagazine(const GameState* state, GameValuePar oper1, GameValuePar oper2) |
| 1249 | { |
| 1250 | EntityAI* ai = dyn_cast<EntityAI>(GetObject(oper1)); |
| 1251 | if (!ai) |
| 1252 | { |
| 1253 | return NOTHING; |
| 1254 | } |
| 1255 | GameStringType magazine = oper2; |
| 1256 | ai->AddMagazine(magazine); |
| 1257 | ai->AutoReloadAll(); |
| 1258 | return NOTHING; |
| 1259 | } |
| 1260 | |
| 1261 | GameValue ObjRemoveMagazine(const GameState* state, GameValuePar oper1, GameValuePar oper2) |
| 1262 | { |
nothing calls this directly
no test coverage detected