Skip to content

Commit

Permalink
Merge pull request #3557 from X0-11/experimental-combat-changes
Browse files Browse the repository at this point in the history
less pottery shattering
  • Loading branch information
BDpuffy420 committed Jun 2, 2024
2 parents aa0e6db + d531b19 commit 24e5ccc
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions code/modules/halo/clothing/armor_repair/clothing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,17 @@

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)
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)
if(world.time > next_warning_time)
if(new_thickness == 0)
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)

else if(istype(user) && world.time >= next_warning_time)
else if(istype(user))
to_chat(user, "<span class = 'warning'>Your [name]'s armor plating is [damage_type == BURN ? "scorched" : "damaged"]! </span>")
next_warning_time = world.time + WARNING_DELAY
to_chat(user, "<span class = 'warning'>Your [name]'s armor plating is [damage_type == BURN ? "scorched" : "damaged"]! </span>")

/obj/item/clothing/proc/update_damage_description(var/damage_type = BRUTE)
var/desc_addition_to_apply = "Its armor plating is nominal."
Expand Down

0 comments on commit 24e5ccc

Please sign in to comment.