mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
VS: Rewrites basically all of how bellies work
And cleans up a ton of stuff.
This commit is contained in:
@@ -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
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user