This commit is contained in:
Pin-alternative
2023-02-17 21:39:51 +11:00
parent 05e486ea8e
commit 37a690f117
5 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -190,7 +190,7 @@
aroused_state = FALSE
/obj/item/organ/genital/proc/generate_fluid(datum/reagents/R)
var/amount = clamp((fluid_rate * ((world.time - last_orgasmed) / (10 SECONDS)) * fluid_mult),0,fluid_max_volume)
var/amount = get_fluid()
R.clear_reagents()
R.maximum_volume = fluid_max_volume
if(fluid_id)
+6
View File
@@ -30,6 +30,12 @@
update()
..()
/obj/item/organ/genital/penis/get_fluid()
if(linked_organ)
return (clamp(linked_organ.fluid_rate * ((world.time - last_orgasmed) / (10 SECONDS)) * linked_organ.fluid_mult, 0, linked_organ.fluid_max_volume) / linked_organ.fluid_max_volume)
else
return (clamp(fluid_rate * ((world.time - last_orgasmed) / (10 SECONDS)) * fluid_mult, 0, fluid_max_volume) / fluid_max_volume)
/obj/item/organ/genital/penis/update_size(modified = FALSE)
if(length <= 0)//I don't actually know what round() does to negative numbers, so to be safe!!
if(owner)