Skip to content

Commit

Permalink
Merge pull request #785 from CeladonSS13/upstream-pr-3135
Browse files Browse the repository at this point in the history
[MIRROR] Gives the lever-action rifle a gunslinger ability and removes the gunslinger damage buff from the shadow.
  • Loading branch information
Mirag1993 authored Jun 28, 2024
2 parents 6a48657 + 677f063 commit 70cdd2a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
7 changes: 0 additions & 7 deletions code/modules/projectiles/guns/ballistic/revolver.dm
Original file line number Diff line number Diff line change
Expand Up @@ -718,10 +718,3 @@ EMPTY_GUN_HELPER(revolver/detective)
/obj/item/gun/ballistic/revolver/shadow/ComponentInitialize()
. = ..()
AddComponent(/datum/component/ammo_hud/revolver)

/obj/item/gun/ballistic/revolver/shadow/before_firing(atom/target, mob/user)
. = ..()
// if you go through the pain of not only using this shitty gun, but also with the fucking gunslinger quirk, you deserve this bonus. not a BIG bonus, but enough as an incentive to make people actually take the quirk.
if(chambered.BB && (HAS_TRAIT(user, TRAIT_GUNSLINGER)))
chambered.BB.damage += 5
chambered.BB.armour_penetration += 5
12 changes: 12 additions & 0 deletions code/modules/projectiles/guns/ballistic/shotgun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,18 @@ EMPTY_GUN_HELPER(shotgun/bulldog/inteq)
if(!wielded)
SpinAnimation(7,1)

/obj/item/gun/ballistic/shotgun/flamingarrow/process_fire(atom/target, mob/living/user, message = TRUE, params = null, zone_override = "", bonus_spread = 0)
var/fan = FALSE
if(HAS_TRAIT(user, TRAIT_GUNSLINGER) && !semi_auto && wielded_fully && loc == user && !safety)
fan = TRUE
fire_delay = 0.35 SECONDS
. = ..()
fire_delay = src::fire_delay
if(fan)
rack()
to_chat(user, "<span class='notice'>You quickly rack the [bolt_wording] of \the [src]!</span>")
balloon_alert_to_viewers("quickly racks!")
fire_delay = 0 SECONDS

/obj/item/gun/ballistic/shotgun/flamingarrow/sawoff(mob/user)
. = ..()
Expand Down

0 comments on commit 70cdd2a

Please sign in to comment.