Skip to content

Commit

Permalink
Fixes breakout cooldown of lewd restraining items (#2166)
Browse files Browse the repository at this point in the history
* lewd restraining cd fix

* fix 1

Co-authored-by: Bloop <[email protected]>

* fix 2

---------

Co-authored-by: Bloop <[email protected]>
  • Loading branch information
2 people authored and StealsThePRs committed Apr 26, 2024
1 parent 0cfd747 commit 8e69047
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,12 @@
verbs -= /mob/living/carbon/human/verb/climax_verb
if(CONFIG_GET(flag/disable_lewd_items))
verbs -= /mob/living/carbon/human/verb/safeword

// so the lewd straight jacket behaves (and because the reason behind this is /too/ lewd for upstream) - also allows for more downstream freedom
/mob/living/carbon/human/resist_restraints()
if(wear_suit?.breakouttime)
changeNext_move(wear_suit.resist_cooldown)
last_special = world.time + wear_suit.resist_cooldown
cuff_resist(wear_suit)
else
return ..()
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
equip_delay_self = NONE
strip_delay = 12 SECONDS
breakouttime = 1 SECONDS
resist_cooldown = CLICK_CD_SLOW

/obj/item/clothing/suit/straight_jacket/latex_straight_jacket/attackby(obj/item/attacking_item, mob/user, params) //That part allows reinforcing this item with normal straightjacket
if(!istype(attacking_item, /obj/item/clothing/suit/straight_jacket))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
icon = 'modular_nova/modules/modular_items/lewd_items/icons/obj/lewd_clothing/lewd_gloves.dmi'
worn_icon = 'modular_nova/modules/modular_items/lewd_items/icons/mob/lewd_clothing/lewd_gloves.dmi'
breakouttime = 1 SECONDS
resist_cooldown = CLICK_CD_SLOW

//That part allows reinforcing this item with handcuffs
/obj/item/clothing/gloves/ball_mittens/attackby(obj/item/attacking_item, mob/user, params)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,11 +359,11 @@
// Handles breaking out of gloves that restrain people.
/mob/living/carbon/human/resist_restraints()
if(gloves?.breakouttime)
changeNext_move(CLICK_CD_BREAKOUT)
last_special = world.time + CLICK_CD_BREAKOUT
changeNext_move(gloves.resist_cooldown)
last_special = world.time + gloves.resist_cooldown
cuff_resist(gloves)
else
..()
return ..()

/// Checks if the human is wearing a condom, and also hasn't broken it.
/mob/living/carbon/human/proc/is_wearing_condom()
Expand Down

0 comments on commit 8e69047

Please sign in to comment.