extra functionality :3
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/obj/item/reagent_containers/food/snacks/proc/handle_tf(mob/living/eater)
|
||||
var/datum/component/transformation_item/transformation_component = GetComponent(/datum/component/transformation_item)
|
||||
if(!istype(transformation_component) || transformation_component.transfer_to_vore || (transformation_component.transformed_mob != src))
|
||||
return FALSE
|
||||
|
||||
var/mob/living/food_mob = transformation_component.transformed_mob
|
||||
if(!istype(food_mob) || !(food_mob?.vore_flags & DEVOURABLE) || (eater?.vore_flags & NO_VORE) || !istype(eater.vore_selected))
|
||||
return FALSE
|
||||
|
||||
qdel(transformation_component)
|
||||
var/obj/belly/vore_belly = eater.vore_selected
|
||||
if(!vore_belly.nom_mob(food_mob,eater))
|
||||
return FALSE
|
||||
|
||||
return TRUE
|
||||
|
||||
@@ -19,6 +19,8 @@
|
||||
var/stuck_on_item = FALSE
|
||||
/// Is the person able to struggle out?
|
||||
var/able_to_struggle_out = TRUE
|
||||
/// Transfer to vore belly when eaten
|
||||
var/transfer_to_vore = TRUE
|
||||
|
||||
/datum/component/transformation_item/Initialize()
|
||||
RegisterSignal(parent, COMSIG_PARENT_EXAMINE, PROC_REF(examine))
|
||||
|
||||
@@ -89,6 +89,7 @@ All foods are distributed among various categories. Use common sense.
|
||||
if(!reagents.total_volume)
|
||||
var/mob/living/location = loc
|
||||
var/obj/item/trash_item = generate_trash(location)
|
||||
handle_tf()//GS13 EDIT
|
||||
qdel(src)
|
||||
if(istype(location))
|
||||
location.put_in_hands(trash_item)
|
||||
|
||||
@@ -3972,6 +3972,7 @@
|
||||
#include "GainStation13\code\mechanics\web_weaving.dm"
|
||||
#include "GainStation13\code\mechanics\den abductors\console.dm"
|
||||
#include "GainStation13\code\mechanics\den abductors\purchaseble_goodies.dm"
|
||||
#include "GainStation13\code\mechanics\transformation\food.dm"
|
||||
#include "GainStation13\code\mechanics\transformation\mob_procs.dm"
|
||||
#include "GainStation13\code\mechanics\transformation\transformation_component.dm"
|
||||
#include "GainStation13\code\mechanics\transformation\transformation_item.dm"
|
||||
|
||||
Reference in New Issue
Block a user