mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Prevent size bracelets resizing above 200 (#8388)
This commit is contained in:
@@ -142,7 +142,7 @@
|
||||
return
|
||||
last_activated = world.time
|
||||
original_size = H.size_multiplier
|
||||
H.resize(target_size, uncapped = emagged, ignore_prefs = FALSE) //In case someone else tries to put it on you.
|
||||
H.resize(target_size, ignore_prefs = FALSE) //In case someone else tries to put it on you. //ChompEDIT - no uncapped
|
||||
H.visible_message("<span class='warning'>The space around [H] distorts as they change size!</span>","<span class='notice'>The space around you distorts as you change size!</span>")
|
||||
log_admin("Admin [key_name(M)]'s size was altered by a bluespace bracelet.")
|
||||
|
||||
@@ -153,7 +153,7 @@
|
||||
if(!H.resizable)
|
||||
return
|
||||
last_activated = world.time
|
||||
H.resize(original_size, uncapped = emagged, ignore_prefs = FALSE)
|
||||
H.resize(original_size, ignore_prefs = FALSE) //ChompEDIT - no uncapped
|
||||
original_size = null
|
||||
H.visible_message("<span class='warning'>The space around [H] distorts as they return to their original size!</span>","<span class='notice'>The space around you distorts as you return to your original size!</span>")
|
||||
log_admin("Admin [key_name(M)]'s size was altered by a bluespace bracelet.")
|
||||
@@ -172,7 +172,7 @@
|
||||
. = ..()
|
||||
if(!emagged)
|
||||
emagged = TRUE
|
||||
target_size = (rand(1,300)) /100
|
||||
target_size = (rand(1,200)) /100 //ChompEDIT - set to our rule cap
|
||||
if(target_size < 0.1)
|
||||
target_size = 0.1
|
||||
user.visible_message("<span class='notice'>\The [user] swipes the [emag_source] over the \the [src].</span>","<span class='notice'>You swipes the [emag_source] over the \the [src].</span>")
|
||||
@@ -183,7 +183,7 @@
|
||||
|
||||
/obj/item/clothing/gloves/bluespace/emagged/Initialize()
|
||||
. = ..()
|
||||
target_size = (rand(1,300)) /100
|
||||
target_size = (rand(1,200)) /100 //ChompEDIT - set to our rule cap
|
||||
if(target_size < 0.1)
|
||||
target_size = 0.1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user