Skip to content

Commit

Permalink
better name for a var
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien committed Feb 21, 2024
1 parent b707865 commit 6d9e349
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions code/game/objects/structures/barricade/barricade.dm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
var/repair_materials = list()
var/metallic = TRUE
/// Lower limit of damage beyond which the barricade cannot be fixed by welder. Compared to damage_state. If null it can be repaired at any damage_state.
var/welder_fix = null
var/welder_lower_damage_limit = null

/obj/structure/barricade/Initialize(mapload, mob/user)
. = ..()
Expand Down Expand Up @@ -488,7 +488,7 @@
to_chat(user, SPAN_WARNING("[src] doesn't need repairs."))
return FALSE

if(!(isnull(damage_state)) && !(isnull(welder_fix)) && damage_state >= welder_fix)
if(!(isnull(damage_state)) && !(isnull(welder_lower_damage_limit)) && damage_state >= welder_lower_damage_limit)
to_chat(user, SPAN_WARNING("[src] has sustained too much structural damage to be repaired."))
return FALSE

Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/structures/barricade/metal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
var/build_state = BARRICADE_BSTATE_SECURED //Look at __game.dm for barricade defines
var/upgrade = null

welder_fix = BARRICADE_DMG_HEAVY
welder_lower_damage_limit = BARRICADE_DMG_HEAVY

/obj/structure/barricade/metal/update_icon()
. = ..()
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/structures/barricade/plasteel.dm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
var/recentlyflipped = FALSE
var/hasconnectionoverlay = TRUE
var/linkable = TRUE
welder_fix = BARRICADE_DMG_HEAVY
welder_lower_damage_limit = BARRICADE_DMG_HEAVY

/obj/structure/barricade/plasteel/update_icon()
..()
Expand Down

0 comments on commit 6d9e349

Please sign in to comment.