Anti-Pref Break

This commit is contained in:
Shadow Quill
2020-09-12 19:16:35 -05:00
parent f260261325
commit 680fb39881
4 changed files with 5 additions and 5 deletions

View File

@@ -95,7 +95,7 @@
var/list/potentials = living_mobs(0) var/list/potentials = living_mobs(0)
if(potentials.len) if(potentials.len)
var/mob/living/target = pick(potentials) var/mob/living/target = pick(potentials)
if(istype(target) && vore_selected) if(target.devourable && target.can_be_drop_prey && istype(target) && vore_selected)
target.forceMove(vore_selected) target.forceMove(vore_selected)
to_chat(target,"<span class='warning'>\The [src] phases in around you, [vore_selected.vore_verb]ing you into their [vore_selected.name]!</span>") to_chat(target,"<span class='warning'>\The [src] phases in around you, [vore_selected.vore_verb]ing you into their [vore_selected.name]!</span>")

View File

@@ -257,7 +257,7 @@
var/list/potentials = living_mobs(0) var/list/potentials = living_mobs(0)
if(potentials.len) if(potentials.len)
var/mob/living/target = pick(potentials) var/mob/living/target = pick(potentials)
if(istype(target) && vore_selected) if(target.devourable && target.can_be_drop_prey && istype(target) && vore_selected)
if(target.buckled) if(target.buckled)
target.buckled.unbuckle_mob(target, force = TRUE) target.buckled.unbuckle_mob(target, force = TRUE)
target.forceMove(vore_selected) target.forceMove(vore_selected)

View File

@@ -56,7 +56,7 @@
var/list/potentials = living_mobs(0) var/list/potentials = living_mobs(0)
if(potentials.len) if(potentials.len)
var/mob/living/target = pick(potentials) var/mob/living/target = pick(potentials)
if(istype(target) && vore_selected) if(target.devourable && target.can_be_drop_prey && istype(target) && vore_selected)
target.forceMove(vore_selected) target.forceMove(vore_selected)
to_chat(target,"<span class='warning'>\The [src] phases in around you, [vore_selected.vore_verb]ing you into their [vore_selected.name]!</span>") to_chat(target,"<span class='warning'>\The [src] phases in around you, [vore_selected.vore_verb]ing you into their [vore_selected.name]!</span>")
@@ -203,7 +203,7 @@
var/list/potentials = living_mobs(0) var/list/potentials = living_mobs(0)
if(potentials.len) if(potentials.len)
var/mob/living/target = pick(potentials) var/mob/living/target = pick(potentials)
if(istype(target) && vore_selected) if(target.devourable && target.can_be_drop_prey && istype(target) && vore_selected)
target.forceMove(vore_selected) target.forceMove(vore_selected)
to_chat(target,"<span class='warning'>\The [src] phases in around you, [vore_selected.vore_verb]ing you into their [vore_selected.name]!</span>") to_chat(target,"<span class='warning'>\The [src] phases in around you, [vore_selected.vore_verb]ing you into their [vore_selected.name]!</span>")

View File

@@ -44,7 +44,7 @@
var/list/potentials = living_mobs(0) var/list/potentials = living_mobs(0)
if(potentials.len) if(potentials.len)
var/mob/living/target = pick(potentials) var/mob/living/target = pick(potentials)
if(istype(target) && vore_selected) if(target.devourable && target.can_be_drop_prey && istype(target) && vore_selected)
target.forceMove(vore_selected) target.forceMove(vore_selected)
to_chat(target,"<span class='warning'>\The [src] phases in around you, [vore_selected.vore_verb]ing you into their [vore_selected.name]!</span>") to_chat(target,"<span class='warning'>\The [src] phases in around you, [vore_selected.vore_verb]ing you into their [vore_selected.name]!</span>")