diff --git a/code/_macros_vr.dm b/code/_macros_vr.dm
new file mode 100644
index 0000000000..bf3b3bdafe
--- /dev/null
+++ b/code/_macros_vr.dm
@@ -0,0 +1 @@
+#define isbelly(A) istype(A, /obj/belly)
\ No newline at end of file
diff --git a/code/controllers/subsystems/bellies_vr.dm b/code/controllers/subsystems/bellies_vr.dm
new file mode 100644
index 0000000000..faaa297ca3
--- /dev/null
+++ b/code/controllers/subsystems/bellies_vr.dm
@@ -0,0 +1,41 @@
+#define SSBELLIES_PROCESSED 1
+#define SSBELLIES_IGNORED 2
+
+//
+// Bellies subsystem - Process vore bellies
+//
+
+SUBSYSTEM_DEF(bellies)
+ name = "Bellies"
+ priority = 5
+ wait = 1 SECONDS
+ flags = SS_KEEP_TIMING|SS_NO_INIT
+ runlevels = RUNLEVEL_GAME|RUNLEVEL_POSTGAME
+
+ var/static/list/belly_list = list()
+ var/list/currentrun = list()
+ var/ignored_bellies = 0
+
+/datum/controller/subsystem/bellies/stat_entry()
+ ..("#: [belly_list.len] | P: [ignored_bellies]")
+
+/datum/controller/subsystem/bellies/fire(resumed = 0)
+ if (!resumed)
+ ignored_bellies = 0
+ src.currentrun = belly_list.Copy()
+
+ //cache for sanic speed (lists are references anyways)
+ var/list/currentrun = src.currentrun
+ var/times_fired = src.times_fired
+ while(currentrun.len)
+ var/obj/belly/B = currentrun[currentrun.len]
+ currentrun.len--
+
+ if(QDELETED(B))
+ belly_list -= B
+ else
+ if(B.process_belly(times_fired,wait) == SSBELLIES_IGNORED)
+ ignored_bellies++
+
+ if (MC_TICK_CHECK)
+ return
diff --git a/code/datums/helper_datums/teleport_vr.dm b/code/datums/helper_datums/teleport_vr.dm
index cbae240cff..1cb73d6ad9 100644
--- a/code/datums/helper_datums/teleport_vr.dm
+++ b/code/datums/helper_datums/teleport_vr.dm
@@ -1,22 +1,13 @@
/datum/teleport/proc/try_televore()
- var/datum/belly/target_belly
-
- //Destination is a living thing
- target_belly = check_belly(destination)
-
- //Destination has a living thing on it
- if(!target_belly)
- for(var/mob/living/M in get_turf(destination))
- if(M.vore_organs.len)
- var/I = M.vore_organs[1]
- target_belly = M.vore_organs[I]
-
- if(target_belly)
- teleatom.forceMove(destination.loc)
+ //Destination is in a belly
+ if(isbelly(destination.loc))
+ var/obj/belly/B = destination.loc
+
+ teleatom.forceMove(get_turf(B)) //So we can splash the sound and sparks and everything.
playSpecials(destination,effectout,soundout)
- target_belly.internal_contents |= teleatom
- playsound(destination, target_belly.vore_sound, 100, 1)
+ teleatom.forceMove(B)
return 1
//No fun!
- return 0
\ No newline at end of file
+ return 0
+
\ No newline at end of file
diff --git a/code/game/machinery/adv_med_vr.dm b/code/game/machinery/adv_med_vr.dm
index 68185bcf46..6c11b6cf34 100644
--- a/code/game/machinery/adv_med_vr.dm
+++ b/code/game/machinery/adv_med_vr.dm
@@ -12,9 +12,9 @@
var/livingprey = 0
var/objectprey = 0
- for(var/I in H.vore_organs)
- var/datum/belly/B = H.vore_organs[I]
- for(var/C in B.internal_contents)
+ for(var/belly in H.vore_organs)
+ var/obj/belly/B = belly
+ for(var/C in B)
if(ishuman(C))
humanprey++
else if(isliving(C))
diff --git a/code/game/objects/items/trash_vr.dm b/code/game/objects/items/trash_vr.dm
index 38c434b973..942b571aa5 100644
--- a/code/game/objects/items/trash_vr.dm
+++ b/code/game/objects/items/trash_vr.dm
@@ -12,10 +12,7 @@
if(H.species.trashcan == 1)
playsound(H.loc,'sound/items/eatfood.ogg', rand(10,50), 1)
user.drop_item()
- var/belly = H.vore_selected
- var/datum/belly/selected = H.vore_organs[belly]
- forceMove(H)
- selected.internal_contents |= src
+ forceMove(H.vore_selected)
to_chat(H, "You can taste the flavor of garbage. Wait what?")
return
@@ -24,10 +21,7 @@
if(R.module.type == /obj/item/weapon/robot_module/robot/scrubpup) // You can now feed the trash borg yay.
playsound(R.loc,'sound/items/eatfood.ogg', rand(10,50), 1)
user.drop_item()
- var/belly = R.vore_selected
- var/datum/belly/selected = R.vore_organs[belly]
- forceMove(R)
- selected.internal_contents |= src // Too many hoops and obstacles to stick it into the sleeper module.
+ forceMove(R.vore_selected)
R.visible_message("[user] feeds [R] with [src]!")
return
..()
\ No newline at end of file
diff --git a/code/game/objects/structures/crates_lockers/closets/egg_vr.dm b/code/game/objects/structures/crates_lockers/closets/egg_vr.dm
index d1c37221cf..b47a49c4b5 100644
--- a/code/game/objects/structures/crates_lockers/closets/egg_vr.dm
+++ b/code/game/objects/structures/crates_lockers/closets/egg_vr.dm
@@ -18,13 +18,6 @@
src.dump_contents()
qdel(src)
-/obj/structure/closet/secure_closet/egg/dump_contents()
- var/datum/belly/belly = check_belly(src)
- if(belly)
- for(var/atom/movable/M in src)
- belly.internal_contents |= M
- return ..()
-
/obj/structure/closet/secure_closet/egg/unathi
name = "unathi egg"
desc = "Some species of Unathi apparently lay soft-shelled eggs!"
diff --git a/code/modules/client/preference_setup/global/setting_datums.dm b/code/modules/client/preference_setup/global/setting_datums.dm
index 2f251398d1..222813460b 100644
--- a/code/modules/client/preference_setup/global/setting_datums.dm
+++ b/code/modules/client/preference_setup/global/setting_datums.dm
@@ -86,7 +86,18 @@ var/list/_client_preferences_by_type
preference_mob.stop_all_music()
else
preference_mob.update_music()
-
+//VOREStation Add - Need to put it here because it should be ordered riiiight here.
+/datum/client_preference/eating_noises
+ description = "Eating Noises"
+ key = "EATING_NOISES"
+ enabled_description = "Noisy"
+ disabled_description = "Silent"
+/datum/client_preference/digestion_noises
+ description = "Digestion Noises"
+ key = "DIGEST_NOISES"
+ enabled_description = "Noisy"
+ disabled_description = "Silent"
+//VOREStation Add End
/datum/client_preference/ghost_ears
description ="Ghost ears"
key = "CHAT_GHOSTEARS"
diff --git a/code/modules/clothing/under/miscellaneous_vr.dm b/code/modules/clothing/under/miscellaneous_vr.dm
index db3165e9c9..a0fef4879b 100644
--- a/code/modules/clothing/under/miscellaneous_vr.dm
+++ b/code/modules/clothing/under/miscellaneous_vr.dm
@@ -1,21 +1,5 @@
/obj/item/clothing/var/hides_bulges = FALSE // OwO wats this?
-/mob/living/carbon/human/proc/show_pudge()
- //A uniform could hide it.
- if(istype(w_uniform,/obj/item/clothing))
- var/obj/item/clothing/under = w_uniform
- if(under.hides_bulges)
- return FALSE
-
- //We return as soon as we find one, no need for 'else' really.
- if(istype(wear_suit,/obj/item/clothing))
- var/obj/item/clothing/suit = wear_suit
- if(suit.hides_bulges)
- return FALSE
-
-
- return TRUE
-
/obj/item/clothing/under/permit
name = "public nudity permit"
desc = "This permit entitles the bearer to conduct their duties without a uniform. Normally issued to furred crewmembers or those with nothing to hide."
diff --git a/code/modules/mob/living/carbon/brain/brain.dm b/code/modules/mob/living/carbon/brain/brain.dm
index efe2abc497..7165c36fa8 100644
--- a/code/modules/mob/living/carbon/brain/brain.dm
+++ b/code/modules/mob/living/carbon/brain/brain.dm
@@ -8,6 +8,7 @@
use_me = 0 //Can't use the me verb, it's a freaking immobile brain
icon = 'icons/obj/surgery.dmi'
icon_state = "brain1"
+ no_vore = TRUE //VOREStation Edit - PLEASE. lol.
New()
var/datum/reagents/R = new/datum/reagents(1000)
diff --git a/code/modules/mob/living/carbon/human/examine_vr.dm b/code/modules/mob/living/carbon/human/examine_vr.dm
index 9d86241dd1..0d9dd889f5 100644
--- a/code/modules/mob/living/carbon/human/examine_vr.dm
+++ b/code/modules/mob/living/carbon/human/examine_vr.dm
@@ -107,17 +107,6 @@
message = "[t_He] [t_is] so absolutely stuffed that you aren't sure how it's possible to move. [t_He] can't seem to swell any bigger. The surface of [t_his] belly looks sorely strained!\n"
return message
-/mob/living/carbon/human/proc/examine_bellies()
- if(!show_pudge()) //Some clothing or equipment can hide this.
- return ""
-
- var/message = ""
- for (var/I in src.vore_organs)
- var/datum/belly/B = vore_organs[I]
- message += B.get_examine_msg()
-
- return message
-
//For OmniHUD records access for appropriate models
/proc/hasHUD_vr(mob/living/carbon/human/H, hudtype)
if(H.nif)
diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm
index fec1390f67..f92c8a8741 100644
--- a/code/modules/mob/living/carbon/human/human.dm
+++ b/code/modules/mob/living/carbon/human/human.dm
@@ -66,7 +66,8 @@
list_body = null
LAZYCLEARLIST(list_huds)
list_huds = null
- if(nif) qdel_null(nif) //VOREStation Add
+ qdel_null(nif) //VOREStation Add
+ qdel_null_list(vore_organs) //VOREStation Add
return ..()
/mob/living/carbon/human/Stat()
diff --git a/code/modules/mob/living/carbon/human/human_species_vr.dm b/code/modules/mob/living/carbon/human/human_species_vr.dm
index 596de6a1fa..52ca3f0426 100644
--- a/code/modules/mob/living/carbon/human/human_species_vr.dm
+++ b/code/modules/mob/living/carbon/human/human_species_vr.dm
@@ -1,3 +1,6 @@
+/mob/living/carbon/human/dummy
+ no_vore = TRUE //Dummies don't need bellies.
+
/mob/living/carbon/human/sergal/New(var/new_loc)
h_style = "Sergal Plain"
..(new_loc, "Sergal")
diff --git a/code/modules/mob/living/carbon/human/species/station/station_special_abilities_vr.dm b/code/modules/mob/living/carbon/human/species/station/station_special_abilities_vr.dm
index e1f8e977da..fe1d90aae1 100644
--- a/code/modules/mob/living/carbon/human/species/station/station_special_abilities_vr.dm
+++ b/code/modules/mob/living/carbon/human/species/station/station_special_abilities_vr.dm
@@ -606,9 +606,6 @@
C.absorbing_prey = 0
return
-
-
-
/mob/living/carbon/human/proc/succubus_drain_finalize()
set name = "Drain/Feed Finalization"
set desc = "Toggle to allow for draining to be prolonged. Turn this on to make it so prey will be knocked out/die while being drained, or you will feed yourself to the prey's selected stomach if you're feeding them. Can be toggled at any time."
@@ -618,110 +615,134 @@
C.drain_finalized = !C.drain_finalized
to_chat(C, "You will [C.drain_finalized?"now":"not"] finalize draining/feeding.")
-/mob/living/carbon/human/proc/shred_limb() //If you're looking at this, nothing but pain and suffering lies below.
+
+//Test to see if we can shred a mob. Some child override needs to pass us a target. We'll return it if you can.
+/mob/living/var/vore_shred_time = 45 SECONDS
+/mob/living/proc/can_shred(var/mob/living/carbon/human/target)
+ //Needs to have organs to be able to shred them.
+ if(!istype(target))
+ to_chat(src,"You can't shred that type of creature.")
+ return FALSE
+ //Needs to be capable (replace with incapacitated call?)
+ if(stat || paralysis || stunned || weakened || lying || restrained() || buckled)
+ to_chat(src,"You cannot do that in your current state!")
+ return FALSE
+ //Needs to be adjacent, at the very least.
+ if(!Adjacent(target))
+ to_chat(src,"You must be next to your target.")
+ return FALSE
+ //Cooldown on abilities
+ if(last_special > world.time)
+ to_chat(src,"You can't perform an ability again so soon!")
+ return FALSE
+
+ return target
+
+//Human test for shreddability, returns the mob if they can be shredded.
+/mob/living/carbon/human/vore_shred_time = 10 SECONDS
+/mob/living/carbon/human/can_shred()
+ //Humans need a grab
+ var/obj/item/weapon/grab/G = get_active_hand()
+ if(!istype(G))
+ to_chat(src,"You have to have a very strong grip on someone first!")
+ return FALSE
+ if(G.state != GRAB_NECK)
+ to_chat(src,"You must have a tighter grip to severely damage this creature!")
+ return FALSE
+
+ return ..(G.affecting)
+
+//PAIs don't need a grab or anything
+/mob/living/silicon/pai/can_shred(var/mob/living/carbon/human/target)
+ if(!target)
+ var/list/choices = list()
+ for(var/mob/living/carbon/human/M in oviewers(1))
+ choices += M
+
+ if(!choices.len)
+ to_chat(src,"There's nobody nearby to use this on.")
+
+ target = input(src,"Who do you wish to target?","Damage/Remove Prey's Organ") as null|anything in choices
+ if(!istype(target))
+ return FALSE
+
+ return ..(target)
+
+/mob/living/proc/shred_limb()
set name = "Damage/Remove Prey's Organ"
set desc = "Severely damages prey's organ. If the limb is already severely damaged, it will be torn off."
set category = "Abilities"
- if(!ishuman(src))
- return //If you're not a human you don't have permission to do this.
- if(last_special > world.time)
+ //can_shred() will return a mob we can shred, if we can shred any.
+ var/mob/living/carbon/human/T = can_shred()
+ if(!istype(T))
+ return //Silent, because can_shred does messages.
+
+ //Let them pick any of the target's external organs
+ var/obj/item/organ/external/T_ext = input(src,"What do you wish to severely damage?") as null|anything in T.organs //D for destroy.
+ if(!T_ext) //Picking something here is critical.
return
-
- if(stat || paralysis || stunned || weakened || lying || restrained() || buckled)
- to_chat(src, "You cannot severely damage anything in your current state!")
- return
-
- var/mob/living/carbon/human/C = src
- var/obj/item/weapon/grab/G = src.get_active_hand()
- if(!istype(G))
- to_chat(C, "We must be grabbing a creature in our active hand to severely damage them.")
- return
-
- var/mob/living/carbon/human/T = G.affecting
- if(!istype(T)) //Are they a mob?
- to_chat(C, "\The [T] is not able to be severely damaged!")
- return
-
- if(G.state != GRAB_NECK)
- to_chat(C, "You must have a tighter grip to severely damage this creature.")
- return
-
- if(!T || !C || C.stat)
- return
-
- if(!Adjacent(T))
- return
-
- var/list/choices2 = list()
- for(var/obj/item/organ/O in T.organs) //External organs
- choices2 += O
-
- var/obj/item/organ/external/D = input(C,"What do you wish to severely damage?") as null|anything in choices2 //D for destroy.
- if(D.vital)
- if(alert("Are you sure you wish to severely damage their [D]? It most likely will kill the prey...",,"Yes", "No") != "Yes")
+ if(T_ext.vital)
+ if(alert("Are you sure you wish to severely damage their [T_ext]? It will likely kill [T]...",,"Yes", "No") != "Yes")
return //If they reconsider, don't continue.
- var/list/choices3 = list()
- for(var/obj/item/organ/internal/I in D.internal_organs) //Look for the internal organ in the organ being shreded.
- choices3 += I
+ //Any internal organ, if there are any
+ var/obj/item/organ/internal/T_int = input(src,"Do you wish to severely damage an internal organ, as well? If not, click 'cancel'") as null|anything in T_ext.internal_organs
+ if(T_int && T_int.vital)
+ if(alert("Are you sure you wish to severely damage their [T_int]? It will likely kill [T]...",,"Yes", "No") != "Yes")
+ return //If they reconsider, don't continue.
- var/obj/item/organ/internal/P = input(C,"Do you wish to severely damage an internal organ, as well? If not, click 'cancel'") as null|anything in choices3
+ //And a belly, if they want
+ var/obj/belly/B = input(src,"Do you wish to swallow the organ if you tear if out? If not, click 'cancel'") as null|anything in vore_organs
- var/eat_limb = input(C,"Do you wish to swallow the organ if you tear if out? If so, select which stomach.") as null|anything in C.vore_organs //EXTREMELY EFFICIENT
-
- if(last_special > world.time)
+ if(can_shred(T) != T)
+ to_chat(src,"Looks like you lost your chance...")
return
- if(stat || paralysis || stunned || weakened || lying || restrained() || buckled)
- to_chat(C, "You cannot shred in your current state.")
- return
+ last_special = world.time + vore_shred_time
+ visible_message("[src] appears to be preparing to do something to [T]!") //Let everyone know that bad times are ahead
- last_special = world.time + 100 //10 seconds.
- C.visible_message("[C] appears to be preparing to do something to [T]!") //Let everyone know that bad times are head
+ if(do_after(src, vore_shred_time, T)) //Ten seconds. You have to be in a neckgrab for this, so you're already in a bad position.
+ if(can_shred(T) != T)
+ to_chat(src,"Looks like you lost your chance...")
+ return
+
+ //Removing an internal organ
+ if(T_int && T_int.damage >= 25) //Internal organ and it's been severely damaged
+ T.apply_damage(15, BRUTE, T_ext) //Damage the external organ they're going through.
+ T_int.removed()
+ if(B)
+ T_int.forceMove(B) //Move to pred's gut
+ visible_message("[src] severely damages [T_int.name] of [T]!")
+ else
+ T_int.forceMove(T.loc)
+ visible_message("[src] severely damages [T_ext.name] of [T], resulting in their [T_int.name] coming out!","You tear out [T]'s [T_int.name]!")
- if(do_after(C, 100, T)) //Ten seconds. You have to be in a neckgrab for this, so you're already in a bad position.
- if(!Adjacent(T)) return
- if(P && P.damage >= 25) //Internal organ and it's been severely damage
- T.apply_damage(15, BRUTE, D) //Damage the external organ they're going through.
- P.removed()
- P.forceMove(T.loc) //Move to where prey is.
- log_and_message_admins("tore out [P] of [T].", C)
- if(eat_limb)
- var/datum/belly/S = C.vore_organs[eat_limb]
- P.forceMove(C) //Move to pred's gut
- S.internal_contents |= P //Add to pred's gut.
- C.visible_message("[C] severely damages [D] of [T]!") // Same as below, but (pred) damages the (right hand) of (person)
- to_chat(C, "[P] of [T] moves into your [S]!") //Quietly eat their internal organ! Comes out "The (right hand) of (person) moves into your (stomach)
- playsound(C, S.vore_sound, 70, 1)
- log_and_message_admins("tore out and ate [P] of [T].", C)
+ //Removing an external organ
+ else if(!T_int && (T_ext.damage >= 25 || T_ext.brute_dam >= 25))
+ T_ext.droplimb(1,DROPLIMB_EDGE) //Clean cut so it doesn't kill the prey completely.
+
+ //Is it groin/chest? You can't remove those.
+ if(T_ext.cannot_amputate)
+ T.apply_damage(25, BRUTE, T_ext)
+ visible_message("[src] severely damages [T]'s [T_ext.name]!")
+ else if(B)
+ T_ext.forceMove(B)
+ visible_message("[src] swallows [T]'s [T_ext.name] into their [lowertext(B.name)]!")
else
- log_and_message_admins("tore out [P] of [T].", C)
- C.visible_message("[C] severely damages [D] of [T], resulting in their [P] coming out!")
- else if(!P && (D.damage >= 25 || D.brute_dam >= 25)) //Not targeting an internal organ & external organ has been severely damaged already.
- D.droplimb(1,DROPLIMB_EDGE) //Clean cut so it doesn't kill the prey completely.
- if(D.cannot_amputate) //Is it groin/chest? You can't remove those.
- T.apply_damage(25, BRUTE, D)
- C.visible_message("[C] severely damage [T]'s [D]!") //Keep it vague. Let the /me's do the talking.
- log_and_message_admins("shreded [T]'s [D].", C)
- return
- if(eat_limb)
- var/datum/belly/S = C.vore_organs[eat_limb]
- D.forceMove(C) //Move to pred's gut
- S.internal_contents |= D //Add to pred's gut.
- C.visible_message("[C] swallows [D] of [T] into their [S]!","You swallow [D] of [T]!")
- playsound(C, S.vore_sound, 70, 1)
- to_chat(C, "Their [D] moves into your [S]!")
- log_and_message_admins("tore off and ate [D] of [T].", C)
- else
- C.visible_message("[C] tears off [D] of [T]!","You tear out [D] of [T]!") //Will come out "You tear out (the right foot) of (person)
- log_and_message_admins("tore off [T]'s [D].", C)
- else //Not targeting an internal organ w/ > 25 damage , and the limb doesn't have < 25 damage.
- if(P)
- P.damage = 25 //Internal organs can only take damage, not brute damage.
- T.apply_damage(25, BRUTE, D)
- C.visible_message("[C] severely damages [D] of [T]!") //Keep it vague. Let the /me's do the talking.
- log_and_message_admins("shreded [D] of [T].", C)
+ T_ext.forceMove(T.loc)
+ visible_message("[src] tears off [T]'s [T_ext.name]!","You tear off [T]'s [T_ext.name]!")
+
+ //Not targeting an internal organ w/ > 25 damage , and the limb doesn't have < 25 damage.
+ else
+ if(T_int)
+ T_int.damage = 25 //Internal organs can only take damage, not brute damage.
+ T.apply_damage(25, BRUTE, T_ext)
+ visible_message("[src] severely damages [T]'s [T_ext.name]!")
+
+ src.attack_log += text("\[[time_stamp()]\] Shred_limb'd [T.real_name] ([T.ckey])")
+ T.attack_log += text("\[[time_stamp()]\] [src.real_name] ([src.ckey]) shred_limb'd me")
+ msg_admin_attack("[src.real_name] ([src.ckey]) shredded (shred_limb) [T.real_name] ([T.ckey]) (JMP)")
/mob/living/proc/flying_toggle()
set name = "Toggle Flight"
diff --git a/code/modules/mob/living/carbon/human/species/station/station_special_vr.dm b/code/modules/mob/living/carbon/human/species/station/station_special_vr.dm
index 9f74592b8e..3797899d96 100644
--- a/code/modules/mob/living/carbon/human/species/station/station_special_vr.dm
+++ b/code/modules/mob/living/carbon/human/species/station/station_special_vr.dm
@@ -28,7 +28,7 @@
/mob/living/carbon/human/proc/succubus_drain_finalize,
/mob/living/carbon/human/proc/succubus_drain_lethal,
/mob/living/carbon/human/proc/bloodsuck,
- /mob/living/carbon/human/proc/shred_limb,
+ /mob/living/proc/shred_limb,
/mob/living/proc/flying_toggle,
/mob/living/proc/start_wings_hovering) //Xenochimera get all the special verbs since they can't select traits.
diff --git a/code/modules/mob/living/carbon/human/species/station/station_vr.dm b/code/modules/mob/living/carbon/human/species/station/station_vr.dm
index e10018ce94..e9041e34da 100644
--- a/code/modules/mob/living/carbon/human/species/station/station_vr.dm
+++ b/code/modules/mob/living/carbon/human/species/station/station_vr.dm
@@ -32,7 +32,7 @@
spawn_flags = SPECIES_CAN_JOIN
appearance_flags = HAS_HAIR_COLOR | HAS_LIPS | HAS_UNDERWEAR | HAS_SKIN_COLOR | HAS_EYE_COLOR
- inherent_verbs = list(/mob/living/carbon/human/proc/shred_limb)
+ inherent_verbs = list(/mob/living/proc/shred_limb)
flesh_color = "#AFA59E"
base_color = "#777777"
@@ -76,7 +76,7 @@
secondary_langs = list(LANGUAGE_SKRELLIAN)
name_language = LANGUAGE_SKRELLIAN
color_mult = 1
- inherent_verbs = list(/mob/living/carbon/human/proc/shred_limb)
+ inherent_verbs = list(/mob/living/proc/shred_limb)
min_age = 18
max_age = 80
@@ -120,7 +120,7 @@
secondary_langs = list(LANGUAGE_BIRDSONG)
name_language = LANGUAGE_BIRDSONG
color_mult = 1
- inherent_verbs = list(/mob/living/carbon/human/proc/shred_limb,/mob/living/proc/flying_toggle,/mob/living/proc/start_wings_hovering)
+ inherent_verbs = list(/mob/living/proc/shred_limb,/mob/living/proc/flying_toggle,/mob/living/proc/start_wings_hovering)
min_age = 18
max_age = 80
@@ -183,7 +183,7 @@
"You feel uncomfortably warm.",
"Your overheated skin itches."
)
- inherent_verbs = list(/mob/living/carbon/human/proc/shred_limb)
+ inherent_verbs = list(/mob/living/proc/shred_limb)
/datum/species/fl_zorren
name = "Flatland Zorren"
@@ -215,7 +215,7 @@
flesh_color = "#AFA59E"
base_color = "#333333"
color_mult = 1
- inherent_verbs = list(/mob/living/carbon/human/proc/shred_limb)
+ inherent_verbs = list(/mob/living/proc/shred_limb)
heat_discomfort_strings = list(
"Your fur prickles in the heat.",
@@ -241,7 +241,7 @@
// gluttonous = 1
num_alternate_languages = 3
color_mult = 1
- inherent_verbs = list(/mob/living/carbon/human/proc/shred_limb)
+ inherent_verbs = list(/mob/living/proc/shred_limb)
blurb = "Vulpkanin are a species of sharp-witted canine-pideds residing on the planet Altam just barely within the \
dual-star Vazzend system. Their politically de-centralized society and independent natures have led them to become a species and \
@@ -295,7 +295,7 @@
"You feel uncomfortably warm.",
"Your chitin feels hot."
)
- inherent_verbs = list(/mob/living/carbon/human/proc/shred_limb)
+ inherent_verbs = list(/mob/living/proc/shred_limb)
/datum/species/unathi
spawn_flags = SPECIES_CAN_JOIN //Species_can_join is the only spawn flag all the races get, so that none of them will be whitelist only if whitelist is enabled.
@@ -304,7 +304,7 @@
tail_animation = 'icons/mob/species/unathi/tail_vr.dmi'
color_mult = 1
min_age = 18
- inherent_verbs = list(/mob/living/carbon/human/proc/shred_limb)
+ inherent_verbs = list(/mob/living/proc/shred_limb)
/datum/species/tajaran
spawn_flags = SPECIES_CAN_JOIN
@@ -314,7 +314,7 @@
color_mult = 1
min_age = 18
gluttonous = 0 //Moving this here so I don't have to fix this conflict every time polaris glances at station.dm
- inherent_verbs = list(/mob/living/carbon/human/proc/shred_limb)
+ inherent_verbs = list(/mob/living/proc/shred_limb)
/datum/species/skrell
spawn_flags = SPECIES_CAN_JOIN
@@ -340,7 +340,7 @@
inherent_verbs = list(
/mob/living/carbon/human/proc/sonar_ping,
/mob/living/proc/hide,
- /mob/living/carbon/human/proc/shred_limb,
+ /mob/living/proc/shred_limb,
/mob/living/proc/toggle_pass_table
)
@@ -361,7 +361,7 @@
min_age = 18
icobase = 'icons/mob/human_races/r_vox_old.dmi'
deform = 'icons/mob/human_races/r_def_vox_old.dmi'
- inherent_verbs = list(/mob/living/carbon/human/proc/shred_limb)
+ inherent_verbs = list(/mob/living/proc/shred_limb)
datum/species/harpy
name = "Rapala"
diff --git a/code/modules/mob/living/carbon/human/species/station/traits_vr/neutral.dm b/code/modules/mob/living/carbon/human/species/station/traits_vr/neutral.dm
index 7349bafa02..e5287dc96b 100644
--- a/code/modules/mob/living/carbon/human/species/station/traits_vr/neutral.dm
+++ b/code/modules/mob/living/carbon/human/species/station/traits_vr/neutral.dm
@@ -87,7 +87,7 @@
/datum/trait/hard_vore/apply(var/datum/species/S,var/mob/living/carbon/human/H)
..(S,H)
- H.verbs |= /mob/living/carbon/human/proc/shred_limb
+ H.verbs |= /mob/living/proc/shred_limb
/datum/trait/trashcan
name = "Trash Can"
diff --git a/code/modules/mob/living/life.dm b/code/modules/mob/living/life.dm
index 922923d5f2..76d497734a 100644
--- a/code/modules/mob/living/life.dm
+++ b/code/modules/mob/living/life.dm
@@ -29,8 +29,6 @@
//Random events (vomiting etc)
handle_random_events()
- attempt_vr(src,"handle_internal_contents",args) //VOREStation Code
-
. = 1
//Chemicals in the body, this is moved over here so that blood can be added after death
diff --git a/code/modules/mob/living/silicon/pai/examine.dm b/code/modules/mob/living/silicon/pai/examine.dm
index 0d4d73bbe7..876b9aacf1 100644
--- a/code/modules/mob/living/silicon/pai/examine.dm
+++ b/code/modules/mob/living/silicon/pai/examine.dm
@@ -7,7 +7,7 @@
if(!src.client) msg += "\nIt appears to be in stand-by mode.\n" //afk
if(UNCONSCIOUS) msg += "\nIt doesn't seem to be responding.\n"
if(DEAD) msg += "\nIt looks completely unsalvageable.\n"
- msg += attempt_vr(src,"examine_bellies_pai",args) //VOREStation Edit
+ msg += attempt_vr(src,"examine_bellies",args) //VOREStation Edit
// VOREStation Edit: Start
if(ooc_notes)
diff --git a/code/modules/mob/living/silicon/pai/life.dm b/code/modules/mob/living/silicon/pai/life.dm
index 92e430b6a5..f483921b81 100644
--- a/code/modules/mob/living/silicon/pai/life.dm
+++ b/code/modules/mob/living/silicon/pai/life.dm
@@ -21,7 +21,6 @@
src << "Communication circuit reinitialized. Speech and messaging functionality restored."
handle_statuses()
- handle_internal_contents() //VOREStation edit
if(health <= 0)
death(null,"gives one shrill beep before falling lifeless.")
diff --git a/code/modules/mob/living/silicon/pai/pai.dm b/code/modules/mob/living/silicon/pai/pai.dm
index df86b24c00..4824befc8b 100644
--- a/code/modules/mob/living/silicon/pai/pai.dm
+++ b/code/modules/mob/living/silicon/pai/pai.dm
@@ -298,7 +298,7 @@
if(istype(T)) T.visible_message("[src] folds outwards, expanding into a mobile form.")
verbs += /mob/living/silicon/pai/proc/pai_nom //VOREStation edit
verbs += /mob/living/proc/set_size //VOREStation edit
- verbs += /mob/living/silicon/pai/proc/shred_limb //VORREStation edit
+ verbs += /mob/living/proc/shred_limb //VORREStation edit
/mob/living/silicon/pai/verb/fold_up()
set category = "pAI Commands"
@@ -389,9 +389,7 @@
if(src.loc == card)
return
- for(var/I in vore_organs) //VOREStation edit. Release all their stomach contents. Don't want them to be in the PAI when they fold or weird things might happen.
- var/datum/belly/B = vore_organs[I] //VOREStation edit
- B.release_all_contents() //VOREStation edit
+ release_vore_contents() //VOREStation Add
var/turf/T = get_turf(src)
if(istype(T)) T.visible_message("[src] neatly folds inwards, compacting down to a rectangular card.")
diff --git a/code/modules/mob/living/silicon/pai/pai_vr.dm b/code/modules/mob/living/silicon/pai/pai_vr.dm
index 8350e4764b..c5de247595 100644
--- a/code/modules/mob/living/silicon/pai/pai_vr.dm
+++ b/code/modules/mob/living/silicon/pai/pai_vr.dm
@@ -13,13 +13,12 @@
/mob/living/silicon/pai/proc/update_fullness_pai() //Determines if they have something in their stomach. Copied and slightly modified.
var/new_people_eaten = 0
- for(var/I in vore_organs)
- var/datum/belly/B = vore_organs[I]
- for(var/mob/living/M in B.internal_contents)
+ for(var/belly in vore_organs)
+ var/obj/belly/B = belly
+ for(var/mob/living/M in B)
new_people_eaten += M.size_multiplier
people_eaten = min(1, new_people_eaten)
-
/mob/living/silicon/pai/update_icon() //Some functions cause this to occur, such as resting
..()
update_fullness_pai()
@@ -43,114 +42,3 @@
icon_state = "[chassis]_full"
else if(people_eaten && resting)
icon_state = "[chassis]_rest_full"
-
-/mob/living/silicon/pai/proc/examine_bellies_pai()
-
- var/message = ""
- for (var/I in src.vore_organs)
- var/datum/belly/B = vore_organs[I]
- message += B.get_examine_msg()
-
- return message
-
-
-
-//PAI Remove Limb code
-/mob/living/silicon/pai/proc/shred_limb()
- set name = "Damage/Remove Prey's Organ"
- set desc = "Severely damages prey's organ. If the limb is already severely damaged, it will be torn off."
- set category = "Abilities"
- if(!ispAI(src))
- return //If you're not a pai you don't have permission to do this.
- var/mob/living/silicon/pai/C = src
-
- if(last_special > world.time)
- return
-
- var/list/choices = list()
- for(var/mob/living/carbon/human/M in view(1,src))
- if(!istype(M,/mob/living/silicon) && Adjacent(M))
- choices += M
- choices -= src
-
- var/mob/living/carbon/human/T = input(src,"Who do you wish to target?") as null|anything in choices
-
- if(!T || !src || src.stat) return
-
- if(!Adjacent(T)) return
-
- if(last_special > world.time) return
-
- if(stat || paralysis || stunned || weakened || lying || restrained() || buckled)
- src << "You cannot target in your current state."
- return
-
- var/list/choices2 = list()
- for(var/obj/item/organ/O in T.organs) //External organs
- choices2 += O
-
- var/obj/item/organ/external/D = input(C,"What do you wish to severely damage?") as null|anything in choices2 //D for destroy.
- if(D.vital)
- if(alert("Are you sure you wish to severely damage their [D]? It most likely will kill the prey...",,"Yes", "No") != "Yes")
- return //If they reconsider, don't continue.
-
- var/list/choices3 = list()
- for(var/obj/item/organ/internal/I in D.internal_organs) //Look for the internal organ in the organ being shreded.
- choices3 += I
-
- var/obj/item/organ/internal/P = input(C,"Do you wish to severely damage an internal organ, as well? If not, click 'cancel'") as null|anything in choices3
-
- var/eat_limb = input(C,"Do you wish to swallow the organ if you tear if out? If so, select which stomach.") as null|anything in C.vore_organs //EXTREMELY EFFICIENT
-
- if(last_special > world.time)
- return
-
- if(stat || paralysis || stunned || weakened || lying || restrained() || buckled)
- to_chat(C, "You cannot shred in your current state.")
- return
-
- last_special = world.time + 450 //45 seconds.
- C.visible_message("[C] appears to be preparing to do something to [T]!") //Let everyone know that bad times are head
-
- if(do_after(C, 450, T)) //Fourty-Five seconds. You don't need a neckgrab for this, so it's going to take a long while.
- if(!Adjacent(T)) return
- if(P && P.damage >= 25) //Internal organ and it's been severely damage
- T.apply_damage(15, BRUTE, D) //Damage the external organ they're going through.
- P.removed()
- P.forceMove(T.loc) //Move to where prey is.
- log_and_message_admins("tore out [P] of [T].", C)
- if(eat_limb)
- var/datum/belly/S = C.vore_organs[eat_limb]
- P.forceMove(C) //Move to pred's gut
- S.internal_contents |= P //Add to pred's gut.
- C.visible_message("[C] severely damages [D] of [T]!") // Same as below, but (pred) damages the (right hand) of (person)
- to_chat(C, "[P] of [T] moves into your [S]!") //Quietly eat their internal organ! Comes out "The (right hand) of (person) moves into your (stomach)
- playsound(C, S.vore_sound, 70, 1)
- log_and_message_admins("tore out and ate [P] of [T].", C)
- else
- log_and_message_admins("tore out [P] of [T].", C)
- C.visible_message("[C] severely damages [D] of [T], resulting in their [P] coming out!")
- else if(!P && (D.damage >= 25 || D.brute_dam >= 25)) //Not targeting an internal organ & external organ has been severely damaged already.
- D.droplimb(1,DROPLIMB_EDGE) //Clean cut so it doesn't kill the prey completely.
- if(D.cannot_amputate) //Is it groin/chest? You can't remove those.
- T.apply_damage(25, BRUTE, D)
- C.visible_message("[C] severely damage [T]'s [D]!") //Keep it vague. Let the /me's do the talking.
- log_and_message_admins("shreded [T]'s [D].", C)
- return
- if(eat_limb)
- var/datum/belly/S = C.vore_organs[eat_limb]
- D.forceMove(C) //Move to pred's gut
- S.internal_contents |= D //Add to pred's gut.
- C.visible_message("[C] swallows [D] of [T] into their [S]!","You swallow [D] of [T]!")
- playsound(C, S.vore_sound, 70, 1)
- to_chat(C, "Their [D] moves into your [S]!")
- log_and_message_admins("tore off and ate [D] of [T].", C)
- else
- C.visible_message("[C] tears off [D] of [T]!","You tear out [D] of [T]!") //Will come out "You tear out (the right foot) of (person)
- log_and_message_admins("tore off [T]'s [D].", C)
- else //Not targeting an internal organ w/ > 25 damage , and the limb doesn't have < 25 damage.
- if(P)
- P.damage = 25 //Internal organs can only take damage, not brute damage.
- T.apply_damage(25, BRUTE, D)
- C.visible_message("[C] severely damages [D] of [T]!") //Keep it vague. Let the /me's do the talking.
- log_and_message_admins("shreded [D] of [T].", C)
diff --git a/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm b/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm
index 4d5ad5e49d..ba50b3e0ec 100644
--- a/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm
+++ b/code/modules/mob/living/silicon/robot/dogborg/dog_sleeper_vr.dm
@@ -527,15 +527,12 @@
hearer << deathsound
T << deathsound
if(is_vore_predator(T))
- for (var/bellytype in T.vore_organs)
- var/datum/belly/belly = T.vore_organs[bellytype]
- for (var/obj/thing in belly.internal_contents)
- thing.loc = src
- belly.internal_contents -= thing
- for (var/mob/subprey in belly.internal_contents)
- subprey.loc = src
- belly.internal_contents -= subprey
- to_chat(subprey, "As [T] melts away around you, you find yourself in [hound]'s [name]")
+ for(var/belly in T.vore_organs)
+ var/obj/belly/B = belly
+ for(var/atom/movable/thing in B)
+ thing.forceMove(src)
+ if(ismob(thing))
+ to_chat(thing, "As [T] melts away around you, you find yourself in [hound]'s [name]")
for(var/obj/item/I in T)
if(istype(I,/obj/item/organ/internal/mmi_holder/posibrain))
var/obj/item/organ/internal/mmi_holder/MMI = I
diff --git a/code/modules/mob/living/silicon/robot/examine_vr.dm b/code/modules/mob/living/silicon/robot/examine_vr.dm
index fba3791795..89d1522b8c 100644
--- a/code/modules/mob/living/silicon/robot/examine_vr.dm
+++ b/code/modules/mob/living/silicon/robot/examine_vr.dm
@@ -1,8 +1,8 @@
/mob/living/silicon/robot/proc/examine_bellies_borg()
var/message = ""
- for (var/I in src.vore_organs)
- var/datum/belly/B = vore_organs[I]
+ for(var/belly in vore_organs)
+ var/obj/belly/B = belly
message += B.get_examine_msg()
return message
\ No newline at end of file
diff --git a/code/modules/mob/living/silicon/robot/life.dm b/code/modules/mob/living/silicon/robot/life.dm
index aa1cf2d271..6c70e1b4b0 100644
--- a/code/modules/mob/living/silicon/robot/life.dm
+++ b/code/modules/mob/living/silicon/robot/life.dm
@@ -24,7 +24,6 @@
process_killswitch()
process_locks()
process_queued_alarms()
- handle_internal_contents() //VOREStation Edit
update_canmove()
/mob/living/silicon/robot/proc/clamp_values()
diff --git a/code/modules/mob/living/simple_animal/animals/cat_vr.dm b/code/modules/mob/living/simple_animal/animals/cat_vr.dm
index f4c2644ad6..b2d5c73e5c 100644
--- a/code/modules/mob/living/simple_animal/animals/cat_vr.dm
+++ b/code/modules/mob/living/simple_animal/animals/cat_vr.dm
@@ -1,8 +1,8 @@
/mob/living/simple_animal/cat/fluff/Runtime/init_belly()
..()
- var/datum/belly/B = vore_organs[vore_selected]
+ var/obj/belly/B = vore_selected
B.name = "Stomach"
- B.inside_flavor = "The slimy wet insides of Runtime! Not quite as clean as the cat on the outside."
+ B.desc = "The slimy wet insides of Runtime! Not quite as clean as the cat on the outside."
B.emote_lists[DM_HOLD] = list(
"Runtime's stomach kneads gently on you and you're fairly sure you can hear her start purring.",
diff --git a/code/modules/mob/living/simple_animal/animals/fish_vr.dm b/code/modules/mob/living/simple_animal/animals/fish_vr.dm
index 406171d3f2..d1d74ec60e 100644
--- a/code/modules/mob/living/simple_animal/animals/fish_vr.dm
+++ b/code/modules/mob/living/simple_animal/animals/fish_vr.dm
@@ -11,9 +11,9 @@
/mob/living/simple_animal/fish/koi/poisonous/Life()
..()
- var/datum/belly/why = check_belly(src)
- if(why && prob(10))
- sting(why.owner)
+ if(isbelly(loc) && prob(10))
+ var/obj/belly/B = loc
+ sting(B.owner)
/mob/living/simple_animal/fish/koi/poisonous/react_to_attack(var/atom/A)
if(isliving(A) && Adjacent(A))
diff --git a/code/modules/mob/living/simple_animal/animals/fox_vr.dm b/code/modules/mob/living/simple_animal/animals/fox_vr.dm
index 8a2bcdf390..65938cb249 100644
--- a/code/modules/mob/living/simple_animal/animals/fox_vr.dm
+++ b/code/modules/mob/living/simple_animal/animals/fox_vr.dm
@@ -40,9 +40,9 @@
/mob/living/simple_animal/fox/init_belly()
..()
- var/datum/belly/B = vore_organs[vore_selected]
+ var/obj/belly/B = vore_selected
B.name = "Stomach"
- B.inside_flavor = "Slick foxguts. Cute on the outside, slimy on the inside!"
+ B.desc = "Slick foxguts. Cute on the outside, slimy on the inside!"
B.emote_lists[DM_HOLD] = list(
"The foxguts knead and churn around you harmlessly.",
@@ -187,9 +187,9 @@
/mob/living/simple_animal/fox/fluff/Renault/init_belly()
..()
- var/datum/belly/B = vore_organs[vore_selected]
+ var/obj/belly/B = vore_selected
B.name = "Stomach"
- B.inside_flavor = "Slick foxguts. They seem somehow more regal than perhaps other foxes!"
+ B.desc = "Slick foxguts. They seem somehow more regal than perhaps other foxes!"
B.emote_lists[DM_HOLD] = list(
"Renault's stomach walls squeeze around you more tightly for a moment, before relaxing, as if testing you a bit.",
diff --git a/code/modules/mob/living/simple_animal/animals/slime.dm b/code/modules/mob/living/simple_animal/animals/slime.dm
index f7d23771a3..d3a8b1df0c 100644
--- a/code/modules/mob/living/simple_animal/animals/slime.dm
+++ b/code/modules/mob/living/simple_animal/animals/slime.dm
@@ -1,4 +1,4 @@
-/mob/living/simple_animal/slime
+/mob/living/simple_animal/old_slime
name = "pet slime"
desc = "A lovable, domesticated slime."
icon = 'icons/mob/slimes.dmi'
@@ -19,14 +19,14 @@
var/colour = "grey"
-/mob/living/simple_animal/slime/science
+/mob/living/simple_animal/old_slime/science
name = "Kendrick"
colour = "rainbow"
icon_state = "rainbow baby slime"
icon_living = "rainbow baby slime"
icon_dead = "rainbow baby slime dead"
-/mob/living/simple_animal/slime/science/initialize()
+/mob/living/simple_animal/old_slime/science/initialize()
. = ..()
overlays.Cut()
overlays += "aslime-:33"
@@ -56,12 +56,12 @@
overlays += "aslime-:33"
/mob/living/simple_animal/adultslime/death()
- var/mob/living/simple_animal/slime/S1 = new /mob/living/simple_animal/slime (src.loc)
+ var/mob/living/simple_animal/old_slime/S1 = new /mob/living/simple_animal/old_slime (src.loc)
S1.icon_state = "[src.colour] baby slime"
S1.icon_living = "[src.colour] baby slime"
S1.icon_dead = "[src.colour] baby slime dead"
S1.colour = "[src.colour]"
- var/mob/living/simple_animal/slime/S2 = new /mob/living/simple_animal/slime (src.loc)
+ var/mob/living/simple_animal/old_slime/S2 = new /mob/living/simple_animal/old_slime (src.loc)
S2.icon_state = "[src.colour] baby slime"
S2.icon_living = "[src.colour] baby slime"
S2.icon_dead = "[src.colour] baby slime dead"
diff --git a/code/modules/mob/living/simple_animal/simple_animal_vr.dm b/code/modules/mob/living/simple_animal/simple_animal_vr.dm
index 669726c537..8aa585cbb3 100644
--- a/code/modules/mob/living/simple_animal/simple_animal_vr.dm
+++ b/code/modules/mob/living/simple_animal/simple_animal_vr.dm
@@ -33,11 +33,9 @@
if(!IsAdvancedToolUser())
verbs |= /mob/living/simple_animal/proc/animal_nom
-// Release belly contents beforey being gc'd!
+// Release belly contents before being gc'd!
/mob/living/simple_animal/Destroy()
- for(var/I in vore_organs)
- var/datum/belly/B = vore_organs[I]
- B.release_all_contents(include_absorbed = TRUE) // When your stomach is empty
+ release_vore_contents()
prey_excludes.Cut()
. = ..()
@@ -49,9 +47,9 @@
// Update fullness based on size & quantity of belly contents
/mob/living/simple_animal/proc/update_fullness()
var/new_fullness = 0
- for(var/I in vore_organs)
- var/datum/belly/B = vore_organs[I]
- for(var/mob/living/M in B.internal_contents)
+ for(var/belly in vore_organs)
+ var/obj/belly/B = belly
+ for(var/mob/living/M in B)
new_fullness += M.size_multiplier
new_fullness = round(new_fullness, 1) // Because intervals of 0.25 are going to make sprite artists cry.
vore_fullness = min(vore_capacity, new_fullness)
@@ -137,10 +135,8 @@
stop_automated_movement = 0
/mob/living/simple_animal/death()
- for(var/I in vore_organs)
- var/datum/belly/B = vore_organs[I]
- B.release_all_contents(include_absorbed = TRUE) // When your stomach is empty
- ..() // then you have my permission to die.
+ release_vore_contents()
+ . = ..()
// Simple animals have only one belly. This creates it (if it isn't already set up)
/mob/living/simple_animal/proc/init_belly()
@@ -149,10 +145,11 @@
if(no_vore) //If it can't vore, let's not give it a stomach.
return
- var/datum/belly/B = new /datum/belly(src)
+ var/obj/belly/B = new /obj/belly(src)
+ vore_selected = B
B.immutable = 1
B.name = vore_stomach_name ? vore_stomach_name : "stomach"
- B.inside_flavor = vore_stomach_flavor ? vore_stomach_flavor : "Your surroundings are warm, soft, and slimy. Makes sense, considering you're inside \the [name]."
+ B.desc = vore_stomach_flavor ? vore_stomach_flavor : "Your surroundings are warm, soft, and slimy. Makes sense, considering you're inside \the [name]."
B.digest_mode = vore_default_mode
B.escapable = vore_escape_chance > 0
B.escapechance = vore_escape_chance
@@ -161,7 +158,6 @@
B.human_prey_swallow_time = swallowTime
B.nonhuman_prey_swallow_time = swallowTime
B.vore_verb = "swallow"
- // TODO - Customizable per mob
B.emote_lists[DM_HOLD] = list( // We need more that aren't repetitive. I suck at endo. -Ace
"The insides knead at you gently for a moment.",
"The guts glorp wetly around you as some air shifts.",
@@ -192,9 +188,7 @@
"The juices pooling beneath you sizzle against your sore skin.",
"The churning walls slowly pulverize you into meaty nutrients.",
"The stomach glorps and gurgles as it tries to work you into slop.")
- src.vore_organs[B.name] = B
- src.vore_selected = B.name
-
+
/mob/living/simple_animal/Bumped(var/atom/movable/AM, yes)
if(ismob(AM))
var/mob/tmob = AM
diff --git a/code/modules/mob/living/simple_animal/vore/otie.dm b/code/modules/mob/living/simple_animal/vore/otie.dm
index 3500a5b3ad..885f625fe2 100644
--- a/code/modules/mob/living/simple_animal/vore/otie.dm
+++ b/code/modules/mob/living/simple_animal/vore/otie.dm
@@ -184,27 +184,20 @@
if(ai_inactive)//No autobarf on player control.
return
if(istype(O, /obj/item/weapon/reagent_containers/food/snacks/donut) && istype(src, /mob/living/simple_animal/otie/security))
- user << "The guard pup accepts your offer for their catch."
- for(var/I in vore_organs)
- var/datum/belly/B = vore_organs[I]
- B.release_all_contents()
- return
- if(prob(2)) //Small chance to get prey out from non-sec oties.
- for(var/I in vore_organs)
- var/datum/belly/B = vore_organs[I]
- B.release_all_contents()
- return
+ to_chat(user,"The guard pup accepts your offer for their catch.")
+ release_vore_contents()
+ else if(prob(2)) //Small chance to get prey out from non-sec oties.
+ to_chat(user,"The pup accepts your offer for their catch.")
+ release_vore_contents()
return
- ..()
+ . = ..()
/mob/living/simple_animal/otie/security/feed_grabbed_to_self(var/mob/living/user, var/mob/living/prey) // Make the gut start out safe for bellybrigging.
- var/datum/belly/B = user.vore_selected
- var/datum/belly/belly_target = user.vore_organs[B]
if(ishuman(target_mob))
- belly_target.digest_mode = DM_HOLD
+ vore_selected.digest_mode = DM_HOLD
if(istype(prey,/mob/living/simple_animal/mouse))
- belly_target.digest_mode = DM_DIGEST
- ..()
+ vore_selected.digest_mode = DM_DIGEST
+ . = ..()
/mob/living/simple_animal/otie/security/proc/check_threat(var/mob/living/M)
if(!M || !ishuman(M) || M.stat == DEAD || src == M)
diff --git a/code/modules/mob/living/simple_animal/vore/shadekin/ability_procs.dm b/code/modules/mob/living/simple_animal/vore/shadekin/ability_procs.dm
index f14901a63d..91bd07db29 100644
--- a/code/modules/mob/living/simple_animal/vore/shadekin/ability_procs.dm
+++ b/code/modules/mob/living/simple_animal/vore/shadekin/ability_procs.dm
@@ -21,7 +21,7 @@
ability_flags &= ~AB_PHASE_SHIFTED
name = real_name
for(var/belly in vore_organs)
- var/datum/belly/B = vore_organs[belly]
+ var/obj/belly/B = belly
B.escapable = initial(B.escapable)
overlays.Cut()
@@ -43,13 +43,9 @@
var/list/potentials = living_mobs(0)
if(potentials.len)
var/mob/living/target = pick(potentials)
- var/datum/belly/B = vore_organs[vore_selected]
- if(istype(target) && istype(B))
- target.forceMove(src)
- B.internal_contents |= target
- playsound(src, B.vore_sound, 100, 1)
- to_chat(target,"\The [src] phases in around you, [B.vore_verb]ing you into their [B.name]!")
- to_chat(src,"Your [B.name] has a new occupant!")
+ if(istype(target) && vore_selected)
+ target.forceMove(vore_selected)
+ to_chat(target,"\The [src] phases in around you, [vore_selected.vore_verb]ing you into their [vore_selected.name]!")
// Do this after the potential vore, so we get the belly
update_icon()
@@ -79,7 +75,7 @@
name = "Something"
for(var/belly in vore_organs)
- var/datum/belly/B = vore_organs[belly]
+ var/obj/belly/B = belly
B.escapable = FALSE
overlays.Cut()
diff --git a/code/modules/mob/living/simple_animal/vore/shadekin/shadekin.dm b/code/modules/mob/living/simple_animal/vore/shadekin/shadekin.dm
index 5594a6f1bc..2a2085d8e4 100644
--- a/code/modules/mob/living/simple_animal/vore/shadekin/shadekin.dm
+++ b/code/modules/mob/living/simple_animal/vore/shadekin/shadekin.dm
@@ -130,10 +130,11 @@
if(no_vore) //If it can't vore, let's not give it a stomach.
return
- var/datum/belly/B = new /datum/belly(src)
+ var/obj/belly/B = new /obj/belly(src)
+ vore_selected = B
B.immutable = 1
B.name = vore_stomach_name ? vore_stomach_name : "stomach"
- B.inside_flavor = vore_stomach_flavor ? vore_stomach_flavor : "Your surroundings are warm, soft, and slimy. Makes sense, considering you're inside \the [name]."
+ B.desc = vore_stomach_flavor ? vore_stomach_flavor : "Your surroundings are warm, soft, and slimy. Makes sense, considering you're inside \the [name]."
B.digest_mode = vore_default_mode
B.escapable = vore_escape_chance > 0
B.escapechance = vore_escape_chance
@@ -186,14 +187,6 @@
"The chaos of being digested fades as you’re snuffed out by a harsh clench! You’re steadily broken down into a thick paste, processed and absorbed by the predator!"
)
- src.vore_organs[B.name] = B
- src.vore_selected = B.name
-
-
-
-
-
-
/mob/living/simple_animal/shadekin/Life()
. = ..()
if(ability_flags & AB_PHASE_SHIFTED)
diff --git a/code/modules/mob/living/simple_animal/vore/zz_vore_overrides.dm b/code/modules/mob/living/simple_animal/vore/zz_vore_overrides.dm
index 2f2868faab..863b7da41e 100644
--- a/code/modules/mob/living/simple_animal/vore/zz_vore_overrides.dm
+++ b/code/modules/mob/living/simple_animal/vore/zz_vore_overrides.dm
@@ -228,8 +228,8 @@
// Override stuff for holodeck carp to make them not digest when set to safe!
/mob/living/simple_animal/hostile/carp/holodeck/set_safety(var/safe)
. = ..()
- for(var/I in vore_organs)
- var/datum/belly/B = vore_organs[I]
+ for(var/belly in vore_organs)
+ var/obj/belly/B = belly
B.digest_mode = safe ? DM_HOLD : vore_default_mode
B.digestchance = safe ? 0 : vore_digest_chance
B.absorbchance = safe ? 0 : vore_absorb_chance
diff --git a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Vore_vr.dm b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Vore_vr.dm
index 75886783ae..84360e128f 100644
--- a/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Vore_vr.dm
+++ b/code/modules/reagents/Chemistry-Reagents/Chemistry-Reagents-Vore_vr.dm
@@ -80,9 +80,9 @@
M.make_dizzy(1)
M.adjustHalLoss(2)
- for(var/I in M.vore_organs)
- var/datum/belly/B = M.vore_organs[I]
- for(var/atom/movable/A in B.internal_contents)
+ for(var/belly in M.vore_organs)
+ var/obj/belly/B = belly
+ for(var/atom/movable/A in B)
if(isliving(A))
var/mob/living/P = A
if(P.absorbed)
@@ -90,8 +90,6 @@
if(prob(5))
playsound(M, 'sound/effects/splat.ogg', 50, 1)
B.release_specific_contents(A)
- return
-
/datum/reagent/unsorbitol
name = "Unsorbitol"
@@ -109,13 +107,13 @@
M.confused = max(M.confused, 20)
M.hallucination += 15
- for(var/I in M.vore_organs)
- var/datum/belly/B = M.vore_organs[I]
+ for(var/belly in M.vore_organs)
+ var/obj/belly/B = belly
if(B.digest_mode == DM_ABSORB) //Turn off absorbing on bellies
B.digest_mode = DM_HOLD
- for(var/mob/living/P in B.internal_contents)
+ for(var/mob/living/P in B)
if(!P.absorbed)
continue
@@ -123,7 +121,6 @@
playsound(M, 'sound/vore/schlorp.ogg', 50, 1)
P.absorbed = 0
M.visible_message("Something spills into [M]'s [lowertext(B.name)]!")
- return
//Special toxins for solargrubs
diff --git a/code/modules/vore/eating/belly_dat_vr.dm b/code/modules/vore/eating/belly_dat_vr.dm
new file mode 100644
index 0000000000..19befd3035
--- /dev/null
+++ b/code/modules/vore/eating/belly_dat_vr.dm
@@ -0,0 +1,162 @@
+// // // // // // // // // // // //
+// // // LEGACY USE ONLY!! // // //
+// // // // // // // // // // // //
+
+// These have been REPLACED by the object-based bellies. These remain here,
+// so that people can load save files from prior times, and the Copy() proc can
+// convert their belly to a new object-based one.
+
+/datum/belly
+ var/name // Name of this location
+ var/inside_flavor // Flavor text description of inside sight/sound/smells/feels.
+ var/vore_sound = 'sound/vore/gulp.ogg' // Sound when ingesting someone
+ var/vore_verb = "ingest" // Verb for eating with this in messages
+ var/human_prey_swallow_time = 100 // Time in deciseconds to swallow /mob/living/carbon/human
+ var/nonhuman_prey_swallow_time = 30 // Time in deciseconds to swallow anything else
+ var/emoteTime = 600 // How long between stomach emotes at prey
+ var/digest_brute = 2 // Brute damage per tick in digestion mode
+ var/digest_burn = 3 // Burn damage per tick in digestion mode
+ var/digest_tickrate = 3 // Modulus this of air controller tick number to iterate gurgles on
+ var/immutable = 0 // Prevents this belly from being deleted
+ var/escapable = 0 // Belly can be resisted out of at any time
+ var/escapetime = 60 SECONDS // Deciseconds, how long to escape this belly
+ var/digestchance = 0 // % Chance of stomach beginning to digest if prey struggles
+ var/absorbchance = 0 // % Chance of stomach beginning to absorb if prey struggles
+ var/escapechance = 0 // % Chance of prey beginning to escape if prey struggles.
+ var/transferchance = 0 // % Chance of prey being
+ var/can_taste = 0 // If this belly prints the flavor of prey when it eats someone.
+ var/bulge_size = 0.25 // The minimum size the prey has to be in order to show up on examine.
+ var/shrink_grow_size = 1 // This horribly named variable determines the minimum/maximum size it will shrink/grow prey to.
+ var/datum/belly/transferlocation = null // Location that the prey is released if they struggle and get dropped off.
+
+ var/tmp/digest_mode = DM_HOLD // Whether or not to digest. Default to not digest.
+ var/tmp/list/digest_modes = list(DM_HOLD,DM_DIGEST,DM_ITEMWEAK,DM_STRIPDIGEST,DM_HEAL,DM_ABSORB,DM_DRAIN,DM_UNABSORB,DM_SHRINK,DM_GROW,DM_SIZE_STEAL,DM_DIGEST_NUMB) // Possible digest modes
+ var/tmp/list/transform_modes = list(DM_TRANSFORM_MALE,DM_TRANSFORM_FEMALE,DM_TRANSFORM_KEEP_GENDER,DM_TRANSFORM_CHANGE_SPECIES_AND_TAUR,DM_TRANSFORM_CHANGE_SPECIES_AND_TAUR_EGG,DM_TRANSFORM_REPLICA,DM_TRANSFORM_REPLICA_EGG,DM_TRANSFORM_KEEP_GENDER_EGG,DM_TRANSFORM_MALE_EGG,DM_TRANSFORM_FEMALE_EGG, DM_EGG)
+ var/tmp/mob/living/owner // The mob whose belly this is.
+ var/tmp/list/internal_contents = list() // People/Things you've eaten into this belly!
+ var/tmp/emotePend = FALSE // If there's already a spawned thing counting for the next emote
+ var/tmp/list/items_preserved = list() // Stuff that wont digest.
+ var/list/slots = list(slot_back,slot_handcuffed,slot_l_store,slot_r_store,slot_wear_mask,slot_l_hand,slot_r_hand,slot_wear_id,slot_glasses,slot_gloves,slot_head,slot_shoes,slot_belt,slot_wear_suit,slot_w_uniform,slot_s_store,slot_l_ear,slot_r_ear)
+
+
+ // Don't forget to watch your commas at the end of each line if you change these.
+ var/list/struggle_messages_outside = list(
+ "%pred's %belly wobbles with a squirming meal.",
+ "%pred's %belly jostles with movement.",
+ "%pred's %belly briefly swells outward as someone pushes from inside.",
+ "%pred's %belly fidgets with a trapped victim.",
+ "%pred's %belly jiggles with motion from inside.",
+ "%pred's %belly sloshes around.",
+ "%pred's %belly gushes softly.",
+ "%pred's %belly lets out a wet squelch.")
+
+ var/list/struggle_messages_inside = list(
+ "Your useless squirming only causes %pred's slimy %belly to squelch over your body.",
+ "Your struggles only cause %pred's %belly to gush softly around you.",
+ "Your movement only causes %pred's %belly to slosh around you.",
+ "Your motion causes %pred's %belly to jiggle.",
+ "You fidget around inside of %pred's %belly.",
+ "You shove against the walls of %pred's %belly, making it briefly swell outward.",
+ "You jostle %pred's %belly with movement.",
+ "You squirm inside of %pred's %belly, making it wobble around.")
+
+ var/list/digest_messages_owner = list(
+ "You feel %prey's body succumb to your digestive system, which breaks it apart into soft slurry.",
+ "You hear a lewd glorp as your %belly muscles grind %prey into a warm pulp.",
+ "Your %belly lets out a rumble as it melts %prey into sludge.",
+ "You feel a soft gurgle as %prey's body loses form in your %belly. They're nothing but a soft mass of churning slop now.",
+ "Your %belly begins gushing %prey's remains through your system, adding some extra weight to your thighs.",
+ "Your %belly begins gushing %prey's remains through your system, adding some extra weight to your rump.",
+ "Your %belly begins gushing %prey's remains through your system, adding some extra weight to your belly.",
+ "Your %belly groans as %prey falls apart into a thick soup. You can feel their remains soon flowing deeper into your body to be absorbed.",
+ "Your %belly kneads on every fiber of %prey, softening them down into mush to fuel your next hunt.",
+ "Your %belly churns %prey down into a hot slush. You can feel the nutrients coursing through your digestive track with a series of long, wet glorps.")
+
+ var/list/digest_messages_prey = list(
+ "Your body succumbs to %pred's digestive system, which breaks you apart into soft slurry.",
+ "%pred's %belly lets out a lewd glorp as their muscles grind you into a warm pulp.",
+ "%pred's %belly lets out a rumble as it melts you into sludge.",
+ "%pred feels a soft gurgle as your body loses form in their %belly. You're nothing but a soft mass of churning slop now.",
+ "%pred's %belly begins gushing your remains through their system, adding some extra weight to %pred's thighs.",
+ "%pred's %belly begins gushing your remains through their system, adding some extra weight to %pred's rump.",
+ "%pred's %belly begins gushing your remains through their system, adding some extra weight to %pred's belly.",
+ "%pred's %belly groans as you fall apart into a thick soup. Your remains soon flow deeper into %pred's body to be absorbed.",
+ "%pred's %belly kneads on every fiber of your body, softening you down into mush to fuel their next hunt.",
+ "%pred's %belly churns you down into a hot slush. Your nutrient-rich remains course through their digestive track with a series of long, wet glorps.")
+
+ var/list/examine_messages = list(
+ "They have something solid in their %belly!",
+ "It looks like they have something in their %belly!")
+
+ //Mostly for being overridden on precreated bellies on mobs. Could be VV'd into
+ //a carbon's belly if someone really wanted. No UI for carbons to adjust this.
+ //List has indexes that are the digestion mode strings, and keys that are lists of strings.
+ var/tmp/list/emote_lists = list()
+
+//OLD: This only exists for legacy conversion purposes
+//It's called whenever an old datum-style belly is loaded
+/datum/belly/proc/copy(obj/belly/new_belly)
+
+ //// Non-object variables
+ new_belly.name = name
+ new_belly.desc = inside_flavor
+ new_belly.vore_sound = vore_sound
+ new_belly.vore_verb = vore_verb
+ new_belly.human_prey_swallow_time = human_prey_swallow_time
+ new_belly.nonhuman_prey_swallow_time = nonhuman_prey_swallow_time
+ new_belly.emote_time = emoteTime
+ new_belly.digest_brute = digest_brute
+ new_belly.digest_burn = digest_burn
+ new_belly.digest_tickrate = digest_tickrate
+ new_belly.immutable = immutable
+ new_belly.can_taste = can_taste
+ new_belly.escapable = escapable
+ new_belly.escapetime = escapetime
+ new_belly.digestchance = digestchance
+ new_belly.absorbchance = absorbchance
+ new_belly.escapechance = escapechance
+ new_belly.transferchance = transferchance
+ new_belly.transferlocation = transferlocation
+ new_belly.bulge_size = bulge_size
+ new_belly.shrink_grow_size = shrink_grow_size
+
+ //// Object-holding variables
+ //struggle_messages_outside - strings
+ new_belly.struggle_messages_outside.Cut()
+ for(var/I in struggle_messages_outside)
+ new_belly.struggle_messages_outside += I
+
+ //struggle_messages_inside - strings
+ new_belly.struggle_messages_inside.Cut()
+ for(var/I in struggle_messages_inside)
+ new_belly.struggle_messages_inside += I
+
+ //digest_messages_owner - strings
+ new_belly.digest_messages_owner.Cut()
+ for(var/I in digest_messages_owner)
+ new_belly.digest_messages_owner += I
+
+ //digest_messages_prey - strings
+ new_belly.digest_messages_prey.Cut()
+ for(var/I in digest_messages_prey)
+ new_belly.digest_messages_prey += I
+
+ //examine_messages - strings
+ new_belly.examine_messages.Cut()
+ for(var/I in examine_messages)
+ new_belly.examine_messages += I
+
+ //emote_lists - index: digest mode, key: list of strings
+ new_belly.emote_lists.Cut()
+ for(var/K in emote_lists)
+ new_belly.emote_lists[K] = list()
+ for(var/I in emote_lists[K])
+ new_belly.emote_lists[K] += I
+
+ return new_belly
+
+// // // // // // // // // // // //
+// // // LEGACY USE ONLY!! // // //
+// // // // // // // // // // // //
+// See top of file! //
+// // // // // // // // // // // //
\ No newline at end of file
diff --git a/code/modules/vore/eating/belly_vr.dm b/code/modules/vore/eating/belly_obj_vr.dm
similarity index 62%
rename from code/modules/vore/eating/belly_vr.dm
rename to code/modules/vore/eating/belly_obj_vr.dm
index b8f98922a1..01f21b4124 100644
--- a/code/modules/vore/eating/belly_vr.dm
+++ b/code/modules/vore/eating/belly_obj_vr.dm
@@ -1,6 +1,8 @@
+#define VORE_SOUND_FALLOFF 0.05
+
//
-// The belly object is what holds onto a mob while they're inside a predator.
-// It takes care of altering the pred's decription, digesting the prey, relaying struggles etc.
+// Belly system 2.0, now using objects instead of datums because EH at datums.
+// How many times have I rewritten bellies and vore now? -Aro
//
// If you change what variables are on this, then you need to update the copy() proc.
@@ -8,16 +10,16 @@
//
// Parent type of all the various "belly" varieties.
//
-/datum/belly
- var/name // Name of this location
- var/inside_flavor // Flavor text description of inside sight/sound/smells/feels.
+/obj/belly
+ name = "belly" // Name of this location
+ desc = "It's a belly! You're in it!" // Flavor text description of inside sight/sound/smells/feels.
var/vore_sound = 'sound/vore/gulp.ogg' // Sound when ingesting someone
var/vore_verb = "ingest" // Verb for eating with this in messages
var/human_prey_swallow_time = 100 // Time in deciseconds to swallow /mob/living/carbon/human
var/nonhuman_prey_swallow_time = 30 // Time in deciseconds to swallow anything else
- var/emoteTime = 600 // How long between stomach emotes at prey
+ var/emote_time = 60 SECONDS // How long between stomach emotes at prey
var/digest_brute = 2 // Brute damage per tick in digestion mode
- var/digest_burn = 3 // Burn damage per tick in digestion mode
+ var/digest_burn = 2 // Burn damage per tick in digestion mode
var/digest_tickrate = 3 // Modulus this of air controller tick number to iterate gurgles on
var/immutable = 0 // Prevents this belly from being deleted
var/escapable = 0 // Belly can be resisted out of at any time
@@ -29,20 +31,21 @@
var/can_taste = 0 // If this belly prints the flavor of prey when it eats someone.
var/bulge_size = 0.25 // The minimum size the prey has to be in order to show up on examine.
var/shrink_grow_size = 1 // This horribly named variable determines the minimum/maximum size it will shrink/grow prey to.
- var/datum/belly/transferlocation = null // Location that the prey is released if they struggle and get dropped off.
+ var/transferlocation // Location that the prey is released if they struggle and get dropped off.
+ var/release_sound = TRUE // Boolean for now, maybe replace with something else later
+
+ //I don't think we've ever altered these lists. making them static until someone actually overrides them somewhere.
+ var/tmp/static/list/digest_modes = list(DM_HOLD,DM_DIGEST,DM_ITEMWEAK,DM_STRIPDIGEST,DM_HEAL,DM_ABSORB,DM_DRAIN,DM_UNABSORB,DM_SHRINK,DM_GROW,DM_SIZE_STEAL,DM_DIGEST_NUMB) // Possible digest modes
+ var/tmp/static/list/transform_modes = list(DM_TRANSFORM_MALE,DM_TRANSFORM_FEMALE,DM_TRANSFORM_KEEP_GENDER,DM_TRANSFORM_CHANGE_SPECIES_AND_TAUR,DM_TRANSFORM_CHANGE_SPECIES_AND_TAUR_EGG,DM_TRANSFORM_REPLICA,DM_TRANSFORM_REPLICA_EGG,DM_TRANSFORM_KEEP_GENDER_EGG,DM_TRANSFORM_MALE_EGG,DM_TRANSFORM_FEMALE_EGG, DM_EGG)
+ var/tmp/static/list/slots = list(slot_back,slot_handcuffed,slot_l_store,slot_r_store,slot_wear_mask,slot_l_hand,slot_r_hand,slot_wear_id,slot_glasses,slot_gloves,slot_head,slot_shoes,slot_belt,slot_wear_suit,slot_w_uniform,slot_s_store,slot_l_ear,slot_r_ear)
- var/tmp/digest_mode = DM_HOLD // Whether or not to digest. Default to not digest.
- var/tmp/list/digest_modes = list(DM_HOLD,DM_DIGEST,DM_ITEMWEAK,DM_STRIPDIGEST,DM_HEAL,DM_ABSORB,DM_DRAIN,DM_UNABSORB,DM_SHRINK,DM_GROW,DM_SIZE_STEAL,DM_DIGEST_NUMB) // Possible digest modes
- var/tmp/list/transform_modes = list(DM_TRANSFORM_MALE,DM_TRANSFORM_FEMALE,DM_TRANSFORM_KEEP_GENDER,DM_TRANSFORM_CHANGE_SPECIES_AND_TAUR,DM_TRANSFORM_CHANGE_SPECIES_AND_TAUR_EGG,DM_TRANSFORM_REPLICA,DM_TRANSFORM_REPLICA_EGG,DM_TRANSFORM_KEEP_GENDER_EGG,DM_TRANSFORM_MALE_EGG,DM_TRANSFORM_FEMALE_EGG, DM_EGG)
var/tmp/mob/living/owner // The mob whose belly this is.
- var/tmp/list/internal_contents = list() // People/Things you've eaten into this belly!
- var/tmp/is_full // Flag for if digested remeans are present. (for disposal messages)
- var/tmp/emotePend = FALSE // If there's already a spawned thing counting for the next emote
- var/tmp/list/items_preserved = list() // Stuff that wont digest.
- var/tmp/list/checked_slots = list() // Checked gear slots for strip digest.
- var/list/slots = list(slot_back,slot_handcuffed,slot_l_store,slot_r_store,slot_wear_mask,slot_l_hand,slot_r_hand,slot_wear_id,slot_glasses,slot_gloves,slot_head,slot_shoes,slot_belt,slot_wear_suit,slot_w_uniform,slot_s_store,slot_l_ear,slot_r_ear)
-
-
+ var/tmp/digest_mode = DM_HOLD // Current mode the belly is set to from digest_modes (+transform_modes if human)
+ var/tmp/next_process = 0 // Waiting for this SSbellies times_fired to process again.
+ var/tmp/list/items_preserved = list() // Stuff that wont digest so we shouldn't process it again.
+ var/tmp/next_emote = 0 // When we're supposed to print our next emote, as a belly controller tick #
+ var/tmp/recent_sound = FALSE // Prevent audio spam
+
// Don't forget to watch your commas at the end of each line if you change these.
var/list/struggle_messages_outside = list(
"%pred's %belly wobbles with a squirming meal.",
@@ -97,56 +100,77 @@
//List has indexes that are the digestion mode strings, and keys that are lists of strings.
var/tmp/list/emote_lists = list()
-// Constructor that sets the owning mob
-/datum/belly/New(var/mob/living/owning_mob)
- owner = owning_mob
+/obj/belly/initialize()
+ . = ..()
+ //If not, we're probably just in a prefs list or something.
+ if(isliving(loc))
+ owner = loc
+ owner.vore_organs |= src
+ SSbellies.belly_list += src
-// Toggle digestion on/off and notify user of the new setting.
-// If multiple digestion modes are avaliable (i.e. unbirth) then user should be prompted.
-/datum/belly/proc/toggle_digestion()
- return
+/obj/belly/Destroy()
+ SSbellies.belly_list -= src
+ if(owner)
+ owner.vore_organs -= src
+ owner = null
+ . = ..()
-// Checks if any mobs are present inside the belly
-// return True if the belly is empty.
-/datum/belly/proc/is_empty()
- return internal_contents.len == 0
+// Called whenever an atom enters this belly
+/obj/belly/Entered(var/atom/movable/thing,var/atom/OldLoc)
+ if(OldLoc in contents)
+ return //Someone dropping something (or being stripdigested)
+ //Generic entered message
+ to_chat(owner,"[thing] slides into your [lowertext(name)].")
+
+ //Sound w/ antispam flag setting
+ if(vore_sound && !recent_sound)
+ playsound(src, vore_sound, vol = 100, vary = 1, falloff = VORE_SOUND_FALLOFF, preference = /datum/client_preference/eating_noises)
+ recent_sound = TRUE
+
+ //Messages if it's a mob
+ if(isliving(thing))
+ var/mob/living/M = thing
+ if(desc)
+ to_chat(M, "[desc]")
+ var/taste
+ if(can_taste && (taste = M.get_taste_message(FALSE)))
+ to_chat(owner, "[M] tastes of [taste].")
+
// Release all contents of this belly into the owning mob's location.
// If that location is another mob, contents are transferred into whichever of its bellies the owning mob is in.
// Returns the number of mobs so released.
-/datum/belly/proc/release_all_contents(var/include_absorbed = FALSE)
- if (internal_contents.len == 0)
- return 0
- for (var/M in internal_contents)
- if(istype(M,/mob/living))
- var/mob/living/ML = M
- if(ML.absorbed && !include_absorbed)
+/obj/belly/proc/release_all_contents(var/include_absorbed = FALSE)
+ var/atom/destination = drop_location()
+ var/count = 0
+ for(var/thing in contents)
+ var/atom/movable/AM = thing
+ if(isliving(AM))
+ var/mob/living/L = AM
+ if(L.absorbed && !include_absorbed)
continue
- ML.absorbed = FALSE
+ L.absorbed = FALSE
- var/atom/movable/AM = M
- AM.forceMove(owner.loc) // Move the belly contents into the same location as belly's owner.
- internal_contents -= AM // Remove from the belly contents
- var/datum/belly/B = check_belly(owner) // This makes sure that the mob behaves properly if released into another mob
- if(B)
- B.internal_contents += AM
+ AM.forceMove(destination) // Move the belly contents into the same location as belly's owner.
+ count++
items_preserved.Cut()
- checked_slots.Cut()
owner.visible_message("[owner] expels everything from their [lowertext(name)]!")
owner.update_icons()
- return 1
+ if(release_sound)
+ playsound(src, 'sound/effects/splat.ogg', vol = 100, vary = 1, falloff = VORE_SOUND_FALLOFF, preference = /datum/client_preference/eating_noises)
+ return count
// Release a specific atom from the contents of this belly into the owning mob's location.
// If that location is another mob, the atom is transferred into whichever of its bellies the owning mob is in.
// Returns the number of atoms so released.
-/datum/belly/proc/release_specific_contents(var/atom/movable/M)
- if (!(M in internal_contents))
+/obj/belly/proc/release_specific_contents(var/atom/movable/M)
+ if (!(M in contents))
return 0 // They weren't in this belly anyway
- M.forceMove(owner.loc) // Move the belly contents into the same location as belly's owner.
- src.internal_contents -= M // Remove from the belly contents
- if(M in items_preserved)
- src.items_preserved -= M
+ M.forceMove(drop_location()) // Move the belly contents into the same location as belly's owner.
+ items_preserved -= M
+ if(release_sound)
+ playsound(src, 'sound/effects/splat.ogg', vol = 100, vary = 1, falloff = VORE_SOUND_FALLOFF, preference = /datum/client_preference/eating_noises)
if(istype(M,/mob/living))
var/mob/living/ML = M
@@ -156,17 +180,12 @@
if(ishuman(M) && ishuman(OW))
var/mob/living/carbon/human/Prey = M
var/mob/living/carbon/human/Pred = OW
- // TODO - If we ever find a way to share reagent containers, un-share them here
var/absorbed_count = 2 //Prey that we were, plus the pred gets a portion
- for(var/mob/living/P in internal_contents)
+ for(var/mob/living/P in contents)
if(P.absorbed)
absorbed_count++
Pred.bloodstr.trans_to(Prey, Pred.reagents.total_volume / absorbed_count)
- var/datum/belly/B = check_belly(owner)
- if(B)
- B.internal_contents += M
-
owner.visible_message("[owner] expels [M] from their [lowertext(name)]!")
owner.update_icons()
return 1
@@ -174,38 +193,32 @@
// Actually perform the mechanics of devouring the tasty prey.
// The purpose of this method is to avoid duplicate code, and ensure that all necessary
// steps are taken.
-/datum/belly/proc/nom_mob(var/mob/prey, var/mob/user)
+/obj/belly/proc/nom_mob(var/mob/prey, var/mob/user)
if(owner.stat == DEAD)
return
if (prey.buckled)
prey.buckled.unbuckle_mob()
- prey.forceMove(owner)
- internal_contents |= prey
+ prey.forceMove(src)
owner.updateVRPanel()
- for(var/mob/living/M in internal_contents)
+
+ for(var/mob/living/M in contents)
M.updateVRPanel()
- if(inside_flavor)
- prey << "[inside_flavor]"
-
- for(var/obj/item/weapon/storage/S in prey)
- S.hide_from(owner)
-
// Get the line that should show up in Examine message if the owner of this belly
// is examined. By making this a proc, we not only take advantage of polymorphism,
// but can easily make the message vary based on how many people are inside, etc.
// Returns a string which shoul be appended to the Examine output.
-/datum/belly/proc/get_examine_msg()
- if(internal_contents.len && examine_messages.len)
+/obj/belly/proc/get_examine_msg()
+ if(contents.len && examine_messages.len)
var/formatted_message
var/raw_message = pick(examine_messages)
var/total_bulge = 0
formatted_message = replacetext(raw_message,"%belly",lowertext(name))
formatted_message = replacetext(formatted_message,"%pred",owner)
- formatted_message = replacetext(formatted_message,"%prey",english_list(internal_contents))
- for(var/mob/living/P in internal_contents)
+ formatted_message = replacetext(formatted_message,"%prey",english_list(contents))
+ for(var/mob/living/P in contents)
if(!P.absorbed) //This is required first, in case there's a person absorbed and not absorbed in a stomach.
total_bulge += P.size_multiplier
if(total_bulge >= bulge_size && bulge_size != 0)
@@ -216,7 +229,7 @@
// The next function gets the messages set on the belly, in human-readable format.
// This is useful in customization boxes and such. The delimiter right now is \n\n so
// in message boxes, this looks nice and is easily delimited.
-/datum/belly/proc/get_messages(var/type, var/delim = "\n\n")
+/obj/belly/proc/get_messages(var/type, var/delim = "\n\n")
ASSERT(type == "smo" || type == "smi" || type == "dmo" || type == "dmp" || type == "em")
var/list/raw_messages
@@ -238,18 +251,18 @@
// The next function sets the messages on the belly, from human-readable var
// replacement strings and linebreaks as delimiters (two \n\n by default).
// They also sanitize the messages.
-/datum/belly/proc/set_messages(var/raw_text, var/type, var/delim = "\n\n")
+/obj/belly/proc/set_messages(var/raw_text, var/type, var/delim = "\n\n")
ASSERT(type == "smo" || type == "smi" || type == "dmo" || type == "dmp" || type == "em")
var/list/raw_list = text2list(html_encode(raw_text),delim)
if(raw_list.len > 10)
raw_list.Cut(11)
- log_debug("[owner] tried to set [name] with 11+ messages")
+ log_debug("[owner] tried to set [lowertext(name)] with 11+ messages")
for(var/i = 1, i <= raw_list.len, i++)
if(length(raw_list[i]) > 160 || length(raw_list[i]) < 10) //160 is fudged value due to htmlencoding increasing the size
raw_list.Cut(i,i)
- log_debug("[owner] tried to set [name] with >121 or <10 char message")
+ log_debug("[owner] tried to set [lowertext(name)] with >121 or <10 char message")
else
raw_list[i] = readd_quotes(raw_list[i])
//Also fix % sign for var replacement
@@ -275,45 +288,36 @@
// Called from the process_Life() methods of bellies that digest prey.
// Default implementation calls M.death() and removes from internal contents.
// Indigestable items are removed, and M is deleted.
-/datum/belly/proc/digestion_death(var/mob/living/M)
- is_full = 1
+/obj/belly/proc/digestion_death(var/mob/living/M)
//M.death(1) // "Stop it he's already dead..." Basically redundant and the reason behind screaming mouse carcasses.
if(M.ckey)
- message_admins("[key_name(owner)] has digested [key_name(M)] in their [name] ([owner ? "JMP" : "null"])")
- internal_contents -= M
+ message_admins("[key_name(owner)] has digested [key_name(M)] in their [lowertext(name)] ([owner ? "JMP" : "null"])")
// If digested prey is also a pred... anyone inside their bellies gets moved up.
if(is_vore_predator(M))
- for(var/bellytype in M.vore_organs)
- var/datum/belly/belly = M.vore_organs[bellytype]
- for (var/obj/thing in belly.internal_contents)
- thing.loc = owner
- internal_contents += thing
- for (var/mob/subprey in belly.internal_contents)
- subprey.loc = owner
- internal_contents += subprey
- subprey << "As [M] melts away around you, you find yourself in [owner]'s [name]"
+ for(var/belly in M.vore_organs)
+ var/obj/belly/B = belly
+ for(var/thing in B)
+ var/atom/movable/AM = thing
+ AM.forceMove(owner.loc)
+ if(isliving(AM))
+ to_chat(AM,"As [M] melts away around you, you find yourself in [owner]'s [lowertext(name)]")
//Drop all items into the belly.
if(config.items_survive_digestion)
- var/mob/living/carbon/human/H = M
- if(!H)
- H = owner
- for(var/obj/item/W in H)
+ for(var/obj/item/W in M)
if(istype(W,/obj/item/organ/internal/mmi_holder/posibrain))
var/obj/item/organ/internal/mmi_holder/MMI = W
var/atom/movable/brain = MMI.removed()
if(brain)
- H.remove_from_mob(brain,owner)
- brain.forceMove(owner)
+ M.remove_from_mob(brain,owner)
+ brain.forceMove(src)
items_preserved += brain
- internal_contents += brain
for(var/slot in slots)
var/obj/item/thingy = M.get_equipped_item(slot = slot)
if(thingy)
M.unEquip(thingy,force = TRUE)
- thingy.forceMove(owner)
- internal_contents |= thingy
+ thingy.forceMove(src)
//Reagent transfer
if(ishuman(owner))
@@ -331,10 +335,10 @@
qdel(M)
// Handle a mob being absorbed
-/datum/belly/proc/absorb_living(var/mob/living/M)
+/obj/belly/proc/absorb_living(var/mob/living/M)
M.absorbed = 1
- M << "[owner]'s [name] absorbs your body, making you part of them."
- owner << "Your [name] absorbs [M]'s body, making them part of you."
+ to_chat(M,"[owner]'s [lowertext(name)] absorbs your body, making you part of them.")
+ to_chat(owner,"Your [lowertext(name)] absorbs [M]'s body, making them part of you.")
if(ishuman(M) && ishuman(owner))
var/mob/living/carbon/human/Prey = M
@@ -348,55 +352,68 @@
// problems when A absorbs B, and then C absorbs A, resulting in B holding onto an invalid reagent container.
//This is probably already the case, but for sub-prey, it won't be.
- M.forceMove(owner)
+ if(M.loc != src)
+ M.forceMove(src)
//Seek out absorbed prey of the prey, absorb them too.
//This in particular will recurse oddly because if there is absorbed prey of prey of prey...
//it will just move them up one belly. This should never happen though since... when they were
//absobred, they should have been absorbed as well!
- for(var/I in M.vore_organs)
- var/datum/belly/B = M.vore_organs[I]
- for(var/mob/living/Mm in B.internal_contents)
+ for(var/belly in M.vore_organs)
+ var/obj/belly/B = belly
+ for(var/mob/living/Mm in B)
if(Mm.absorbed)
- internal_contents += Mm
- B.internal_contents -= Mm
absorb_living(Mm)
+ //Update owner
+ owner.updateVRPanel()
+
//Digest a single item
//Receives a return value from digest_act that's how much nutrition
//the item should be worth
-/datum/belly/proc/digest_item(var/obj/item/item)
- var/digested = item.digest_act(internal_contents, owner)
+/obj/belly/proc/digest_item(var/obj/item/item)
+ var/digested = item.digest_act(src, owner)
if(!digested)
items_preserved |= item
else
- internal_contents -= item
owner.nutrition += (5 * digested)
if(isrobot(owner))
var/mob/living/silicon/robot/R = owner
R.cell.charge += (50 * digested)
+//Determine where items should fall out of us into.
+//Typically just to the owner's location.
+/obj/belly/drop_location()
+ //Should be the case 99.99% of the time
+ if(owner)
+ return owner.loc
+ //Sketchy fallback for safety, put them somewhere safe.
+ else
+ log_debug("[src] (\ref[src]) doesn't have an owner, and dropped someone at a latespawn point!")
+ var/fallback = pick(latejoin)
+ return get_turf(fallback)
+
//Handle a mob struggling
// Called from /mob/living/carbon/relaymove()
-/datum/belly/proc/relay_resist(var/mob/living/R)
- if (!(R in internal_contents))
- return // User is not in this belly, or struggle too soon.
+/obj/belly/proc/relay_resist(var/mob/living/R)
+ if (!(R in contents))
+ return // User is not in this belly
R.setClickCooldown(50)
if(owner.stat) //If owner is stat (dead, KO) we can actually escape
- R << "You attempt to climb out of \the [name]. (This will take around [escapetime/10] seconds.)"
- owner << "Someone is attempting to climb out of your [name]!"
+ to_chat(R,"You attempt to climb out of \the [lowertext(name)]. (This will take around [escapetime/10] seconds.)")
+ to_chat(owner,"Someone is attempting to climb out of your [lowertext(name)]!")
if(do_after(R, escapetime, owner, incapacitation_flags = INCAPACITATION_DEFAULT & ~INCAPACITATION_RESTRAINED))
- if((owner.stat || escapable) && (R in internal_contents)) //Can still escape?
+ if((owner.stat || escapable) && (R.loc == src)) //Can still escape?
release_specific_contents(R)
return
- else if(!(R in internal_contents)) //Aren't even in the belly. Quietly fail.
+ else if(R.loc != src) //Aren't even in the belly. Quietly fail.
return
else //Belly became inescapable or mob revived
- R << "Your attempt to escape [name] has failed!"
- owner << "The attempt to escape from your [name] has failed!"
+ to_chat(R,"Your attempt to escape [lowertext(name)] has failed!")
+ to_chat(owner,"The attempt to escape from your [lowertext(name)] has failed!")
return
return
var/struggle_outer_message = pick(struggle_messages_outside)
@@ -415,112 +432,96 @@
for(var/mob/M in hearers(4, owner))
M.show_message(struggle_outer_message, 2) // hearable
- R << struggle_user_message
+ to_chat(R,struggle_user_message)
var/strpick = pick(struggle_sounds)
var/strsound = struggle_sounds[strpick]
- playsound(R.loc, strsound, 50, 1)
+ playsound(src, strsound, vary = 1, vol = 100, falloff = VORE_SOUND_FALLOFF, preference = /datum/client_preference/digestion_noises)
if(escapable) //If the stomach has escapable enabled.
if(prob(escapechance)) //Let's have it check to see if the prey escapes first.
- R << "You start to climb out of \the [name]."
- owner << "Someone is attempting to climb out of your [name]!"
+ to_chat(R,"You start to climb out of \the [lowertext(name)].")
+ to_chat(owner,"Someone is attempting to climb out of your [lowertext(name)]!")
if(do_after(R, escapetime))
- if((escapable) && (R in internal_contents) && !R.absorbed) //Does the owner still have escapable enabled?
+ if((escapable) && (R.loc == src) && !R.absorbed) //Does the owner still have escapable enabled?
release_specific_contents(R)
- R << "You climb out of \the [name]."
- owner << "[R] climbs out of your [name]!"
+ to_chat(R,"You climb out of \the [lowertext(name)].")
+ to_chat(owner,"[R] climbs out of your [lowertext(name)]!")
for(var/mob/M in hearers(4, owner))
- M.show_message("[R] climbs out of [owner]'s [name]!", 2)
+ M.show_message("[R] climbs out of [owner]'s [lowertext(name)]!", 2)
return
- else if(!(R in internal_contents)) //Aren't even in the belly. Quietly fail.
+ else if(!(R.loc == src)) //Aren't even in the belly. Quietly fail.
return
else //Belly became inescapable.
- R << "Your attempt to escape [name] has failed!"
- owner << "The attempt to escape from your [name] has failed!"
+ to_chat(R,"Your attempt to escape [lowertext(name)] has failed!")
+ to_chat(owner,"The attempt to escape from your [lowertext(name)] has failed!")
return
- else if(prob(transferchance) && istype(transferlocation)) //Next, let's have it see if they end up getting into an even bigger mess then when they started.
- var/location_found = 0
- var/name_found = 0
- for(var/I in owner.vore_organs)
- var/datum/belly/B = owner.vore_organs[I]
- if(B == transferlocation)
- location_found = 1
+ else if(prob(transferchance) && transferlocation) //Next, let's have it see if they end up getting into an even bigger mess then when they started.
+ var/obj/belly/dest_belly
+ for(var/belly in owner.vore_organs)
+ var/obj/belly/B = belly
+ if(B.name == transferlocation)
+ dest_belly = B
break
- if(!location_found)
- for(var/I in owner.vore_organs)
- var/datum/belly/B = owner.vore_organs[I]
- if(B.name == transferlocation.name)
- name_found = 1
- transferlocation = B
- break
-
- if(!location_found && !name_found)
- to_chat(owner, "Something went wrong with your belly transfer settings.")
+ if(!dest_belly)
+ to_chat(owner, "Something went wrong with your belly transfer settings. Your [lowertext(name)] has had it's transfer chance and transfer location cleared as a precaution.")
+ transferchance = 0
transferlocation = null
return
- R << "Your attempt to escape [name] has failed and your struggles only results in you sliding into [owner]'s [transferlocation]!"
- owner << "Someone slid into your [transferlocation] due to their struggling inside your [name]!"
- transfer_contents(R, transferlocation)
+ to_chat(R,"Your attempt to escape [lowertext(name)] has failed and your struggles only results in you sliding into [owner]'s [transferlocation]!")
+ to_chat(owner,"Someone slid into your [transferlocation] due to their struggling inside your [lowertext(name)]!")
+ transfer_contents(R, dest_belly)
return
else if(prob(absorbchance) && digest_mode != DM_ABSORB) //After that, let's have it run the absorb chance.
- R << "In response to your struggling, \the [name] begins to cling more tightly..."
- owner << "You feel your [name] start to cling onto its contents..."
+ to_chat(R,"In response to your struggling, \the [lowertext(name)] begins to cling more tightly...")
+ to_chat(owner,"You feel your [lowertext(name)] start to cling onto its contents...")
digest_mode = DM_ABSORB
return
else if(prob(digestchance) && digest_mode != DM_ITEMWEAK && digest_mode != DM_DIGEST) //Finally, let's see if it should run the digest chance.
- R << "In response to your struggling, \the [name] begins to get more active..."
- owner << "You feel your [name] beginning to become active!"
+ to_chat(R,"In response to your struggling, \the [lowertext(name)] begins to get more active...")
+ to_chat(owner,"You feel your [lowertext(name)] beginning to become active!")
digest_mode = DM_ITEMWEAK
return
else if(prob(digestchance) && digest_mode == DM_ITEMWEAK) //Oh god it gets even worse if you fail twice!
- R << "In response to your struggling, \the [name] begins to get even more active!"
- owner << "You feel your [name] beginning to become even more active!"
+ to_chat(R,"In response to your struggling, \the [lowertext(name)] begins to get even more active!")
+ to_chat(owner,"You feel your [lowertext(name)] beginning to become even more active!")
digest_mode = DM_DIGEST
return
else //Nothing interesting happened.
- R << "You make no progress in escaping [owner]'s [name]."
- owner << "Your prey appears to be unable to make any progress in escaping your [name]."
+ to_chat(R,"You make no progress in escaping [owner]'s [lowertext(name)].")
+ to_chat(owner,"Your prey appears to be unable to make any progress in escaping your [lowertext(name)].")
return
//Transfers contents from one belly to another
-/datum/belly/proc/transfer_contents(var/atom/movable/content, var/datum/belly/target, silent = 0)
- if(!(content in internal_contents))
+/obj/belly/proc/transfer_contents(var/atom/movable/content, var/obj/belly/target, silent = 0)
+ if(!(content in src) || !istype(target))
return
- internal_contents -= content
- target.internal_contents += content
- if(isliving(content))
- var/mob/living/M = content
- if(target.inside_flavor)
- to_chat(M, "[target.inside_flavor]")
- if(target.can_taste && M.get_taste_message(0))
- to_chat(owner, "[M] tastes of [M.get_taste_message(0)].")
+ content.forceMove(target)
if(!silent)
- for(var/mob/hearer in range(1,owner))
- hearer << sound(target.vore_sound,volume=80)
+ playsound(src, target.vore_sound, vol = 100, vary = 1, falloff = VORE_SOUND_FALLOFF, preference = /datum/client_preference/digestion_noises)
owner.updateVRPanel()
- for(var/mob/living/M in internal_contents)
+ for(var/mob/living/M in contents)
M.updateVRPanel()
// Belly copies and then returns the copy
// Needs to be updated for any var changes
-/datum/belly/proc/copy(mob/new_owner)
- var/datum/belly/dupe = new /datum/belly(new_owner)
+/obj/belly/proc/copy(mob/new_owner)
+ var/obj/belly/dupe = new /obj/belly(new_owner)
//// Non-object variables
dupe.name = name
- dupe.inside_flavor = inside_flavor
+ dupe.desc = desc
dupe.vore_sound = vore_sound
dupe.vore_verb = vore_verb
dupe.human_prey_swallow_time = human_prey_swallow_time
dupe.nonhuman_prey_swallow_time = nonhuman_prey_swallow_time
- dupe.emoteTime = emoteTime
+ dupe.emote_time = emote_time
dupe.digest_brute = digest_brute
dupe.digest_burn = digest_burn
dupe.digest_tickrate = digest_tickrate
diff --git a/code/modules/vore/eating/bellymodes_vr.dm b/code/modules/vore/eating/bellymodes_vr.dm
index 6d7f51e9a3..f090c80241 100644
--- a/code/modules/vore/eating/bellymodes_vr.dm
+++ b/code/modules/vore/eating/bellymodes_vr.dm
@@ -1,41 +1,48 @@
// Process the predator's effects upon the contents of its belly (i.e digestion/transformation etc)
-// Called from /mob/living/Life() proc.
-/datum/belly/proc/process_Life()
+/obj/belly/proc/process_belly(var/times_fired,var/wait) //Passed by controller
+ if((times_fired < next_process) || !contents.len)
+ recent_sound = FALSE
+ return SSBELLIES_IGNORED
+
+ if(loc != owner)
+ if(istype(owner))
+ loc = owner
+ else
+ qdel(src)
+ return SSBELLIES_PROCESSED
+
+ next_process = times_fired + (6 SECONDS/wait) //Set up our next process time.
+ var/play_sound //Potential sound to play at the end to avoid code duplication.
/////////////////////////// Auto-Emotes ///////////////////////////
- if((digest_mode in emote_lists) && !emotePend)
- emotePend = TRUE
-
- spawn(emoteTime)
- var/list/EL = emote_lists[digest_mode]
- for(var/mob/living/M in internal_contents)
- if(M.digestable || !(digest_mode == DM_DIGEST || digest_mode == DM_DIGEST_NUMB || digest_mode == DM_ITEMWEAK)) // don't give digesty messages to indigestible people
- M << "[pick(EL)]"
- src.emotePend = FALSE
+ if(contents.len && next_emote <= times_fired)
+ next_emote = times_fired + round(emote_time/wait,1)
+ var/list/EL = emote_lists[digest_mode]
+ for(var/mob/living/M in contents)
+ if(M.digestable || !(digest_mode == DM_DIGEST || digest_mode == DM_DIGEST_NUMB || digest_mode == DM_ITEMWEAK)) // don't give digesty messages to indigestible people
+ to_chat(M,"[pick(EL)]")
/////////////////////////// Exit Early ////////////////////////////
- var/list/touchable_items = internal_contents - items_preserved
+ var/list/touchable_items = contents - items_preserved
if(!length(touchable_items))
- return
+ return SSBELLIES_PROCESSED
//////////////////////// Absorbed Handling ////////////////////////
- for(var/mob/living/M in internal_contents)
+ for(var/mob/living/M in contents)
if(M.absorbed)
M.Weaken(5)
///////////////////////////// DM_HOLD /////////////////////////////
if(digest_mode == DM_HOLD)
- return //Pretty boring, huh
+ return SSBELLIES_PROCESSED //Pretty boring, huh
//////////////////////////// DM_DIGEST ////////////////////////////
else if(digest_mode == DM_DIGEST || digest_mode == DM_DIGEST_NUMB || digest_mode == DM_ITEMWEAK)
if(prob(50)) //Was SO OFTEN. AAAA.
- var/churnsound = pick(digestion_sounds)
- for(var/mob/hearer in range(1,owner))
- hearer << sound(churnsound,volume=80)
-
- for (var/mob/living/M in internal_contents)
+ play_sound = pick(digestion_sounds)
+
+ for (var/mob/living/M in contents)
//Pref protection!
if (!M.digestable || M.absorbed)
continue
@@ -55,12 +62,10 @@
digest_alert_prey = replacetext(digest_alert_prey,"%belly",lowertext(name))
//Send messages
- owner << "" + digest_alert_owner + ""
- M << "" + digest_alert_prey + ""
+ to_chat(owner,"" + digest_alert_owner + "")
+ to_chat(M,"" + digest_alert_prey + "")
- var/deathsound = pick(death_sounds)
- for(var/mob/hearer in range(1,owner))
- hearer << deathsound
+ play_sound = pick(death_sounds)
digestion_death(M)
owner.update_icons()
continue
@@ -71,19 +76,18 @@
H.bloodstr.add_reagent("numbenzyme",10)
// Deal digestion damage (and feed the pred)
- if(!(M.status_flags & GODMODE))
- M.adjustBruteLoss(digest_brute)
- M.adjustFireLoss(digest_burn)
+ M.adjustBruteLoss(digest_brute)
+ M.adjustFireLoss(digest_burn)
- var/offset = (1 + ((M.weight - 137) / 137)) // 130 pounds = .95 140 pounds = 1.02
- var/difference = owner.size_multiplier / M.size_multiplier
- if(isrobot(owner))
- var/mob/living/silicon/robot/R = owner
- R.cell.charge += 20*(digest_brute+digest_burn)
- if(offset) // If any different than default weight, multiply the % of offset.
- owner.nutrition += offset*(2*(digest_brute+digest_burn)/difference) // 9.5 nutrition per digestion tick if they're 130 pounds and it's same size. 10.2 per digestion tick if they're 140 and it's same size. Etc etc.
- else
- owner.nutrition += 2*(digest_brute+digest_burn)/difference
+ var/offset = (1 + ((M.weight - 137) / 137)) // 130 pounds = .95 140 pounds = 1.02
+ var/difference = owner.size_multiplier / M.size_multiplier
+ if(isrobot(owner))
+ var/mob/living/silicon/robot/R = owner
+ R.cell.charge += 20*(digest_brute+digest_burn)
+ if(offset) // If any different than default weight, multiply the % of offset.
+ owner.nutrition += offset*(2*(digest_brute+digest_burn)/difference) // 9.5 nutrition per digestion tick if they're 130 pounds and it's same size. 10.2 per digestion tick if they're 140 and it's same size. Etc etc.
+ else
+ owner.nutrition += 2*(digest_brute+digest_burn)/difference
M.updateVRPanel()
//Contaminate or gurgle items
@@ -93,28 +97,25 @@
if(istype(T,/obj/item/weapon/reagent_containers/food) || istype(T,/obj/item/weapon/holder) || istype(T,/obj/item/organ))
digest_item(T)
else
- T.gurgle_contaminate(internal_contents, owner)
+ T.gurgle_contaminate(contents, owner)
items_preserved |= T
else
digest_item(T)
owner.updateVRPanel()
- return
//////////////////////////// DM_STRIPDIGEST ////////////////////////////
else if(digest_mode == DM_STRIPDIGEST) // Only gurgle the gear off your prey.
if(prob(50))
- var/churnsound = pick(digestion_sounds)
- for(var/mob/hearer in range(1,owner))
- hearer << sound(churnsound,volume=80)
+ play_sound = pick(digestion_sounds)
// Handle loose items first.
var/obj/item/T = pick(touchable_items)
if(istype(T))
digest_item(T)
- for(var/mob/living/carbon/human/M in internal_contents)
+ for(var/mob/living/carbon/human/M in contents)
if (M.absorbed)
continue
for(var/slot in slots)
@@ -122,22 +123,19 @@
if(thingy)
M.unEquip(thingy,force = TRUE)
thingy.forceMove(owner)
- internal_contents |= thingy
+ contents |= thingy
digest_item(T)
M.updateVRPanel()
owner.updateVRPanel()
- return
//////////////////////////// DM_ABSORB ////////////////////////////
else if(digest_mode == DM_ABSORB)
- for (var/mob/living/M in internal_contents)
+ for (var/mob/living/M in contents)
if(prob(10)) //Less often than gurgles. People might leave this on forever.
- var/absorbsound = pick(digestion_sounds)
- M << sound(absorbsound,volume=80)
- owner << sound(absorbsound,volume=80)
+ play_sound = pick(digestion_sounds)
if(M.absorbed)
continue
@@ -149,48 +147,36 @@
else if(M.nutrition < 100) //When they're finally drained.
absorb_living(M)
- return
-
-
-
//////////////////////////// DM_UNABSORB ////////////////////////////
else if(digest_mode == DM_UNABSORB)
- for (var/mob/living/M in internal_contents)
+ for (var/mob/living/M in contents)
if(M.absorbed && owner.nutrition >= 100)
M.absorbed = 0
- M << "You suddenly feel solid again "
- owner << "You feel like a part of you is missing."
+ to_chat(M,"You suddenly feel solid again ")
+ to_chat(owner,"You feel like a part of you is missing.")
owner.nutrition -= 100
- return
-
//////////////////////////// DM_DRAIN ////////////////////////////
else if(digest_mode == DM_DRAIN)
- for (var/mob/living/M in internal_contents)
+ for (var/mob/living/M in contents)
if(prob(10)) //Less often than gurgles. People might leave this on forever.
- var/drainsound = pick(digestion_sounds)
- M << sound(drainsound,volume=80)
- owner << sound(drainsound,volume=80)
+ play_sound = pick(digestion_sounds)
if(M.nutrition >= 100) //Drain them until there's no nutrients left.
var/oldnutrition = (M.nutrition * 0.05)
M.nutrition = (M.nutrition * 0.95)
owner.nutrition += oldnutrition
- return
- return
//////////////////////////// DM_SHRINK ////////////////////////////
else if(digest_mode == DM_SHRINK)
- for (var/mob/living/M in internal_contents)
+ for (var/mob/living/M in contents)
if(prob(10)) //Infinite gurgles!
- var/shrinksound = pick(digestion_sounds)
- M << sound(shrinksound,volume=80)
- owner << sound(shrinksound,volume=80)
+ play_sound = pick(digestion_sounds)
if(M.size_multiplier > shrink_grow_size) //Shrink until smol.
M.resize(M.size_multiplier-0.01) //Shrink by 1% per tick.
@@ -198,34 +184,27 @@
var/oldnutrition = (M.nutrition * 0.05)
M.nutrition = (M.nutrition * 0.95)
owner.nutrition += oldnutrition
- return
- return
//////////////////////////// DM_GROW ////////////////////////////
else if(digest_mode == DM_GROW)
- for (var/mob/living/M in internal_contents)
+ for (var/mob/living/M in contents)
if(prob(10))
- var/growsound = pick(digestion_sounds)
- M << sound(growsound,volume=80)
- owner << sound(growsound,volume=80)
+ play_sound = pick(digestion_sounds)
if(M.size_multiplier < shrink_grow_size) //Grow until large.
M.resize(M.size_multiplier+0.01) //Grow by 1% per tick.
if(M.nutrition >= 100)
owner.nutrition = (owner.nutrition * 0.95)
- return
//////////////////////////// DM_SIZE_STEAL ////////////////////////////
else if(digest_mode == DM_SIZE_STEAL)
- for (var/mob/living/M in internal_contents)
+ for (var/mob/living/M in contents)
if(prob(10))
- var/growsound = pick(digestion_sounds)
- M << sound(growsound,volume=80)
- owner << sound(growsound,volume=80)
+ play_sound = pick(digestion_sounds)
if(M.size_multiplier > shrink_grow_size && owner.size_multiplier < 2) //Grow until either pred is large or prey is small.
owner.resize(owner.size_multiplier+0.01) //Grow by 1% per tick.
@@ -234,16 +213,13 @@
var/oldnutrition = (M.nutrition * 0.05)
M.nutrition = (M.nutrition * 0.95)
owner.nutrition += oldnutrition
- return
///////////////////////////// DM_HEAL /////////////////////////////
else if(digest_mode == DM_HEAL)
if(prob(50)) //Wet heals!
- var/healsound = pick(digestion_sounds)
- for(var/mob/hearer in range(1,owner))
- hearer << sound(healsound,volume=80)
+ play_sound = pick(digestion_sounds)
- for (var/mob/living/M in internal_contents)
+ for (var/mob/living/M in contents)
if(M.stat != DEAD)
if(owner.nutrition > 90 && (M.health < M.maxHealth))
M.adjustBruteLoss(-5)
@@ -254,11 +230,10 @@
else if(owner.nutrition > 90 && (M.nutrition <= 400))
owner.nutrition -= 1
M.nutrition += 1
- return
///////////////////////////// DM_TRANSFORM_HAIR_AND_EYES /////////////////////////////
else if(digest_mode == DM_TRANSFORM_HAIR_AND_EYES && ishuman(owner))
- for (var/mob/living/carbon/human/P in internal_contents)
+ for (var/mob/living/carbon/human/P in contents)
if(P.stat == DEAD)
continue
@@ -272,10 +247,9 @@
change_eyes(P)
change_hair(P,1)
- return
///////////////////////////// DM_TRANSFORM_MALE /////////////////////////////
else if(digest_mode == DM_TRANSFORM_MALE && ishuman(owner))
- for (var/mob/living/carbon/human/P in internal_contents)
+ for (var/mob/living/carbon/human/P in contents)
if(P.stat == DEAD)
continue
@@ -297,12 +271,9 @@
if(check_gender(P,MALE))
change_gender(P,MALE,1)
- return
-
-
///////////////////////////// DM_TRANSFORM_FEMALE /////////////////////////////
else if(digest_mode == DM_TRANSFORM_FEMALE && ishuman(owner))
- for (var/mob/living/carbon/human/P in internal_contents)
+ for (var/mob/living/carbon/human/P in contents)
if(P.stat == DEAD)
continue
@@ -324,11 +295,9 @@
if(check_gender(P,FEMALE))
change_gender(P,FEMALE,1)
- return
-
///////////////////////////// DM_TRANSFORM_KEEP_GENDER /////////////////////////////
else if(digest_mode == DM_TRANSFORM_KEEP_GENDER && ishuman(owner))
- for (var/mob/living/carbon/human/P in internal_contents)
+ for (var/mob/living/carbon/human/P in contents)
if(P.stat == DEAD)
continue
@@ -346,11 +315,9 @@
change_hair(P)
change_skin(P,1)
- return
-
///////////////////////////// DM_TRANSFORM_CHANGE_SPECIES_AND_TAUR /////////////////////////////
else if(digest_mode == DM_TRANSFORM_CHANGE_SPECIES_AND_TAUR && ishuman(owner))
- for (var/mob/living/carbon/human/P in internal_contents)
+ for (var/mob/living/carbon/human/P in contents)
if(P.stat == DEAD)
continue
@@ -366,11 +333,9 @@
change_wing_nocolor(P)
change_species(P,1)
- return
-
///////////////////////////// DM_TRANSFORM_REPLICA /////////////////////////////
else if(digest_mode == DM_TRANSFORM_REPLICA && ishuman(owner))
- for (var/mob/living/carbon/human/P in internal_contents)
+ for (var/mob/living/carbon/human/P in contents)
if(P.stat == DEAD)
continue
@@ -395,11 +360,9 @@
change_wing(P)
change_species(P,1)
- return
-
///////////////////////////// DM_TRANSFORM_CHANGE_SPECIES_AND_TAUR_EGG /////////////////////////////
else if(digest_mode == DM_TRANSFORM_CHANGE_SPECIES_AND_TAUR_EGG && ishuman(owner))
- for (var/mob/living/carbon/human/P in internal_contents)
+ for (var/mob/living/carbon/human/P in contents)
if(P.stat == DEAD)
continue
@@ -413,11 +376,9 @@
if(!P.absorbed)
put_in_egg(P,1)
- return
-
///////////////////////////// DM_TRANSFORM_KEEP_GENDER_EGG /////////////////////////////
else if(digest_mode == DM_TRANSFORM_KEEP_GENDER_EGG && ishuman(owner))
- for (var/mob/living/carbon/human/P in internal_contents)
+ for (var/mob/living/carbon/human/P in contents)
if(P.stat == DEAD)
continue
@@ -433,11 +394,9 @@
if(!P.absorbed)
put_in_egg(P,1)
- return
-
///////////////////////////// DM_TRANSFORM_REPLICA_EGG /////////////////////////////
else if(digest_mode == DM_TRANSFORM_REPLICA_EGG && ishuman(owner))
- for (var/mob/living/carbon/human/P in internal_contents)
+ for (var/mob/living/carbon/human/P in contents)
if(P.stat == DEAD)
continue
@@ -460,11 +419,9 @@
if(!P.absorbed)
put_in_egg(P,1)
- return
-
///////////////////////////// DM_TRANSFORM_MALE_EGG /////////////////////////////
else if(digest_mode == DM_TRANSFORM_MALE_EGG && ishuman(owner))
- for (var/mob/living/carbon/human/P in internal_contents)
+ for (var/mob/living/carbon/human/P in contents)
if(P.stat == DEAD)
continue
@@ -484,11 +441,9 @@
if(!P.absorbed)
put_in_egg(P,1)
- return
-
///////////////////////////// DM_TRANSFORM_FEMALE_EGG /////////////////////////////
else if(digest_mode == DM_TRANSFORM_FEMALE_EGG && ishuman(owner))
- for (var/mob/living/carbon/human/P in internal_contents)
+ for (var/mob/living/carbon/human/P in contents)
if(P.stat == DEAD)
continue
@@ -508,12 +463,14 @@
if(!P.absorbed)
put_in_egg(P,1)
- return
-
///////////////////////////// DM_EGG /////////////////////////////
else if(digest_mode == DM_EGG && ishuman(owner))
- for (var/mob/living/carbon/human/P in internal_contents)
+ for (var/mob/living/carbon/human/P in contents)
if(P.absorbed || P.stat == DEAD)
continue
put_in_egg(P,1)
+
+ if(play_sound)
+ playsound(src, play_sound, vol = 100, vary = 1, falloff = VORE_SOUND_FALLOFF, ignore_walls = FALSE, preference = /datum/client_preference/digestion_noises)
+ return SSBELLIES_PROCESSED
diff --git a/code/modules/vore/eating/contaminate_vr.dm b/code/modules/vore/eating/contaminate_vr.dm
index 38dc808b2b..1505472b1d 100644
--- a/code/modules/vore/eating/contaminate_vr.dm
+++ b/code/modules/vore/eating/contaminate_vr.dm
@@ -5,7 +5,7 @@ var/image/gurgled_overlay = image('icons/effects/sludgeoverlay_vr.dmi')
var/cleanname
var/cleandesc
-/obj/item/proc/gurgle_contaminate(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/proc/gurgle_contaminate(var/atom/movable/item_storage = null)
if(!can_gurgle())
return FALSE
@@ -18,7 +18,7 @@ var/image/gurgled_overlay = image('icons/effects/sludgeoverlay_vr.dmi')
name = "[gurgleflavor] [cleanname]"
desc = "[cleandesc] It seems to be covered in ominously foul residue and needs a wash."
for(var/obj/item/O in contents)
- gurgle_contaminate(internal_contents, item_storage)
+ gurgle_contaminate(item_storage)
return TRUE
/obj/item/proc/can_gurgle()
@@ -93,34 +93,34 @@ var/image/gurgled_overlay = image('icons/effects/sludgeoverlay_vr.dmi')
//////////////
// Special handling of gurgle_contaminate
//////////////
-/obj/item/weapon/card/id/gurgle_contaminate(var/list/internal_contents = null, var/atom/movable/item_storage = null)
- digest_act(internal_contents, item_storage) //Digesting these anyway
+/obj/item/weapon/card/id/gurgle_contaminate(var/atom/movable/item_storage = null)
+ digest_act(item_storage) //Digesting these anyway
return TRUE
-/obj/item/weapon/reagent_containers/food/gurgle_contaminate(var/list/internal_contents = null, var/atom/movable/item_storage = null)
- digest_act(internal_contents, item_storage)
+/obj/item/weapon/reagent_containers/food/gurgle_contaminate(var/atom/movable/item_storage = null)
+ digest_act(item_storage)
return TRUE
-/obj/item/weapon/holder/gurgle_contaminate(var/list/internal_contents = null, var/atom/movable/item_storage = null)
- digest_act(internal_contents, item_storage)
+/obj/item/weapon/holder/gurgle_contaminate(var/atom/movable/item_storage = null)
+ digest_act(item_storage)
return TRUE
-/obj/item/organ/gurgle_contaminate(var/list/internal_contents = null, var/atom/movable/item_storage = null)
- digest_act(internal_contents, item_storage)
+/obj/item/organ/gurgle_contaminate(var/atom/movable/item_storage = null)
+ digest_act(item_storage)
return TRUE
-/obj/item/weapon/cell/gurgle_contaminate(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/weapon/cell/gurgle_contaminate(var/atom/movable/item_storage = null)
if(!gurgled)
//Don't make them wet, just drain
var/obj/item/weapon/cell/C = src
C.charge = 0
return TRUE
-/obj/item/weapon/storage/box/gurgle_contaminate(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/weapon/storage/box/gurgle_contaminate(var/atom/movable/item_storage = null)
if((. = ..()))
name = "soggy [cleanname]"
desc = "This soggy box is about to fall apart any time."
-/obj/item/device/pda/gurgle_contaminate(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/device/pda/gurgle_contaminate(var/atom/movable/item_storage = null)
if((. = ..()))
desc = "This device seems completely unresponsive while drenched with sludge. Perhaps you could still wash it."
diff --git a/code/modules/vore/eating/digest_act_vr.dm b/code/modules/vore/eating/digest_act_vr.dm
index a789c886e7..78512bf09c 100644
--- a/code/modules/vore/eating/digest_act_vr.dm
+++ b/code/modules/vore/eating/digest_act_vr.dm
@@ -3,20 +3,15 @@
//return non-negative integer: Amount of nutrition/charge gained (scaled to nutrition, other end can multiply for charge scale).
// Ye default implementation.
-/obj/item/proc/digest_act(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/proc/digest_act(var/atom/movable/item_storage = null)
for(var/obj/item/O in contents)
if(istype(O,/obj/item/weapon/storage/internal)) //Dump contents from dummy pockets.
for(var/obj/item/SO in O)
- if(internal_contents)
- internal_contents |= SO
if(item_storage)
SO.forceMove(item_storage)
qdel(O)
- else
- if(internal_contents)
- internal_contents |= O
- if(item_storage)
- O.forceMove(item_storage)
+ else if(item_storage)
+ O.forceMove(item_storage)
qdel(src)
return w_class
@@ -24,82 +19,75 @@
/////////////
// Some indigestible stuff
/////////////
-/obj/item/weapon/hand_tele/digest_act(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/weapon/hand_tele/digest_act(...)
return FALSE
-/obj/item/weapon/card/id/gold/captain/spare/digest_act(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/weapon/card/id/gold/captain/spare/digest_act(...)
return FALSE
-/obj/item/device/aicard/digest_act(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/device/aicard/digest_act(...)
return FALSE
-/obj/item/device/paicard/digest_act(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/device/paicard/digest_act(...)
return FALSE
-/obj/item/weapon/gun/digest_act(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/weapon/gun/digest_act(...)
return FALSE
-/obj/item/weapon/pinpointer/digest_act(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/weapon/pinpointer/digest_act(...)
return FALSE
-/obj/item/blueprints/digest_act(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/blueprints/digest_act(...)
return FALSE
-/obj/item/weapon/disk/nuclear/digest_act(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/weapon/disk/nuclear/digest_act(...)
return FALSE
-/obj/item/device/perfect_tele_beacon/digest_act(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/device/perfect_tele_beacon/digest_act(...)
return FALSE //Sorta important to not digest your own beacons.
/////////////
// Some special treatment
/////////////
//PDAs need to lose their ID to not take it with them, so we can get a digested ID
-/obj/item/device/pda/digest_act(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/device/pda/digest_act(var/atom/movable/item_storage = null)
if(id)
id = null
- /* Doesn't appear to be necessary anymore.
- if(item_storage)
- id.forceMove(item_storage)
- if(internal_contents)
- internal_contents |= id
- */
-
. = ..()
-/obj/item/weapon/card/id/digest_act(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/weapon/card/id/digest_act(var/atom/movable/item_storage = null)
desc = "A partially digested card that has seen better days. Much of it's data has been destroyed."
icon = 'icons/obj/card_vr.dmi'
icon_state = "digested"
access = list() // No access
return FALSE
-/obj/item/weapon/reagent_containers/food/digest_act(var/list/internal_contents = null, var/atom/movable/item_storage = null)
- if(ishuman(item_storage))
- var/mob/living/carbon/human/H = item_storage
- reagents.trans_to_holder(H.ingested, (reagents.total_volume * 0.3), 1, 0)
-
- else if(isrobot(item_storage))
- var/mob/living/silicon/robot/R = item_storage
- R.cell.charge += 150
+/obj/item/weapon/reagent_containers/food/digest_act(var/atom/movable/item_storage = null)
+ if(isbelly(item_storage))
+ var/obj/belly/B = item_storage
+ if(ishuman(B.owner))
+ var/mob/living/carbon/human/H = B.owner
+ reagents.trans_to_holder(H.ingested, (reagents.total_volume * 0.3), 1, 0)
+ else if(isrobot(B.owner))
+ var/mob/living/silicon/robot/R = B.owner
+ R.cell.charge += 150
. = ..()
-/obj/item/weapon/holder/digest_act(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/weapon/holder/digest_act(var/atom/movable/item_storage = null)
for(var/mob/living/M in contents)
- if(internal_contents)
- internal_contents |= M
if(item_storage)
M.forceMove(item_storage)
held_mob = null
. = ..()
-/obj/item/organ/digest_act(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/organ/digest_act(var/atom/movable/item_storage = null)
if((. = ..()))
. += 70 //Organs give a little more
-/obj/item/weapon/storage/digest_act(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/weapon/storage/digest_act(var/atom/movable/item_storage = null)
for(var/obj/item/I in contents)
I.screen_loc = null
- .=..()
+
+ . = ..()
/////////////
// Some more complicated stuff
/////////////
-/obj/item/device/mmi/digital/posibrain/digest_act(var/list/internal_contents = null, var/atom/movable/item_storage = null)
+/obj/item/device/mmi/digital/posibrain/digest_act(var/atom/movable/item_storage = null)
//Replace this with a VORE setting so all types of posibrains can/can't be digested on a whim
return FALSE
diff --git a/code/modules/vore/eating/living_vr.dm b/code/modules/vore/eating/living_vr.dm
index ed9fe0ae16..4bdb4eec0a 100644
--- a/code/modules/vore/eating/living_vr.dm
+++ b/code/modules/vore/eating/living_vr.dm
@@ -2,7 +2,7 @@
/mob/living
var/digestable = 1 // Can the mob be digested inside a belly?
var/allowmobvore = 1 // Will simplemobs attempt to eat the mob?
- var/vore_selected // Default to no vore capability.
+ var/obj/belly/vore_selected // Default to no vore capability.
var/list/vore_organs = list() // List of vore containers inside a mob
var/absorbed = 0 // If a mob is absorbed into another
var/weight = 137 // Weight for mobs for weightgain system
@@ -28,13 +28,10 @@
/hook/living_new/proc/vore_setup(mob/living/M)
M.verbs += /mob/living/proc/escapeOOC
M.verbs += /mob/living/proc/lick
- if(M.no_vore) //If the mob isn's supposed to have a stomach, let's not give it an insidepanel so it can make one for itself, or a stomach.
- M << "The creature that you are can not eat others."
+ if(M.no_vore) //If the mob isn't supposed to have a stomach, let's not give it an insidepanel so it can make one for itself, or a stomach.
return 1
M.verbs += /mob/living/proc/insidePanel
- //M.appearance_flags |= PIXEL_SCALE // Moved to 02_size.dm
-
//Tries to load prefs if a client is present otherwise gives freebie stomach
if(!M.vore_organs || !M.vore_organs.len)
spawn(20) //Wait a couple of seconds to make sure copy_to or whatever has gone
@@ -42,7 +39,7 @@
if(M.client && M.client.prefs_vr)
if(!M.copy_from_prefs_vr())
- M << "ERROR: You seem to have saved VOREStation prefs, but they couldn't be loaded."
+ to_chat(M,"ERROR: You seem to have saved VOREStation prefs, but they couldn't be loaded.")
return 0
if(M.vore_organs && M.vore_organs.len)
M.vore_selected = M.vore_organs[1]
@@ -50,35 +47,25 @@
if(!M.vore_organs || !M.vore_organs.len)
if(!M.vore_organs)
M.vore_organs = list()
- var/datum/belly/B = new /datum/belly(M)
+ var/obj/belly/B = new /obj/belly(M)
+ M.vore_selected = B
B.immutable = 1
B.name = "Stomach"
- B.inside_flavor = "It appears to be rather warm and wet. Makes sense, considering it's inside \the [M.name]."
+ B.desc = "It appears to be rather warm and wet. Makes sense, considering it's inside \the [M.name]."
B.can_taste = 1
- M.vore_organs[B.name] = B
- M.vore_selected = B.name
-
- //Simple_animal gets emotes. move this to that hook instead?
- if(istype(src,/mob/living/simple_animal))
- B.emote_lists[DM_HOLD] = list(
- "The insides knead at you gently for a moment.",
- "The guts glorp wetly around you as some air shifts.",
- "Your predator takes a deep breath and sighs, shifting you somewhat.",
- "The stomach squeezes you tight for a moment, then relaxes.",
- "During a moment of quiet, breathing becomes the most audible thing.",
- "The warm slickness surrounds and kneads on you.")
-
- B.emote_lists[DM_DIGEST] = list(
- "The caustic acids eat away at your form.",
- "The acrid air burns at your lungs.",
- "Without a thought for you, the stomach grinds inwards painfully.",
- "The guts treat you like food, squeezing to press more acids against you.",
- "The onslaught against your body doesn't seem to be letting up; you're food now.",
- "The insides work on you like they would any other food.")
-
+
//Return 1 to hook-caller
return 1
+//
+// Hide vore organs in contents
+//
+/mob/living/view_variables_filter_contents(list/L)
+ . = ..()
+ var/len_before = L.len
+ L -= vore_organs
+ . += len_before - L.len
+
//
// Handle being clicked, perhaps with something to devour
//
@@ -139,15 +126,13 @@
else if(istype(I,/obj/item/device/radio/beacon))
var/confirm = alert(user, "[src == user ? "Eat the beacon?" : "Feed the beacon to [src]?"]", "Confirmation", "Yes!", "Cancel")
if(confirm == "Yes!")
- var/bellychoice = input("Which belly?","Select A Belly") in src.vore_organs
- var/datum/belly/B = src.vore_organs[bellychoice]
- src.visible_message("[user] is trying to stuff a beacon into [src]'s [bellychoice]!","[user] is trying to stuff a beacon into you!")
+ var/obj/belly/B = input("Which belly?","Select A Belly") as null|anything in vore_organs
+ if(!istype(B))
+ return 1
+ visible_message("[user] is trying to stuff a beacon into [src]'s [lowertext(B.name)]!","[user] is trying to stuff a beacon into you!")
if(do_after(user,30,src))
user.drop_item()
- I.loc = src
- B.internal_contents |= I
- src.visible_message("[src] is fed the beacon!","You're fed the beacon!")
- playsound(src, B.vore_sound, 100, 1)
+ I.forceMove(B)
return 1
else
return 1 //You don't get to hit someone 'later'
@@ -160,48 +145,15 @@
/mob/living/proc/vore_process_resist()
//Are we resisting from inside a belly?
- var/datum/belly/B = check_belly(src)
- if(B)
- spawn() B.relay_resist(src)
+ if(isbelly(loc))
+ var/obj/belly/B = loc
+ B.relay_resist(src)
return TRUE //resist() on living does this TRUE thing.
-
+
//Other overridden resists go here
-
return 0
-
-//
-// Proc for updating vore organs and digestion/healing/absorbing
-//
-/mob/living/proc/handle_internal_contents()
- if(air_master.current_cycle%3 != 1)
- return //The accursed timer
-
- for (var/I in vore_organs)
- var/datum/belly/B = vore_organs[I]
- if(B.internal_contents.len)
- B.process_Life() //AKA 'do bellymodes_vr.dm'
-
- if(noisy > 0 && nutrition < 100 && prob(10))
- var/growlsound = pick(hunger_sounds)
- if(nutrition < 50)
- for(var/mob/hearer in range(1,src))
- hearer << sound(growlsound,volume=80)
- else
- for(var/mob/hearer in range(1,src))
- hearer << sound(growlsound,volume=35)
-
- if(air_master.current_cycle%90 != 1) return //Occasionally do supercleanups.
- for (var/I in vore_organs)
- var/datum/belly/B = vore_organs[I]
- if(B.internal_contents.len)
- listclearnulls(B.internal_contents)
- for(var/atom/movable/M in B.internal_contents)
- if(M.loc != src)
- B.internal_contents -= M
- log_debug("Had to remove [M] from belly [B] in [src]")
-
//
// Verb for saving vore preferences to save file
//
@@ -227,7 +179,7 @@
/mob/living/proc/copy_to_prefs_vr()
if(!client || !client.prefs_vr)
- src << "You attempted to save your vore prefs but somehow you're in this character without a client.prefs_vr variable. Tell a dev."
+ to_chat(src,"You attempted to save your vore prefs but somehow you're in this character without a client.prefs_vr variable. Tell a dev.")
return 0
var/datum/vore_preferences/P = client.prefs_vr
@@ -248,26 +200,81 @@
//
/mob/living/proc/copy_from_prefs_vr()
if(!client || !client.prefs_vr)
- src << "You attempted to apply your vore prefs but somehow you're in this character without a client.prefs_vr variable. Tell a dev."
+ to_chat(src,"You attempted to apply your vore prefs but somehow you're in this character without a client.prefs_vr variable. Tell a dev.")
return 0
var/datum/vore_preferences/P = client.prefs_vr
- src.digestable = P.digestable
- src.allowmobvore = P.allowmobvore
- src.vore_organs = list()
- src.vore_taste = P.vore_taste
- src.nif_examine = P.nif_examine
- src.conceal_nif = P.conceal_nif
- src.can_be_drop_prey = P.can_be_drop_prey
- src.can_be_drop_pred = P.can_be_drop_pred
+ vore_organs = list()
+ digestable = P.digestable
+ allowmobvore = P.allowmobvore
+ vore_taste = P.vore_taste
+ nif_examine = P.nif_examine
+ conceal_nif = P.conceal_nif
+ can_be_drop_prey = P.can_be_drop_prey
+ can_be_drop_pred = P.can_be_drop_pred
+ var/force_save = FALSE
for(var/I in P.belly_prefs)
- var/datum/belly/Bp = P.belly_prefs[I]
- src.vore_organs[Bp.name] = Bp.copy(src)
+ if(isbelly(I)) //Belly system 2.0
+ var/obj/belly/saved = I
+ saved.copy(src)
+ else if(istext(I)) //Belly name for old datum system
+ force_save = TRUE
+ log_debug("[src] had legacy belly [I], converting.")
+ var/datum/belly/Bp = P.belly_prefs[I]
+ var/obj/belly/new_belly = new(src)
+ Bp.copy(new_belly) //Rewritten to convert to a 2.0 belly
+
+ if(force_save)
+ save_vore_prefs()
return 1
+//
+// Release everything in every vore organ
+//
+/mob/living/proc/release_vore_contents(var/include_absorbed = TRUE)
+ for(var/belly in vore_organs)
+ var/obj/belly/B = belly
+ B.release_all_contents(include_absorbed)
+
+//
+// Returns examine messages for bellies
+//
+/mob/living/proc/examine_bellies()
+ if(!show_pudge()) //Some clothing or equipment can hide this.
+ return ""
+
+ var/message = ""
+ for (var/belly in vore_organs)
+ var/obj/belly/B = belly
+ message += B.get_examine_msg()
+
+ return message
+
+//
+// Whether or not people can see our belly messages
+//
+/mob/living/proc/show_pudge()
+ return TRUE //Can override if you want.
+
+/mob/living/carbon/human/show_pudge()
+ //A uniform could hide it.
+ if(istype(w_uniform,/obj/item/clothing))
+ var/obj/item/clothing/under = w_uniform
+ if(under.hides_bulges)
+ return FALSE
+
+ //We return as soon as we find one, no need for 'else' really.
+ if(istype(wear_suit,/obj/item/clothing))
+ var/obj/item/clothing/suit = wear_suit
+ if(suit.hides_bulges)
+ return FALSE
+
+
+ return ..()
+
//
// Clearly super important. Obviously.
//
@@ -315,48 +322,35 @@
set name = "OOC Escape"
set category = "OOC"
- //You're in an animal!
- if(istype(src.loc,/mob/living/simple_animal))
- var/mob/living/simple_animal/pred = src.loc
- var/confirm = alert(src, "You're in a mob. Don't use this as a trick to get out of hostile animals. This is for escaping from preference-breaking and if you're otherwise unable to escape from endo. If you are in more than one pred, use this more than once.", "Confirmation", "Okay", "Cancel")
- if(confirm == "Okay")
- for(var/I in pred.vore_organs)
- var/datum/belly/B = pred.vore_organs[I]
- B.release_specific_contents(src)
-
- for(var/mob/living/simple_animal/SA in range(10))
- SA.prey_excludes += src
- spawn(18000)
- if(src && SA)
- SA.prey_excludes -= src
-
- message_admins("[key_name(src)] used the OOC escape button to get out of [key_name(pred)] (MOB) ([pred ? "JMP" : "null"])")
- pred.update_icons()
-
- //You're in a PC!
- else if(istype(src.loc,/mob/living))
- var/mob/living/carbon/pred = src.loc
- var/confirm = alert(src, "You're in a player-character. This is for escaping from preference-breaking or if your predator disconnects/AFKs. If you are in more than one pred. If your preferences were being broken, please admin-help as well.", "Confirmation", "Okay", "Cancel")
- if(confirm == "Okay")
- for(var/O in pred.vore_organs)
- var/datum/belly/CB = pred.vore_organs[O]
- CB.internal_contents -= src //Clean them if we can, otherwise it will get GC'd by the vore code later.
- src.forceMove(get_turf(loc))
- message_admins("[key_name(src)] used the OOC escape button to get out of [key_name(pred)] (PC) ([pred ? "JMP" : "null"])")
+ //You're in a belly!
+ if(isbelly(loc))
+ var/obj/belly/B = loc
+ var/confirm = alert(src, "You're in a mob. Don't use this as a trick to get out of hostile animals. This is for escaping from preference-breaking and if you're otherwise unable to escape from endo (pred AFK for a long time).", "Confirmation", "Okay", "Cancel")
+ if(!confirm == "Okay" || loc != B)
+ return
+ //Actual escaping
+ forceMove(get_turf(src)) //Just move me up to the turf, let's not cascade through bellies, there's been a problem, let's just leave.
+ for(var/mob/living/simple_animal/SA in range(10))
+ SA.prey_excludes[src] = world.time
+ log_and_message_admins("[key_name(src)] used the OOC escape button to get out of [key_name(B.owner)] ([B.owner ? "JMP" : "null"])")
+
+ if(isanimal(B.owner))
+ var/mob/living/simple_animal/SA = B.owner
+ SA.update_icons()
//You're in a dogborg!
- else if(istype(src.loc, /obj/item/device/dogborg/sleeper))
- var/mob/living/silicon/pred = src.loc.loc //Thing holding the belly!
- var/obj/item/device/dogborg/sleeper/belly = src.loc //The belly!
+ else if(istype(loc, /obj/item/device/dogborg/sleeper))
+ var/mob/living/silicon/pred = loc.loc //Thing holding the belly!
+ var/obj/item/device/dogborg/sleeper/belly = loc //The belly!
var/confirm = alert(src, "You're in a dogborg sleeper. This is for escaping from preference-breaking or if your predator disconnects/AFKs. If your preferences were being broken, please admin-help as well.", "Confirmation", "Okay", "Cancel")
- if(confirm == "Okay")
- message_admins("[key_name(src)] used the OOC escape button to get out of [key_name(pred)] (BORG) ([pred ? "JMP" : "null"])")
- belly.go_out(src) //Just force-ejects from the borg as if they'd clicked the eject button.
-
-
+ if(!confirm == "Okay" || loc != belly)
+ return
+ //Actual escaping
+ log_and_message_admins("[key_name(src)] used the OOC escape button to get out of [key_name(pred)] (BORG) ([pred ? "JMP" : "null"])")
+ belly.go_out(src) //Just force-ejects from the borg as if they'd clicked the eject button.
else
- src << "You aren't inside anyone, you clod."
+ to_chat(src,"You aren't inside anyone, though, is the thing.")
//
// Eating procs depending on who clicked what
@@ -384,14 +378,13 @@
//
// Master vore proc that actually does vore procedures
//
-/mob/living/proc/perform_the_nom(var/mob/living/user, var/mob/living/prey, var/mob/living/pred, var/belly)
+/mob/living/proc/perform_the_nom(var/mob/living/user, var/mob/living/prey, var/mob/living/pred, var/obj/belly/belly, var/delay)
//Sanity
- if(!user || !prey || !pred || !belly || !(belly in pred.vore_organs))
- log_debug("[user] attempted to feed [prey] to [pred], via [belly] but it went wrong.")
+ if(!user || !prey || !pred || !istype(belly) || !(belly in pred.vore_organs))
+ log_debug("[user] attempted to feed [prey] to [pred], via [lowertext(belly.name)] but it went wrong.")
return
// The belly selected at the time of noms
- var/datum/belly/belly_target = pred.vore_organs[belly]
var/attempt_msg = "ERROR: Vore message couldn't be created. Notify a dev. (at)"
var/success_msg = "ERROR: Vore message couldn't be created. Notify a dev. (sc)"
@@ -404,17 +397,17 @@
// Prepare messages
if(user == pred) //Feeding someone to yourself
- attempt_msg = text("[] is attemping to [] [] into their []!",pred,lowertext(belly_target.vore_verb),prey,lowertext(belly_target.name))
- success_msg = text("[] manages to [] [] into their []!",pred,lowertext(belly_target.vore_verb),prey,lowertext(belly_target.name))
+ attempt_msg = text("[] is attemping to [] [] into their []!",pred,lowertext(belly.vore_verb),prey,lowertext(belly.name))
+ success_msg = text("[] manages to [] [] into their []!",pred,lowertext(belly.vore_verb),prey,lowertext(belly.name))
else //Feeding someone to another person
- attempt_msg = text("[] is attempting to make [] [] [] into their []!",user,pred,lowertext(belly_target.vore_verb),prey,lowertext(belly_target.name))
- success_msg = text("[] manages to make [] [] [] into their []!",user,pred,lowertext(belly_target.vore_verb),prey,lowertext(belly_target.name))
+ attempt_msg = text("[] is attempting to make [] [] [] into their []!",user,pred,lowertext(belly.vore_verb),prey,lowertext(belly.name))
+ success_msg = text("[] manages to make [] [] [] into their []!",user,pred,lowertext(belly.vore_verb),prey,lowertext(belly.name))
// Announce that we start the attempt!
user.visible_message(attempt_msg)
// Now give the prey time to escape... return if they did
- var/swallow_time = istype(prey, /mob/living/carbon/human) ? belly_target.human_prey_swallow_time : belly_target.nonhuman_prey_swallow_time
+ var/swallow_time = delay || istype(prey, /mob/living/carbon/human) ? belly.human_prey_swallow_time : belly.nonhuman_prey_swallow_time
//Timer and progress bar
if(!do_after(user, swallow_time, prey))
@@ -422,16 +415,14 @@
// If we got this far, nom successful! Announce it!
user.visible_message(success_msg)
- if(belly_target.vore_sound)
- playsound(user, belly_target.vore_sound, 100, 1)
// Actually shove prey into the belly.
- belly_target.nom_mob(prey, user)
+ belly.nom_mob(prey, user)
user.update_icons()
// Flavor handling
- if(belly_target.can_taste && prey.get_taste_message(0))
- to_chat(belly_target.owner, "[prey] tastes of [prey.get_taste_message(0)].")
+ if(belly.can_taste && prey.get_taste_message(FALSE))
+ to_chat(belly.owner, "[prey] tastes of [prey.get_taste_message(FALSE)].")
// Inform Admins
if (pred == user)
@@ -444,10 +435,10 @@
// Magical pred-air breathing for inside preds
// overrides a proc defined on atom called by breathe.dm
//
-/mob/living/return_air()
+/obj/belly/return_air()
return return_air_for_internal_lifeform()
-/mob/living/return_air_for_internal_lifeform()
+/obj/belly/return_air_for_internal_lifeform()
//Free air until someone wants to code processing it for reals from predbreaths
var/datum/gas_mixture/belly_air/air = new(1000)
return air
@@ -464,108 +455,54 @@
"oxygen" = 21,
"nitrogen" = 79)
+// Procs for micros stuffed into boots and the like to escape from them
/mob/living/proc/escape_clothes(obj/item/clothing/C)
- ASSERT(src.loc == C)
+ ASSERT(loc == C)
if(ishuman(C.loc)) //In a /mob/living/carbon/human
var/mob/living/carbon/human/H = C.loc
if(H.shoes == C) //Being worn
- src << " You start to climb around the larger creature's feet and ankles!"
- H << "Something is trying to climb out of your [C]!"
+ to_chat(src," You start to climb around the larger creature's feet and ankles!")
+ to_chat(H,"Something is trying to climb out of your [C]!")
var/original_loc = H.loc
for(var/escape_time = 100,escape_time > 0,escape_time--)
if(H.loc != original_loc)
- src << "You're pinned back underfoot!"
- H << "You pin the escapee back underfoot!"
+ to_chat(src,"You're pinned back underfoot!")
+ to_chat(H,"You pin the escapee back underfoot!")
return
if(src.loc != C)
return
sleep(1)
- src << "You manage to escape \the [C]!"
- H << "Somone has climbed out of your [C]!"
- src.loc = H.loc
- var/datum/belly/B = check_belly(H)
- if(B)
- B.internal_contents |= src
- return
+ to_chat(src,"You manage to escape \the [C]!")
+ to_chat(H,"Somone has climbed out of your [C]!")
+ forceMove(H.loc)
+
else //Being held by a human
- src << "You start to climb out of \the [C]!"
- H << "Something is trying to climb out of your [C]!"
+ to_chat(src,"You start to climb out of \the [C]!")
+ to_chat(H,"Something is trying to climb out of your [C]!")
for(var/escape_time = 60,escape_time > 0,escape_time--)
if(H.shoes == C)
- src << "You're pinned underfoot!"
- H << "You pin the escapee underfoot!"
+ to_chat(src,"You're pinned underfoot!")
+ to_chat(H,"You pin the escapee underfoot!")
return
if(src.loc != C)
return
sleep(1)
- src << "You manage to escape \the [C]!"
- H << "Somone has climbed out of your [C]!"
- src.loc = H.loc
- var/datum/belly/B = check_belly(H)
- if(B)
- B.internal_contents |= src
- return
+ to_chat(src,"You manage to escape \the [C]!")
+ to_chat(H,"Somone has climbed out of your [C]!")
+ forceMove(H.loc)
- src << "You start to climb out of \the [C]!"
+ to_chat(src,"You start to climb out of \the [C]!")
sleep(50)
- if(src.loc == C)
- src << "You climb out of \the [C]!"
- src.loc = C.loc
- var/datum/belly/B
- if(check_belly(C)) B = check_belly(C)
- if(check_belly(C.loc)) B = check_belly(C.loc)
- if(B)
- B.internal_contents |= src
- return
+ if(loc == C)
+ to_chat(src,"You climb out of \the [C]!")
+ forceMove(C.loc)
return
/mob/living/proc/feed_grabbed_to_self_falling_nom(var/mob/living/user, var/mob/living/prey)
var/belly = user.vore_selected
- return perform_the_falling_nom(user, prey, user, belly)
-
-/mob/living/proc/perform_the_falling_nom(var/mob/living/user, var/mob/living/prey, var/mob/living/pred, var/belly) //For dropnoms and slime feeding. This is so a nom can be performed instantly.
- //Sanity
- belly = pred.vore_selected
- if(!user || !prey || !pred || !belly || !(belly in pred.vore_organs))
- log_debug("[user] attempted to feed [prey] to [pred], via [belly] but it went wrong.")
- return
-
- // The belly selected at the time of noms
- var/datum/belly/belly_target = pred.vore_organs[belly]
- var/success_msg = "ERROR: Vore message couldn't be created. Notify a dev. (sc)"
-
- //Final distance check. Time has passed, menus have come and gone. Can't use do_after adjacent because doesn't behave for held micros
- var/user_to_pred = get_dist(get_turf(user),get_turf(pred))
- var/user_to_prey = get_dist(get_turf(user),get_turf(prey))
-
- if(user_to_pred > 1 || user_to_prey > 1)
- return 0
-
- // Prepare messages
- if(user == pred) //Feeding someone to yourself
- success_msg = text("[] manages to [] [] into their []!",pred,lowertext(belly_target.vore_verb),prey,lowertext(belly_target.name))
- else //Feeding someone to another person. This shouldn't happen.
- success_msg = text("[] manages to make [] [] [] into their []!",user,pred,lowertext(belly_target.vore_verb),prey,lowertext(belly_target.name))
-
- user.visible_message(success_msg)
- if(belly_target.vore_sound)
- playsound(user, belly_target.vore_sound, 100, 1)
-
- // Actually shove prey into the belly.
- belly_target.nom_mob(prey, user)
- user.update_icons()
-
- // Flavor handling
- if(belly_target.can_taste && prey.get_taste_message(0))
- to_chat(belly_target.owner, "[prey] tastes of [prey.get_taste_message(0)].")
-
- // Inform Admins
- if (pred == user)
- msg_admin_attack("[key_name(pred)] ate [key_name(prey)] via dropnom/slime feeding!. ([pred ? "JMP" : "null"])")
- else
- msg_admin_attack("[key_name(user)] forced [key_name(pred)] to eat [key_name(prey)] via dropnoms/slime feeding!! ([pred ? "JMP" : "null"])")
+ return perform_the_nom(user, prey, user, belly, delay = 1) //1/10th of a second is probably fine.
/mob/living/proc/glow_toggle()
set name = "Glow (Toggle)"
@@ -594,18 +531,20 @@
set category = "Abilities"
set desc = "Consume held garbage."
+ if(!vore_selected)
+ to_chat(src,"You either don't have a belly selected, or don't have a belly!")
+ return
+
var/obj/item/I = get_active_hand()
if(!I)
to_chat(src, "You are not holding anything.")
return
+
if(is_type_in_list(I,edible_trash))
drop_item()
- var/belly = vore_selected
- var/datum/belly/selected = vore_organs[belly]
- playsound(src.loc, selected.vore_sound, 20, 1)
- I.forceMove(src)
- selected.internal_contents |= I
+ I.forceMove(vore_selected)
updateVRPanel()
+
if(istype(I,/obj/item/device/flashlight/flare) || istype(I,/obj/item/weapon/flame/match) || istype(I,/obj/item/weapon/storage/box/matches))
to_chat(src, "You can taste the flavor of spicy cardboard.")
else if(istype(I,/obj/item/device/flashlight/glowstick))
diff --git a/code/modules/vore/eating/simple_animal_vr.dm b/code/modules/vore/eating/simple_animal_vr.dm
index 8ffc08ad37..e8fd6390ed 100644
--- a/code/modules/vore/eating/simple_animal_vr.dm
+++ b/code/modules/vore/eating/simple_animal_vr.dm
@@ -34,20 +34,19 @@
var/mob/living/carbon/human/user = usr
if(!istype(user) || user.stat) return
- var/datum/belly/B = vore_organs[vore_selected]
if(retaliate || (hostile && faction != user.faction))
user << "This predator isn't friendly, and doesn't give a shit about your opinions of it digesting you."
return
- if(B.digest_mode == "Hold")
+ if(vore_selected.digest_mode == DM_HOLD)
var/confirm = alert(user, "Enabling digestion on [name] will cause it to digest all stomach contents. Using this to break OOC prefs is against the rules. Digestion will reset after 20 minutes.", "Enabling [name]'s Digestion", "Enable", "Cancel")
if(confirm == "Enable")
- B.digest_mode = "Digest"
+ vore_selected.digest_mode = DM_DIGEST
spawn(12000) //12000=20 minutes
- if(src) B.digest_mode = vore_default_mode
+ if(src) vore_selected.digest_mode = vore_default_mode
else
var/confirm = alert(user, "This mob is currently set to process all stomach contents. Do you want to disable this?", "Disabling [name]'s Digestion", "Disable", "Cancel")
if(confirm == "Disable")
- B.digest_mode = "Hold"
+ vore_selected.digest_mode = DM_HOLD
/mob/living/simple_animal/attackby(var/obj/item/O, var/mob/user)
if (istype(O, /obj/item/weapon/newspaper) && !(ckey || (hostile && faction != user.faction)) && isturf(user.loc))
@@ -65,9 +64,7 @@
LoseTarget() // only make one attempt at an attack rather than going into full rage mode
else
user.visible_message("\the [user] swats \the [src] with \the [O]!!")
- for(var/I in vore_organs)
- var/datum/belly/B = vore_organs[I]
- B.release_all_contents(include_absorbed = TRUE) // Until we can get a mob version of unsorbitol or whatever, release absorbed too
+ release_vore_contents()
for(var/mob/living/L in living_mobs(0)) //add everyone on the tile to the do-not-eat list for a while
if(!(L in prey_excludes)) // Unless they're already on it, just to avoid fuckery.
prey_excludes += L
diff --git a/code/modules/vore/eating/transforming_vr.dm b/code/modules/vore/eating/transforming_vr.dm
index b6016b1127..b978bf8963 100644
--- a/code/modules/vore/eating/transforming_vr.dm
+++ b/code/modules/vore/eating/transforming_vr.dm
@@ -1,10 +1,10 @@
-/datum/belly/proc/check_eyes(var/mob/living/carbon/human/M)
+/obj/belly/proc/check_eyes(var/mob/living/carbon/human/M)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return 0
return (M.r_eyes != O.r_eyes || M.g_eyes != O.g_eyes || M.b_eyes != O.b_eyes)
-/datum/belly/proc/change_eyes(var/mob/living/carbon/human/M, message=0)
+/obj/belly/proc/change_eyes(var/mob/living/carbon/human/M, message=0)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return
@@ -18,7 +18,7 @@
to_chat(M, "You feel lightheaded and drowsy...")
to_chat(O, "You feel warm as you make subtle changes to your captive's body.")
-/datum/belly/proc/check_hair(var/mob/living/carbon/human/M)
+/obj/belly/proc/check_hair(var/mob/living/carbon/human/M)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return 0
@@ -31,7 +31,7 @@
return 1
return 0
-/datum/belly/proc/change_hair(var/mob/living/carbon/human/M, message=0)
+/obj/belly/proc/change_hair(var/mob/living/carbon/human/M, message=0)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return
@@ -49,14 +49,14 @@
to_chat(M, "Your body tingles all over...")
to_chat(O, "You tingle as you make noticeable changes to your captive's body.")
-/datum/belly/proc/check_skin(var/mob/living/carbon/human/M)
+/obj/belly/proc/check_skin(var/mob/living/carbon/human/M)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return 0
return (M.r_skin != O.r_skin || M.g_skin != O.g_skin || M.b_skin != O.b_skin)
-/datum/belly/proc/change_skin(var/mob/living/carbon/human/M, message=0)
+/obj/belly/proc/change_skin(var/mob/living/carbon/human/M, message=0)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return
@@ -71,7 +71,7 @@
to_chat(M, "Your body tingles all over...")
to_chat(O, "You tingle as you make noticeable changes to your captive's body.")
-/datum/belly/proc/check_gender(var/mob/living/carbon/human/M, target_gender)
+/obj/belly/proc/check_gender(var/mob/living/carbon/human/M, target_gender)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return 0
@@ -81,7 +81,7 @@
return (M.gender != target_gender || M.identifying_gender != target_gender)
-/datum/belly/proc/change_gender(var/mob/living/carbon/human/M, target_gender, message=0)
+/obj/belly/proc/change_gender(var/mob/living/carbon/human/M, target_gender, message=0)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return
@@ -100,7 +100,7 @@
to_chat(M, "Your body feels very strange...")
to_chat(O, "You feel strange as you alter your captive's gender.")
-/datum/belly/proc/check_tail(var/mob/living/carbon/human/M)
+/obj/belly/proc/check_tail(var/mob/living/carbon/human/M)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return 0
@@ -111,7 +111,7 @@
return 1
return 0
-/datum/belly/proc/change_tail(var/mob/living/carbon/human/M, message=0)
+/obj/belly/proc/change_tail(var/mob/living/carbon/human/M, message=0)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return
@@ -125,14 +125,14 @@
to_chat(M, "Your body tingles all over...")
to_chat(O, "You tingle as you make noticeable changes to your captive's body.")
-/datum/belly/proc/check_tail_nocolor(var/mob/living/carbon/human/M)
+/obj/belly/proc/check_tail_nocolor(var/mob/living/carbon/human/M)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return 0
return (M.tail_style != O.tail_style)
-/datum/belly/proc/change_tail_nocolor(var/mob/living/carbon/human/M, message=0)
+/obj/belly/proc/change_tail_nocolor(var/mob/living/carbon/human/M, message=0)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return
@@ -143,7 +143,7 @@
to_chat(M, "Your body tingles all over...")
to_chat(O, "You tingle as you make noticeable changes to your captive's body.")
-/datum/belly/proc/check_wing(var/mob/living/carbon/human/M)
+/obj/belly/proc/check_wing(var/mob/living/carbon/human/M)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return 0
@@ -154,7 +154,7 @@
return 1
return 0
-/datum/belly/proc/change_wing(var/mob/living/carbon/human/M, message=0)
+/obj/belly/proc/change_wing(var/mob/living/carbon/human/M, message=0)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return
@@ -168,14 +168,14 @@
to_chat(M, "Your body tingles all over...")
to_chat(O, "You tingle as you make noticeable changes to your captive's body.")
-/datum/belly/proc/check_wing_nocolor(var/mob/living/carbon/human/M)
+/obj/belly/proc/check_wing_nocolor(var/mob/living/carbon/human/M)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return 0
return (M.wing_style != O.wing_style)
-/datum/belly/proc/change_wing_nocolor(var/mob/living/carbon/human/M, message=0)
+/obj/belly/proc/change_wing_nocolor(var/mob/living/carbon/human/M, message=0)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return
@@ -186,14 +186,14 @@
to_chat(M, "Your body tingles all over...")
to_chat(O, "You tingle as you make noticeable changes to your captive's body.")
-/datum/belly/proc/check_ears(var/mob/living/carbon/human/M)
+/obj/belly/proc/check_ears(var/mob/living/carbon/human/M)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return 0
return (M.ear_style != O.ear_style)
-/datum/belly/proc/change_ears(var/mob/living/carbon/human/M, message=0)
+/obj/belly/proc/change_ears(var/mob/living/carbon/human/M, message=0)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return
@@ -201,7 +201,7 @@
M.ear_style = O.ear_style
M.update_hair()
-/datum/belly/proc/check_species(var/mob/living/carbon/human/M)
+/obj/belly/proc/check_species(var/mob/living/carbon/human/M)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return 0
@@ -210,7 +210,7 @@
return 1
return 0
-/datum/belly/proc/change_species(var/mob/living/carbon/human/M, message=0)
+/obj/belly/proc/change_species(var/mob/living/carbon/human/M, message=0)
var/mob/living/carbon/human/O = owner
if(!istype(M) || !istype(O))
return
@@ -247,7 +247,7 @@
M.verbs += /mob/living/proc/set_size
M.shapeshifter_select_shape()
-/datum/belly/proc/put_in_egg(var/atom/movable/M, message=0)
+/obj/belly/proc/put_in_egg(var/atom/movable/M, message=0)
var/mob/living/carbon/human/O = owner
var/egg_path = /obj/structure/closet/secure_closet/egg
var/egg_name = "odd egg"
@@ -256,11 +256,9 @@
egg_path = tf_egg_types[O.egg_type]
egg_name = "[O.egg_type] egg"
- var/obj/structure/closet/secure_closet/egg/egg = new egg_path(owner)
+ var/obj/structure/closet/secure_closet/egg/egg = new egg_path(src)
M.forceMove(egg)
egg.name = egg_name
- internal_contents -= M
- internal_contents |= egg
if(message)
to_chat(M, "You lose sensation of your body, feeling only the warmth around you as you're encased in an egg.")
to_chat(O, "Your body shifts as you encase [M] in an egg.")
\ No newline at end of file
diff --git a/code/modules/vore/eating/vore_vr.dm b/code/modules/vore/eating/vore_vr.dm
index 4988faa81e..a04d920084 100644
--- a/code/modules/vore/eating/vore_vr.dm
+++ b/code/modules/vore/eating/vore_vr.dm
@@ -74,16 +74,10 @@ V::::::V V::::::VO:::::::OOO:::::::ORR:::::R R:::::REE::::::EEEEEE
//
// Belly searching for simplifying other procs
+// Mostly redundant now with belly-objects and isbelly(loc)
//
/proc/check_belly(atom/movable/A)
- if(istype(A.loc,/mob/living))
- var/mob/living/M = A.loc
- for(var/I in M.vore_organs)
- var/datum/belly/B = M.vore_organs[I]
- if(A in B.internal_contents)
- return(B)
-
- return 0
+ return isbelly(A.loc)
//
// Save/Load Vore Preferences
diff --git a/code/modules/vore/eating/vorepanel_vr.dm b/code/modules/vore/eating/vorepanel_vr.dm
index 7f4d9ae26c..f0f564f87f 100644
--- a/code/modules/vore/eating/vorepanel_vr.dm
+++ b/code/modules/vore/eating/vorepanel_vr.dm
@@ -14,7 +14,7 @@
var/datum/vore_look/picker_holder = new()
picker_holder.loop = picker_holder
- picker_holder.selected = vore_organs[vore_selected]
+ picker_holder.selected = vore_selected
var/dat = picker_holder.gen_ui(src)
@@ -27,7 +27,7 @@
if(src.openpanel == 1)
var/datum/vore_look/picker_holder = new()
picker_holder.loop = picker_holder
- picker_holder.selected = vore_organs[vore_selected]
+ picker_holder.selected = vore_selected
var/dat = picker_holder.gen_ui(src)
@@ -39,7 +39,7 @@
// Callback Handler for the Inside form
//
/datum/vore_look
- var/datum/belly/selected
+ var/obj/belly/selected
var/show_interacts = 0
var/datum/browser/popup
var/loop = null; // Magic self-reference to stop the handler from being GC'd before user takes action.
@@ -56,24 +56,22 @@
/datum/vore_look/proc/gen_ui(var/mob/living/user)
var/dat
-
- if (is_vore_predator(user.loc))
- var/mob/living/eater = user.loc
- var/datum/belly/inside_belly
-
- //This big block here figures out where the prey is
- inside_belly = check_belly(user)
+
+ var/atom/userloc = user.loc
+ if (isbelly(userloc))
+ var/obj/belly/inside_belly = userloc
+ var/mob/living/eater = inside_belly.owner
//Don't display this part if we couldn't find the belly since could be held in hand.
if(inside_belly)
dat += "You are currently [user.absorbed ? "absorbed into " : "inside "] [eater]'s [inside_belly]!
"
- if(inside_belly.inside_flavor)
- dat += "[inside_belly.inside_flavor]
"
+ if(inside_belly.desc)
+ dat += "[inside_belly.desc]
"
- if (inside_belly.internal_contents.len > 1)
+ if (inside_belly.contents.len > 1)
dat += "You can see the following around you:
"
- for (var/atom/movable/O in inside_belly.internal_contents)
+ for (var/atom/movable/O in inside_belly)
if(istype(O,/mob/living))
var/mob/living/M = O
//That's just you
@@ -99,8 +97,8 @@
dat += "