Merge pull request #15631 from timothyteakettle/genitals-get-optimised

optimises genital/tail organs by returning when calling on_life
This commit is contained in:
Lin
2022-05-20 19:51:56 +00:00
committed by GitHub
3 changed files with 6 additions and 6 deletions

View File

@@ -33,6 +33,9 @@
linked_organ = null
. = ..()
/obj/item/organ/genital/on_life()
return
/obj/item/organ/genital/proc/set_aroused_state(new_state,cause = "manual toggle")
if(!(genital_flags & GENITAL_CAN_AROUSE))
return FALSE

View File

@@ -15,12 +15,6 @@
var/prev_size //former size value, to allow update_size() to early return should be there no significant changes.
layer_index = BUTT_LAYER_INDEX
/obj/item/organ/genital/butt/on_life()
if(QDELETED(src))
return
if(!owner)
return
/obj/item/organ/genital/butt/modify_size(modifier, min = -INFINITY, max = BUTT_SIZE_MAX)
var/new_value = clamp(size_cached + modifier, min, max)
if(new_value == size_cached)

View File

@@ -13,6 +13,9 @@
owner.dna.species.stop_wagging_tail(owner)
return ..()
/obj/item/organ/tail/on_life()
return
/obj/item/organ/tail/cat
name = "cat tail"
desc = "A severed cat tail. Who's wagging now?"