1 REGISTER_RESOURCE(HEALTH, NEW(Resource)) {
2 this.netname = "health";
7 REGISTER_RESOURCE(ARMOR, NEW(Resource)) {
8 this.netname = "armor";
10 this.m_field = armorvalue;
14 CLASS(AmmoResource, Resource)
16 ATTRIB(AmmoResource, m_hidden, bool, false);
18 ENDCLASS(AmmoResource)
20 REGISTER_RESOURCE(SHELLS, NEW(AmmoResource)) {
21 this.netname = "shells";
23 this.m_field = ammo_shells;
26 REGISTER_RESOURCE(BULLETS, NEW(AmmoResource)) {
27 this.netname = "bullets";
29 this.m_field = ammo_nails;
32 REGISTER_RESOURCE(ROCKETS, NEW(AmmoResource)) {
33 this.netname = "rockets";
35 this.m_field = ammo_rockets;
38 REGISTER_RESOURCE(CELLS, NEW(AmmoResource)) {
39 this.netname = "cells";
41 this.m_field = ammo_cells;
44 REGISTER_RESOURCE(PLASMA, NEW(AmmoResource)) {
45 this.netname = "plasma";
47 this.m_field = ammo_plasma;
50 this.m_hidden = true; // WIP ammo type
53 REGISTER_RESOURCE(FUEL, NEW(AmmoResource)) {
54 this.netname = "fuel";
56 this.m_field = ammo_fuel;
59 this.m_hidden = true; // displayed in a separate panel