Skip to content

Commit

Permalink
That
Browse files Browse the repository at this point in the history
  • Loading branch information
silicons committed Jan 28, 2025
1 parent cc024b6 commit 0db6539
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 8 additions & 2 deletions code/modules/projectiles/guns/gun/projectile/energy/frontier.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@
. = ..()
if(.)
return
#warn inactive held item check
var/mob/user = e_args.performer
if(!user.inventory.count_empty_hands())
return
if(recharging)
return
. = TRUE
recharging = 1
update_icon()
user.visible_message("<span class='notice'>[user] opens \the [src] and starts pumping the handle.</span>", \
Expand Down Expand Up @@ -108,10 +110,14 @@

/obj/item/gun/projectile/energy/frontier/taj/on_attack_hand(datum/event_args/actor/clickchain/e_args)
. = ..()
#warn inactive held check or component this shit
if(.)
return
if(!user.inventory.count_empty_hands())

Check failure on line 115 in code/modules/projectiles/guns/gun/projectile/energy/frontier.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "user"
return
var/mob/user = e_args.performer
if(recharging)
return
. = TRUE
recharging = 1
update_icon()
user.visible_message("<span class='notice'>[user] begins to turn the crank of \the [src].</span>", \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
. = ..()
if(.)
return
#warn offhand or component
var/mob/user = e_args.performer
if(!user.inventory.count_empty_hands())
return
if(recharging)
return
. = TRUE
recharging = 1
user.visible_message("<span class='notice'>[user] begins to tighten \the [src]'s electric bowstring.</span>", \
"<span class='notice'>You begin to tighten \the [src]'s electric bowstring</span>")
Expand Down

0 comments on commit 0db6539

Please sign in to comment.