Skip to content

Commit

Permalink
pottery shattering
Browse files Browse the repository at this point in the history
  • Loading branch information
X0-11 committed Jun 2, 2024
1 parent f9b585d commit 615d38a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code/modules/halo/clothing/armor_repair/clothing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@

var/new_thickness = round(armor_thickness - min(damage,thickness_dam_cap))
new_thickness = max(0, new_thickness)
armor_thickness = new_thickness
update_damage_description()

var/mob/user = src.loc
if(istype(user))
if(new_thickness == 0)
if(new_thickness == 0 && world.time >= next_warning_time)
to_chat(user, "<font size = 4><span class = 'warning'>Your [name]'s armor plating is [damage_type == BURN ? "melted away" : "destroyed"]! </span></font>")
playsound(user, armor_break_sound, 70, 1)

Expand Down

0 comments on commit 615d38a

Please sign in to comment.