mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-16 13:13:03 +00:00
Reverts an accident.
The fix for absorption was supposed to stay in my desktop github until i was done
This commit is contained in:
@@ -131,8 +131,8 @@
|
|||||||
M.forceMove(owner.loc) // Move the belly contents into the same location as belly's owner.
|
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
|
src.internal_contents -= M // Remove from the belly contents
|
||||||
|
|
||||||
if(istype(M,/mob/living/carbon/human)) //To prevent giving mobs a reagent list, which caused runtimes
|
if(istype(M,/mob/living))
|
||||||
var/mob/living/carbon/human/ML = M
|
var/mob/living/ML = M
|
||||||
if(ML.absorbed)
|
if(ML.absorbed)
|
||||||
ML.absorbed = 0
|
ML.absorbed = 0
|
||||||
ML.reagents = new/datum/reagents(1000,M) //Human reagent datums hold 1000
|
ML.reagents = new/datum/reagents(1000,M) //Human reagent datums hold 1000
|
||||||
@@ -144,15 +144,6 @@
|
|||||||
|
|
||||||
OR.trans_to(ML,OR.total_volume / absorbed_count)
|
OR.trans_to(ML,OR.total_volume / absorbed_count)
|
||||||
|
|
||||||
else if(istype(M,/mob/living)) //If they're not human but are a mob
|
|
||||||
var/mob/living/MO = M
|
|
||||||
if(MO.absorbed)
|
|
||||||
MO.absorbed = 0
|
|
||||||
var/absorbed_count = 2
|
|
||||||
for(var/mob/living/P in internal_contents)
|
|
||||||
if(P.absorbed)
|
|
||||||
absorbed_count++
|
|
||||||
|
|
||||||
var/datum/belly/B = check_belly(owner)
|
var/datum/belly/B = check_belly(owner)
|
||||||
if(B)
|
if(B)
|
||||||
B.internal_contents += M
|
B.internal_contents += M
|
||||||
@@ -324,12 +315,12 @@
|
|||||||
owner << "<span class='notice'>Your [name] absorbs [M]'s body, making them part of you.</span>"
|
owner << "<span class='notice'>Your [name] absorbs [M]'s body, making them part of you.</span>"
|
||||||
|
|
||||||
//Reagent sharing for absorbed with pred
|
//Reagent sharing for absorbed with pred
|
||||||
if(istype(M,/mob/living/carbon/human))
|
var/datum/reagents/OR = owner.reagents
|
||||||
var/datum/reagents/OR = owner.reagents
|
var/datum/reagents/PR = M.reagents
|
||||||
var/datum/reagents/PR = M.reagents
|
|
||||||
PR.trans_to(owner,PR.total_volume)
|
PR.trans_to(owner,PR.total_volume)
|
||||||
M.reagents = OR
|
M.reagents = OR
|
||||||
del(PR)
|
del(PR)
|
||||||
|
|
||||||
//This is probably already the case, but for sub-prey, it won't be.
|
//This is probably already the case, but for sub-prey, it won't be.
|
||||||
M.forceMove(owner)
|
M.forceMove(owner)
|
||||||
|
|||||||
Reference in New Issue
Block a user