* Genital refactoring and masturbation rework Refactors a lot of genitalia code. Reworks masturbation code. Adds the ability to expose onself through clothing (Still bugfixing it). * Fixes it so everything works Toggling exposing your genitals now works properly. You can now expose genitals through clothing. Genitalia is rendered a bit more modularly and less hardcoded. Genitalia no longer has linked_penis and such, but instead linked_organ. More variables made general for genitals. Breasts can now be used to masturbate and climax, also letting you fill beakers and others with milk. Both being pulled and pulling someone can let you count them as a partner for climaxing verbs. Mob_climax split up into more sub-procs. Hexacrocin made less verbose, and not as spam-happy with forced orgasms. Hexacamphor also made less verbose. * Removes outcommented code Forgot to remove the old masturbation code that I commented out. * Changes one tab further on line 248 As pointed out to me ^^. * Climaxing with partner tabulation Also copied the command for the spillage version. * capitalisation and timers Removed timers from forced climaxes and made it a default value parameter instead, so it's adjustable. Changed capitalisation of genitals and the mentions of them now use the .name to avoid including a "The" in the mention. * I accidentally runtimestation Accidentally committed changing the map to runtimestation when I debugged my code. Changed it back to basemap now.
55 lines
1.5 KiB
Plaintext
55 lines
1.5 KiB
Plaintext
/obj/item/organ/genital/testicles
|
|
name = "testicles"
|
|
desc = "A male reproductive organ."
|
|
icon_state = "testicles"
|
|
icon = 'code/citadel/icons/penis.dmi'
|
|
zone = "groin"
|
|
slot = "testicles"
|
|
w_class = 3
|
|
internal = TRUE
|
|
size = BALLS_SIZE_DEF
|
|
var/sack_size = BALLS_SACK_SIZE_DEF
|
|
fluid_id = "semen"
|
|
producing = TRUE
|
|
var/sent_full_message = 1 //defaults to 1 since they're full to start
|
|
|
|
/obj/item/organ/genital/testicles/Initialize()
|
|
. = ..()
|
|
reagents.add_reagent(fluid_id, fluid_max_volume)
|
|
|
|
/obj/item/organ/genital/testicles/on_life()
|
|
if(QDELETED(src))
|
|
return
|
|
if(reagents && producing)
|
|
generate_cum()
|
|
|
|
/obj/item/organ/genital/testicles/proc/generate_cum()
|
|
reagents.maximum_volume = fluid_max_volume
|
|
if(reagents.total_volume >= reagents.maximum_volume)
|
|
if(!sent_full_message)
|
|
send_full_message()
|
|
sent_full_message = 1
|
|
return FALSE
|
|
sent_full_message = 0
|
|
update_link()
|
|
if(!linked_organ)
|
|
return FALSE
|
|
reagents.isolate_reagent(fluid_id)//remove old reagents if it changed and just clean up generally
|
|
reagents.add_reagent(fluid_id, (fluid_mult * fluid_rate))//generate the cum
|
|
|
|
/obj/item/organ/genital/testicles/update_link()
|
|
if(owner && !QDELETED(src))
|
|
linked_organ = (owner.getorganslot("penis"))
|
|
if(linked_organ)
|
|
linked_organ.linked_organ = src
|
|
else
|
|
if(linked_organ)
|
|
linked_organ.linked_organ = null
|
|
linked_organ = null
|
|
|
|
/obj/item/organ/genital/testicles/proc/send_full_message(msg = "Your balls finally feel full, again.")
|
|
if(owner && istext(msg))
|
|
owner << msg
|
|
return TRUE
|
|
|