- this.personal.ammo_rockets = this.ammo_rockets;
- this.personal.ammo_nails = this.ammo_nails;
- this.personal.ammo_cells = this.ammo_cells;
- this.personal.ammo_plasma = this.ammo_plasma;
- this.personal.ammo_shells = this.ammo_shells;
- this.personal.ammo_fuel = this.ammo_fuel;
- this.personal.health = max(1, this.health);
- this.personal.armorvalue = this.armorvalue;
+ SetResource(this.personal, RES_ROCKETS, GetResource(this, RES_ROCKETS));
+ SetResource(this.personal, RES_BULLETS, GetResource(this, RES_BULLETS));
+ SetResource(this.personal, RES_CELLS, GetResource(this, RES_CELLS));
+ SetResource(this.personal, RES_PLASMA, GetResource(this, RES_PLASMA));
+ SetResource(this.personal, RES_SHELLS, GetResource(this, RES_SHELLS));
+ SetResource(this.personal, RES_FUEL, GetResource(this, RES_FUEL));
+ SetResource(this.personal, RES_HEALTH, max(1, GetResource(this, RES_HEALTH)));
+ SetResource(this.personal, RES_ARMOR, GetResource(this, RES_ARMOR));