Refactor Dumb For Cum quirk

This commit makes the following changes
- Adds comments
- Adds trait TRAIT_DUMB_CUM
- Adds mood quirk flag
- Adds quirk removal code
- Removes non-modular edits
- Renames trait TRAIT_DUMB4CUM to TRAIT_DUMB_CUM_CRAVE
- Removes interaction blocks
- Removes useless return functions
- Updates flavor text
- Updates variable names
- Changes reagent process to check for trait before triggering uncrave
- Changes on_spawn event to add event
This commit is contained in:
Darius
2023-02-02 17:21:54 -05:00
parent 7a78b05a93
commit f2cf15c590
22 changed files with 66 additions and 87 deletions
-3
View File
@@ -57,9 +57,6 @@
if(!user.is_literate())
to_chat(user, "<span class='notice'>You scribble illegibly on [src]!</span>")
return
if(HAS_TRAIT(user, TRAIT_DUMB4CUM))
to_chat(user, "<span class='love'>You can't think of anything but cum right now.</span>")
return
var/recipient = stripped_input(user, "Who is receiving this valentine?", "To:", null , 20)
var/sender = stripped_input(user, "Who is sending this valentine?", "From:", null , 20)
if(!user.canUseTopic(src, BE_CLOSE))
-3
View File
@@ -195,9 +195,6 @@
if(!user.is_literate())
to_chat(user, "<span class='notice'>You scribble illegibly on [src]!</span>")
return
if(HAS_TRAIT(user, TRAIT_DUMB4CUM))
to_chat(user, "<span class='love'>You can't think of anything but cum right now.</span>")
return
var/obj/item/pizzabox/box = boxes.len ? boxes[boxes.len] : src
box.boxtag += stripped_input(user, "Write on [box]'s tag:", box, "", 30)
if(!user.canUseTopic(src, BE_CLOSE))
-3
View File
@@ -147,9 +147,6 @@
if(!user.is_literate())
to_chat(user, "<span class='notice'>You scribble illegibly on [src]!</span>")
return
if(HAS_TRAIT(user, TRAIT_DUMB4CUM))
to_chat(user, "<span class='love'>You can't think of anything but cum right now.</span>")
return
if(!blank)
to_chat(user, "You cannot write on that card.")
return
-3
View File
@@ -27,9 +27,6 @@
if(!user.is_literate())
to_chat(user, "<span class='notice'>You skim through the book but can't comprehend any of it.</span>")
return
if(HAS_TRAIT(user, TRAIT_DUMB4CUM))
to_chat(user, "<span class='love'>You can't think of anything but cum right now.</span>")
return
if(inUse)
to_chat(user, "<span class='notice'>Someone else is reading it.</span>")
if(ishuman(user))
-3
View File
@@ -113,9 +113,6 @@
if(!user.is_literate())
to_chat(user, "<span class='notice'>You scribble illegibly on the side of [src]!</span>")
return
if(HAS_TRAIT(user, TRAIT_DUMB4CUM))
to_chat(user, "<span class='love'>You can't think of anything but cum right now.</span>")
return
var/newname = stripped_input(user, "What would you like to title this bookshelf?")
if(!user.canUseTopic(src, BE_CLOSE))
return
-3
View File
@@ -601,9 +601,6 @@ It's fairly easy to fix if dealing with single letters but not so much with comp
if(!is_literate())
to_chat(src, "<span class='notice'>You try to read [O], but can't comprehend any of it.</span>")
return
if(HAS_TRAIT(src, TRAIT_DUMB4CUM))
to_chat(src, "<span class='love'>You try reading [O] but only warm seed comes to your mind.</span>")
return
return TRUE
/mob/proc/checkloadappearance()
-3
View File
@@ -158,9 +158,6 @@
if(!user.is_literate())
to_chat(user, "<span class='notice'>You scribble illegibly on [src]!</span>")
return
if(HAS_TRAIT(user, TRAIT_DUMB4CUM))
to_chat(user, "<span class='love'>You can't think of anything but cum right now.</span>")
return
if(scribble_page == curr_page)
to_chat(user, "<span class='notice'>There's already a scribble in this page... You wouldn't want to make things too cluttered, would you?</span>")
else
-3
View File
@@ -190,9 +190,6 @@
if(!user.IsAdvancedToolUser() || !user.is_literate())
to_chat(user, "<span class='notice'>You don't know how to read or write.</span>")
return 0
if(HAS_TRAIT(user, TRAIT_DUMB4CUM))
to_chat(user, "<span class='love'>You can't think of anything but cum right now.</span>")
return
if(user.mind != target)
to_chat(user, "<span class='notice'>Your signature simply slides off the sheet, it seems this contract is not meant for you to sign.</span>")
return 0
-3
View File
@@ -46,9 +46,6 @@
if(!user.is_literate())
to_chat(user, "<span class='notice'>You scribble illegibly on the cover of [src]!</span>")
return
if(HAS_TRAIT(user, TRAIT_DUMB4CUM))
to_chat(user, "<span class='love'>You can't think of anything but cum right now.</span>")
return
var/inputvalue = stripped_input(user, "What would you like to label the folder?", "Folder Labelling", "", MAX_NAME_LEN)
-3
View File
@@ -57,9 +57,6 @@
if(!user.is_literate())
to_chat(user, "<span class='notice'>You scribble illegibly on [src]!</span>")
return
if(HAS_TRAIT(user, TRAIT_DUMB4CUM))
to_chat(user, "<span class='love'>You can't think of anything but cum right now.</span>")
return
var/txt = stripped_input(user, "What would you like to write on the back?", "Photo Writing", "", 128)
if(txt && user.canUseTopic(src, BE_CLOSE))
scribble = txt
@@ -89,9 +89,6 @@
if(!user.is_literate())
to_chat(user, "<span class='notice'>You scribble illegibly on the label of [src]!</span>")
return
if(HAS_TRAIT(user, TRAIT_DUMB4CUM))
to_chat(user, "<span class='love'>You can't think of anything but cum right now.</span>")
return
var/t = stripped_input(user, "What would you like to label the blood pack?", name, null, 53)
if(!user.canUseTopic(src, BE_CLOSE))
return
@@ -47,9 +47,6 @@
if(!user.is_literate())
to_chat(user, "<span class='notice'>You scribble illegibly on the side of [src]!</span>")
return
if(HAS_TRAIT(user, TRAIT_DUMB4CUM))
to_chat(user, "<span class='love'>You can't think of anything but cum right now.</span>")
return
var/str = stripped_input(user, "Label text?", "Set label", "", MAX_NAME_LEN)
if(!user.canUseTopic(src, BE_CLOSE))
return
@@ -192,9 +189,6 @@
if(!user.is_literate())
to_chat(user, "<span class='notice'>You scribble illegibly on the side of [src]!</span>")
return
if(HAS_TRAIT(user, TRAIT_DUMB4CUM))
to_chat(user, "<span class='love'>You can't think of anything but cum right now.</span>")
return
var/str = stripped_input(user, "Label text?", "Set label", "", MAX_NAME_LEN)
if(!user.canUseTopic(src, BE_CLOSE))
return