mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Prevent size bracelets resizing above 200 (#8388)
This commit is contained in:
@@ -142,7 +142,7 @@
|
|||||||
return
|
return
|
||||||
last_activated = world.time
|
last_activated = world.time
|
||||||
original_size = H.size_multiplier
|
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>")
|
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.")
|
log_admin("Admin [key_name(M)]'s size was altered by a bluespace bracelet.")
|
||||||
|
|
||||||
@@ -153,7 +153,7 @@
|
|||||||
if(!H.resizable)
|
if(!H.resizable)
|
||||||
return
|
return
|
||||||
last_activated = world.time
|
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
|
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>")
|
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.")
|
log_admin("Admin [key_name(M)]'s size was altered by a bluespace bracelet.")
|
||||||
@@ -172,7 +172,7 @@
|
|||||||
. = ..()
|
. = ..()
|
||||||
if(!emagged)
|
if(!emagged)
|
||||||
emagged = TRUE
|
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)
|
if(target_size < 0.1)
|
||||||
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>")
|
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()
|
/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)
|
if(target_size < 0.1)
|
||||||
target_size = 0.1
|
target_size = 0.1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user