Skip to content

Commit

Permalink
Makes ui buttons call the right proc (#28267)
Browse files Browse the repository at this point in the history
  • Loading branch information
DGamerL authored Feb 5, 2025
1 parent 1c4a518 commit 16407c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/game/objects/items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,10 @@ GLOBAL_DATUM_INIT(welding_sparks, /mutable_appearance, mutable_appearance('icons
// The default action is attack_self().
// Checks before we get to here are: mob is alive, mob is not restrained, paralyzed, asleep, resting, laying, item is on the mob.
/obj/item/proc/ui_action_click(mob/user, actiontype)
attack_self__legacy__attackchain(user)
if(new_attack_chain)
activate_self(user)
else
attack_self__legacy__attackchain(user)

/obj/item/proc/IsReflect(def_zone) // This proc determines if and at what% an object will reflect energy projectiles if it's in l_hand,r_hand or wear_suit
return FALSE
Expand Down

0 comments on commit 16407c6

Please sign in to comment.