Skip to content

Commit

Permalink
A
Browse files Browse the repository at this point in the history
  • Loading branch information
CapCamIII committed May 20, 2024
1 parent 139fe26 commit 72cb7d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/modules/projectiles/guns/smartgun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@
to_chat(user, "[icon2html(src, usr)] Can't switch ammunition type when \the [src]'s fire restriction is disabled.")
return
secondary_toggled = !secondary_toggled
to_chat(user, "[icon2html(src, usr)] You changed \the [src]'s ammo preparation procedures. You now fire [secondary_toggled ? "armor shredding rounds" : "highly precise rounds"].")
balloon_alert(user, "firing [secondary_toggled ? "armor shredding" : "highly precise"]")
to_chat(user, "[icon2html(src, usr)] You changed \the [src]'s ammo preparation procedures. You now fire [secondary_toggled ? "armor piercing rounds" : "high velocity rounds"].")
balloon_alert(user, "firing [secondary_toggled ? "armor piercing" : "high velocity"]")
playsound(loc,'sound/machines/click.ogg', 25, 1)
ammo = secondary_toggled ? ammo_secondary : ammo_primary
var/datum/action/item_action/smartgun/toggle_ammo_type/TAT = locate(/datum/action/item_action/smartgun/toggle_ammo_type) in actions
Expand All @@ -356,10 +356,12 @@
secondary_toggled = FALSE
if(iff_enabled)
add_bullet_trait(BULLET_TRAIT_ENTRY_ID("iff", /datum/element/bullet_trait_iff))
damage_mult -= BULLET_DAMAGE_MULT_TIER_5
drain += 10
MD.iff_signal = initial(MD.iff_signal)
if(!iff_enabled)
remove_bullet_trait("iff")
damage_mult += BULLET_DAMAGE_MULT_TIER_5 //:trollface:
drain -= 10
MD.iff_signal = null

Expand Down

0 comments on commit 72cb7d6

Please sign in to comment.