X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fitems%2Fitem%2Farmor.qh;h=2889f9224880b18243f142d69aaf8c1b770c3d54;hb=refs%2Fmerge-requests%2F636%2Fhead;hp=31ae437211596f153d911244b3051514b2cc6c51;hpb=86c4f57358c37c4165945b1c99840aa447b50000;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/items/item/armor.qh b/qcsrc/common/items/item/armor.qh index 31ae43721..2889f9224 100644 --- a/qcsrc/common/items/item/armor.qh +++ b/qcsrc/common/items/item/armor.qh @@ -27,19 +27,19 @@ void item_armorsmall_init(Pickup this, entity item) if(!item.max_armorvalue) item.max_armorvalue = g_pickup_armorsmall_max; if(!GetResourceAmount(item, RESOURCE_ARMOR)) - SetResourceAmountExplicit(item, RESOURCE_ARMOR, g_pickup_armorsmall); + SetResourceAmount(item, RESOURCE_ARMOR, g_pickup_armorsmall); } #endif REGISTER_ITEM(ArmorSmall, Armor) { this.m_canonical_spawnfunc = "item_armor_small"; #ifdef GAMEQC - this.spawnflags = ITEM_FLAG_NORMAL; + this.spawnflags = ITEM_FLAG_NORMAL | ITEM_FLAG_RESOURCE; this.m_model = MDL_ArmorSmall_ITEM; this.m_sound = SND_ArmorSmall; #endif this.netname = "armor_small"; - this.m_name = "5 Armor"; + this.m_name = _("Small armor"); this.m_icon = "armor"; #ifdef SVQC this.m_itemid = IT_ARMOR_SHARD; @@ -65,19 +65,19 @@ void item_armormedium_init(Pickup this, entity item) if(!item.max_armorvalue) item.max_armorvalue = g_pickup_armormedium_max; if(!GetResourceAmount(item, RESOURCE_ARMOR)) - SetResourceAmountExplicit(item, RESOURCE_ARMOR, g_pickup_armormedium); + SetResourceAmount(item, RESOURCE_ARMOR, g_pickup_armormedium); } #endif REGISTER_ITEM(ArmorMedium, Armor) { this.m_canonical_spawnfunc = "item_armor_medium"; #ifdef GAMEQC - this.spawnflags = ITEM_FLAG_NORMAL; + this.spawnflags = ITEM_FLAG_NORMAL | ITEM_FLAG_RESOURCE; this.m_model = MDL_ArmorMedium_ITEM; this.m_sound = SND_ArmorMedium; #endif this.netname = "armor_medium"; - this.m_name = "25 Armor"; + this.m_name = _("Medium armor"); this.m_icon = "armor"; #ifdef SVQC this.m_itemid = IT_ARMOR; @@ -103,19 +103,19 @@ void item_armorbig_init(Pickup this, entity item) if(!item.max_armorvalue) item.max_armorvalue = g_pickup_armorbig_max; if(!GetResourceAmount(item, RESOURCE_ARMOR)) - SetResourceAmountExplicit(item, RESOURCE_ARMOR, g_pickup_armorbig); + SetResourceAmount(item, RESOURCE_ARMOR, g_pickup_armorbig); } #endif REGISTER_ITEM(ArmorBig, Armor) { this.m_canonical_spawnfunc = "item_armor_big"; #ifdef GAMEQC - this.spawnflags = ITEM_FLAG_NORMAL; + this.spawnflags = ITEM_FLAG_NORMAL | ITEM_FLAG_RESOURCE; this.m_model = MDL_ArmorBig_ITEM; this.m_sound = SND_ArmorBig; #endif this.netname = "armor_big"; - this.m_name = "50 Armor"; + this.m_name = _("Big armor"); this.m_icon = "armor"; this.m_color = '0 1 0'; this.m_waypoint = _("Big armor"); @@ -143,19 +143,19 @@ void item_armormega_init(Pickup this, entity item) if(!item.max_armorvalue) item.max_armorvalue = g_pickup_armormega_max; if(!GetResourceAmount(item, RESOURCE_ARMOR)) - SetResourceAmountExplicit(item, RESOURCE_ARMOR, g_pickup_armormega); + SetResourceAmount(item, RESOURCE_ARMOR, g_pickup_armormega); } #endif REGISTER_ITEM(ArmorMega, Armor) { this.m_canonical_spawnfunc = "item_armor_mega"; #ifdef GAMEQC - this.spawnflags = ITEM_FLAG_NORMAL; + this.spawnflags = ITEM_FLAG_NORMAL | ITEM_FLAG_RESOURCE; this.m_model = MDL_ArmorMega_ITEM; this.m_sound = SND_ArmorMega; #endif this.netname = "armor_mega"; - this.m_name = "100 Armor"; + this.m_name = _("Mega armor"); this.m_icon = "item_large_armor"; this.m_color = '0 1 0'; this.m_waypoint = _("Mega armor");