mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-26 01:53:02 +00:00
26 lines
1.0 KiB
Plaintext
26 lines
1.0 KiB
Plaintext
//CHOMP code for transfer specifically into vore bellies
|
|
|
|
/datum/reagents/proc/vore_trans_to_mob(var/mob/target, var/amount = 1, var/type = CHEM_VORE, var/multiplier = 1, var/copy = 0, var/obj/belly/target_belly = null) // Transfer after checking into which holder...
|
|
if(!target || !istype(target))
|
|
return
|
|
|
|
if(iscarbon(target))
|
|
var/mob/living/carbon/C = target
|
|
if(type == CHEM_VORE)
|
|
var/datum/reagents/R = target_belly.reagents
|
|
return trans_to_holder(R, amount, multiplier, copy)
|
|
if(type == CHEM_INGEST)
|
|
var/datum/reagents/R = C.ingested
|
|
return C.ingest(src, R, amount, multiplier, copy)
|
|
|
|
else //Retaining this code as a backup
|
|
var/datum/reagents/R = new /datum/reagents(amount)
|
|
. = trans_to_holder(R, amount, multiplier, copy)
|
|
R.touch_mob(target)
|
|
|
|
/datum/reagents/proc/vore_trans_to_con(var/obj/item/weapon/reagent_containers/T, var/amount = 1, var/multiplier = 1, var/copy = 0) // Transfer after checking into which holder...
|
|
if(!T || !istype(T))
|
|
return
|
|
|
|
return trans_to_holder(T.reagents, amount, multiplier, copy)
|