Skip to content

Commit

Permalink
Fixes oversight in non-standard weapon charging and wayward having a …
Browse files Browse the repository at this point in the history
…useless attack_speed variable (#2177)

le fixes
  • Loading branch information
Gboster-0 authored May 31, 2024
1 parent 6deeeea commit e9a6f0c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/game/objects/items/ego_weapons/_ego_weapon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
if(attack_speed)
user.changeNext_move(CLICK_CD_MELEE * attack_speed)

if(charge)
if(charge && attack_charge_gain)
HandleCharge(1, target)

if(target.anchored || !knockback) // lets not throw machines around
Expand Down
1 change: 0 additions & 1 deletion code/game/objects/items/ego_weapons/he.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,6 @@
righthand_file = 'icons/mob/inhands/weapons/ego_righthand.dmi'
inhand_x_dimension = 32
inhand_y_dimension = 32
attack_speed = 1
hitsound = 'sound/abnormalities/wayward_passenger/attack1.ogg'
reach = 2
damtype = RED_DAMAGE
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/ego_weapons/subtype/charge.dm
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
charge_amount = initial(charge_amount)
CRASH("[src] has somehow aquired a negative charge amount, automatically reset it to the initial charge amount")

if(attack_charge_gain && charge_amount < charge_cap)
if(charge_amount < charge_cap)
charge_amount += added_charge

/// Lets people refund their charge if the allow_ability_cancel var is set to TRUE
Expand Down

0 comments on commit e9a6f0c

Please sign in to comment.