Reverts an accident.

The fix for absorption was supposed to stay in my desktop github until i was done
This commit is contained in:
Cameron653
2016-12-02 15:42:48 -05:00
committed by GitHub
parent d6f3caa2ac
commit c4d085559f

View File

@@ -131,8 +131,8 @@
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(istype(M,/mob/living/carbon/human)) //To prevent giving mobs a reagent list, which caused runtimes
var/mob/living/carbon/human/ML = M
if(istype(M,/mob/living))
var/mob/living/ML = M
if(ML.absorbed)
ML.absorbed = 0
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)
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)
if(B)
B.internal_contents += M
@@ -324,9 +315,9 @@
owner << "<span class='notice'>Your [name] absorbs [M]'s body, making them part of you.</span>"
//Reagent sharing for absorbed with pred
if(istype(M,/mob/living/carbon/human))
var/datum/reagents/OR = owner.reagents
var/datum/reagents/PR = M.reagents
PR.trans_to(owner,PR.total_volume)
M.reagents = OR
del(PR)