Skip to content

Commit

Permalink
adds size standardization bracelets (#6548)
Browse files Browse the repository at this point in the history
## About The Pull Request
goes in glove slot
available in utility section of loadout
equipping it sets your size to 100% as if you were shot with a size gun
removing it sets your size back to whatever size you were before wearing
it, again like if you got hit by a size gun

## Why It's Good For The Game
better ic explanation to size changes while avoiding size gun / NIF /
size change trait because they kinda suck

## Changelog

<!-- If your PR modifies aspects of the game that can be concretely
observed by players or admins you should add a changelog. If your change
does NOT meet this description, remove this section. Be sure to properly
mark your PRs to prevent unnecessary GBP loss. You can read up on GBP
and it's effects on PRs in the tgstation guides for contributors. Please
note that maintainers freely reserve the right to remove and add tags
should they deem it appropriate. You can attempt to finagle the system
all you want, but it's best to shoot for clear communication right off
the bat. -->

:cl:
add: adds size standardization bracelets
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
  • Loading branch information
timothyteakettle authored Jul 2, 2024
1 parent 2c9c05c commit c87d6c5
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 2 deletions.
35 changes: 35 additions & 0 deletions code/modules/clothing/gloves/miscellaneous.dm
Original file line number Diff line number Diff line change
Expand Up @@ -672,3 +672,38 @@
icon = 'icons/clothing/gloves/ante_gloves.dmi'
icon_state = "ante_gloves"
worn_render_flags = WORN_RENDER_SLOT_ONE_FOR_ALL

/obj/item/clothing/gloves/size
name = "size standardization bracelet"
desc = "A somewhat bulky metal bracelet featuring a crystal, glowing blue. The outer side of the bracelet has an elongated case that one might imagine contains electronic components. This bracelet is used to standardize the size of crewmembers who may need a non-permanent size assist."
icon_state = "bs_bracelet"
var/original_size
var/last_activated

/obj/item/clothing/gloves/size/equipped(mob/user, slot, flags)
. = ..()
var/mob/living/carbon/human/H = user
if(!istype(H))
return
if(slot != SLOT_ID_GLOVES)
return
if(last_activated && world.time - last_activated < 10 SECONDS)
to_chat(user, "<span class ='warning'>\The [src] flickers. It seems to be recharging.</span>")
return
last_activated = world.time
original_size = user.size_multiplier
H.resize(1, TRUE, TRUE)
user.visible_message("<span class='warning'>The space around [user] distorts as they change size!</span>","<span class='notice'>The space around you distorts as you change size!</span>")

/obj/item/clothing/gloves/size/unequipped(mob/user, slot, flags)
. = ..()
if(!original_size)
return
var/mob/living/carbon/human/H = user
if(!istype(H))
return
last_activated = world.time
H.resize(original_size, TRUE, TRUE)
original_size = null
user.visible_message("<span class='warning'>The space around [user] 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>")
to_chat(user, "<span class ='warning'>\The [src] flickers. It is now recharging and will be ready again in ten seconds.</span>")
4 changes: 4 additions & 0 deletions code/modules/loadout/loadout_utility.dm
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@
path = /obj/item/melee/umbrella
cost = 3

/datum/loadout_entry/utility/bluespace_bracelet
name = "Size Standardization Bracelet"
path = /obj/item/clothing/gloves/size

/****************
modular computers
****************/
Expand Down
4 changes: 2 additions & 2 deletions code/modules/vore/resizing/resize_vr.dm
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ var/const/RESIZE_A_SMALLTINY = (RESIZE_SMALL + RESIZE_TINY) / 2
* Resizes the mob immediately to the desired mod, animating it growing/shrinking.
* It can be used by anything that calls it.
*/
/mob/living/proc/resize(var/new_size, var/animate = FALSE)
/mob/living/proc/resize(var/new_size, var/animate = FALSE, var/ignore_cooldown = FALSE)
if(size_multiplier == new_size)
return 1
if(last_special > world.time)
if(!ignore_cooldown && last_special > world.time)
to_chat(src, SPAN_WARNING("You are trying to resize to fast!"))
return 0
var/change = new_size - size_multiplier
Expand Down
Binary file modified icons/mob/clothing/hands.dmi
Binary file not shown.
Binary file modified icons/obj/clothing/gloves.dmi
Binary file not shown.

0 comments on commit c87d6c5

Please sign in to comment.