Skip to content

Commit

Permalink
Razorwire icon fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lumipharon committed Nov 7, 2024
1 parent 73abf9e commit deeb0ec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions code/game/objects/structures/razorwire.dm
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,7 @@
return ..()

/obj/structure/razorwire/update_icon_state()
. = ..()
var/health_percent = round(obj_integrity/max_integrity * 100)
var/remaining = CEILING(health_percent, 25)
icon_state = "[base_icon_state]_[remaining]"
icon_state = "[base_icon_state]_[CEILING(ROUND_UP(obj_integrity/max_integrity * 100), 25)]"

/obj/structure/razorwire/effect_smoke(obj/effect/particle_effect/smoke/S)
. = ..()
Expand Down

0 comments on commit deeb0ec

Please sign in to comment.