Skip to content

Commit

Permalink
Egg runtime fix (cmss13-devs#4563)
Browse files Browse the repository at this point in the history
# About the pull request

Attacking an egg with a weapon that had no attack_verb would runtime the
attack process, ending up not applying any damage.
Like a welder :|


# Testing Photographs and Procedure
Ja


# Changelog
:cl:
fix: Fixed runtime that could happen when melleing an egg.
/:cl:

---------

Co-authored-by: Rigó János <[email protected]>
  • Loading branch information
JackieEstegado and Rigó János authored Oct 2, 2023
1 parent f02bc34 commit 7177ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/cm_aliens/structures/egg.dm
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
return

user.animation_attack_on(src)
if(W.attack_verb.len)
if(length(W.attack_verb))
visible_message(SPAN_DANGER("\The [src] has been [pick(W.attack_verb)] with \the [W][(user ? " by [user]." : ".")]"))
else
visible_message(SPAN_DANGER("\The [src] has been attacked with \the [W][(user ? " by [user]." : ".")]"))
Expand Down

0 comments on commit 7177ba7

Please sign in to comment.