removed leftover mentions of ammo_icon

This commit is contained in:
mruncreative
2024-05-28 01:03:56 +02:00
parent 02695ca885
commit 8daf2e4c9d

@ -110,10 +110,6 @@ end end
if player_has_ammo == 1 then
if reload_ammo:get_definition().inventory_image ~= nil then
ammo_icon = reload_ammo:get_definition().inventory_image
end
local gunMeta = itemstack:get_meta()
local ammoCount = gunMeta:get_int("RW_bullets")
local ammoName = gunMeta:get_string("RW_ammo_name")
@ -209,10 +205,6 @@ end end
if player_has_ammo == 1 then
if reload_ammo:get_definition().inventory_image ~= nil then
ammo_icon = reload_ammo:get_definition().inventory_image
end
local gunMeta = itemstack:get_meta()
local ammoCount = gunMeta:get_int("RW_bullets")
local ammoName = gunMeta:get_string("RW_ammo_name")
@ -453,11 +445,6 @@ if gun_skillChance > 0 and gun_skill ~= "" then
rangedweapons_gain_skill(player,gun_skill,gun_skillChance)
end
local ammo_icon = "rangedweapons_emergency_ammo_icon.png"
if bulletStack:get_definition().inventory_image ~= nil then
ammo_icon = bulletStack:get_definition().inventory_image
end
if AmmoCaps ~= nil then
OnCollision = AmmoCaps.OnCollision or function()end