| 1210 | } |
| 1211 | |
| 1212 | GameValue ObjAddWeapon(const GameState* state, GameValuePar oper1, GameValuePar oper2) |
| 1213 | { |
| 1214 | EntityAI* ai = dyn_cast<EntityAI>(GetObject(oper1)); |
| 1215 | if (!ai) |
| 1216 | { |
| 1217 | return NOTHING; |
| 1218 | } |
| 1219 | GameStringType weapon = oper2; |
| 1220 | ai->AddWeapon(weapon); |
| 1221 | ai->AutoReloadAll(); |
| 1222 | return NOTHING; |
| 1223 | } |
| 1224 | |
| 1225 | GameValue ObjRemoveWeapon(const GameState* state, GameValuePar oper1, GameValuePar oper2) |
| 1226 | { |
nothing calls this directly
no test coverage detected