mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 20:17:15 +01:00
space cleanup (#17300)
* space cleanup * this * this too --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
a7314a8766
commit
c8aff28c5b
@@ -165,15 +165,15 @@
|
||||
B.digest_mode = DM_SELECT
|
||||
|
||||
/mob/living/simple_mob/vore/pakkun/attackby(var/obj/item/O, var/mob/user) //if they're newspapered, they'll spit out any junk they've eaten for whatever reason
|
||||
if(istype(O, /obj/item/newspaper) && !ckey && isturf(user.loc))
|
||||
user.visible_message(span_info("[user] swats [src] with [O]!"))
|
||||
release_vore_contents()
|
||||
for(var/mob/living/L in living_mobs(0))
|
||||
if(!(LAZYFIND(prey_excludes, L)))
|
||||
LAZYSET(prey_excludes, L, world.time)
|
||||
addtimer(CALLBACK(src, PROC_REF(removeMobFromPreyExcludes), WEAKREF(L)), 5 MINUTES)
|
||||
else
|
||||
..()
|
||||
if(istype(O, /obj/item/newspaper) && !ckey && isturf(user.loc))
|
||||
user.visible_message(span_info("[user] swats [src] with [O]!"))
|
||||
release_vore_contents()
|
||||
for(var/mob/living/L in living_mobs(0))
|
||||
if(!(LAZYFIND(prey_excludes, L)))
|
||||
LAZYSET(prey_excludes, L, world.time)
|
||||
addtimer(CALLBACK(src, PROC_REF(removeMobFromPreyExcludes), WEAKREF(L)), 5 MINUTES)
|
||||
else
|
||||
..()
|
||||
|
||||
//a palette-swapped version that's a bit bossier, in JRPG tradition
|
||||
|
||||
|
||||
@@ -117,13 +117,13 @@
|
||||
consider_wg()
|
||||
|
||||
/mob/living/simple_mob/vore/raptor/proc/consider_wg()
|
||||
var/past_state = wg_state
|
||||
if(nutrition >= 900)
|
||||
wg_state = 1
|
||||
else
|
||||
wg_state = 0
|
||||
if(past_state != wg_state)
|
||||
update_icon()
|
||||
var/past_state = wg_state
|
||||
if(nutrition >= 900)
|
||||
wg_state = 1
|
||||
else
|
||||
wg_state = 0
|
||||
if(past_state != wg_state)
|
||||
update_icon()
|
||||
|
||||
/mob/living/simple_mob/vore/raptor/update_icon()
|
||||
if(wg_state == 1)
|
||||
|
||||
Reference in New Issue
Block a user