Merge pull request #252 from sheepishgoat/door-stuck-door-stuck

a
This commit is contained in:
evilew
2024-08-31 15:29:46 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
return ..()
var/stuckage_weight = L?.client?.prefs?.stuckage
if(!stuckage_weight)
if(isnull(stuckage_weight) || (stuckage_weight < 10))
return ..() // They aren't able to get stuck
if(L.fatness > (stuckage_weight * 2))
+1 -1
View File
@@ -117,7 +117,7 @@
return
var/breaking_weight = M?.client?.prefs?.chair_breakage
if(!breaking_weight || (M != user) || ((breaking_weight / 3) > M.fatness))
if(isnull(breaking_weight) || (breaking_weight < 10) || (M != user) || ((breaking_weight / 3) > M.fatness))
M.visible_message(\
"<span class='warning'>[user] buckles [M] to [src]!</span>",\
"<span class='warning'>[user] buckles you to [src]!</span>",\