]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/item/health.qh
Reduce name space of resource constants and variables (RESOURCE_* --> RES_*, resour...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / health.qh
index a7dd3c370fd513a76a4432304808144730ee07fa..3944a84cd28d236ea40ce9b5c58f8f75cdedcb0b 100644 (file)
@@ -26,8 +26,8 @@ void item_healthsmall_init(Pickup this, entity item)
 {
     if(!item.max_health)
         item.max_health = g_pickup_healthsmall_max;
 {
     if(!item.max_health)
         item.max_health = g_pickup_healthsmall_max;
-    if(!GetResourceAmount(item, RESOURCE_HEALTH))
-        SetResourceAmount(item, RESOURCE_HEALTH, g_pickup_healthsmall);
+    if(!GetResourceAmount(item, RES_HEALTH))
+        SetResourceAmount(item, RES_HEALTH, g_pickup_healthsmall);
 }
 #endif
 
 }
 #endif
 
@@ -64,8 +64,8 @@ void item_healthmedium_init(Pickup this, entity item)
 {
     if(!item.max_health)
         item.max_health = g_pickup_healthmedium_max;
 {
     if(!item.max_health)
         item.max_health = g_pickup_healthmedium_max;
-    if(!GetResourceAmount(item, RESOURCE_HEALTH))
-        SetResourceAmount(item, RESOURCE_HEALTH, g_pickup_healthmedium);
+    if(!GetResourceAmount(item, RES_HEALTH))
+        SetResourceAmount(item, RES_HEALTH, g_pickup_healthmedium);
 }
 #endif
 
 }
 #endif
 
@@ -102,8 +102,8 @@ void item_healthbig_init(Pickup this, entity item)
 {
     if(!item.max_health)
         item.max_health = g_pickup_healthbig_max;
 {
     if(!item.max_health)
         item.max_health = g_pickup_healthbig_max;
-    if(!GetResourceAmount(item, RESOURCE_HEALTH))
-        SetResourceAmount(item, RESOURCE_HEALTH, g_pickup_healthbig);
+    if(!GetResourceAmount(item, RES_HEALTH))
+        SetResourceAmount(item, RES_HEALTH, g_pickup_healthbig);
 }
 #endif
 
 }
 #endif
 
@@ -142,8 +142,8 @@ void item_healthmega_init(Pickup this, entity item)
 {
     if(!item.max_health)
         item.max_health = g_pickup_healthmega_max;
 {
     if(!item.max_health)
         item.max_health = g_pickup_healthmega_max;
-    if(!GetResourceAmount(item, RESOURCE_HEALTH))
-        SetResourceAmount(item, RESOURCE_HEALTH, g_pickup_healthmega);
+    if(!GetResourceAmount(item, RES_HEALTH))
+        SetResourceAmount(item, RES_HEALTH, g_pickup_healthmega);
 }
 #endif
 
 }
 #endif