mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-22 16:12:19 +00:00
Sniper Ammo Count Fix (#11339)
This commit is contained in:
@@ -31,6 +31,14 @@
|
|||||||
recoil_wielded = 2
|
recoil_wielded = 2
|
||||||
accuracy_wielded = -1
|
accuracy_wielded = -1
|
||||||
|
|
||||||
|
/obj/item/gun/projectile/heavysniper/get_ammo()
|
||||||
|
var/ammo_count = 0
|
||||||
|
for(var/thing in loaded)
|
||||||
|
var/obj/item/ammo_casing/AC = thing
|
||||||
|
if(AC.BB) // my favourite band - geeves
|
||||||
|
ammo_count++
|
||||||
|
return ammo_count
|
||||||
|
|
||||||
/obj/item/gun/projectile/heavysniper/update_icon()
|
/obj/item/gun/projectile/heavysniper/update_icon()
|
||||||
..()
|
..()
|
||||||
if(bolt_open)
|
if(bolt_open)
|
||||||
@@ -131,11 +139,6 @@
|
|||||||
else
|
else
|
||||||
RH.take_damage(30)
|
RH.take_damage(30)
|
||||||
|
|
||||||
/obj/item/gun/projectile/heavysniper/unathi/get_ammo()
|
|
||||||
if(chambered)
|
|
||||||
return TRUE
|
|
||||||
return FALSE
|
|
||||||
|
|
||||||
/obj/item/gun/projectile/heavysniper/tranq
|
/obj/item/gun/projectile/heavysniper/tranq
|
||||||
name = "tranquilizer rifle"
|
name = "tranquilizer rifle"
|
||||||
desc = "A nonlethal modification to the PTR-7 anti-materiel rifle meant for sedation and capture of the most dangerous of game. Fires .50 cal PPS shells that deploy a torpor inducing drug payload."
|
desc = "A nonlethal modification to the PTR-7 anti-materiel rifle meant for sedation and capture of the most dangerous of game. Fires .50 cal PPS shells that deploy a torpor inducing drug payload."
|
||||||
|
|||||||
6
html/changelogs/geeves-sniper_get_ammo_fix.yml
Normal file
6
html/changelogs/geeves-sniper_get_ammo_fix.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
author: Geeves
|
||||||
|
|
||||||
|
delete-after: True
|
||||||
|
|
||||||
|
changes:
|
||||||
|
- bugfix: "AMRs, tranq rifles, and Hegemony Sluggers will now report their ammo counts correctly."
|
||||||
Reference in New Issue
Block a user