mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 12:08:28 +01:00
Wilderness atmos fix (#1826)
* Atmos and mob faction fix Should reduce lag substantially and stop planetary phoron fires. * Active Edges * fuck you Travis you unhelpful shit * Testing probable problem area. * Is THIS it?! * Long shot, but let's try it. * Just to kick Travis again * oops
This commit is contained in:
@@ -179,9 +179,15 @@
|
||||
icon_state = "x"
|
||||
spawn_nothing_percentage = 10
|
||||
|
||||
/obj/random/outside_mob/item_to_spawn()
|
||||
return pick(prob(20);/mob/living/simple_animal/hostile/scarybat,
|
||||
/obj/random/outside_mob/item_to_spawn() // Special version for mobs to have the same faction.
|
||||
var/mob = pick(prob(20);/mob/living/simple_animal/hostile/scarybat,
|
||||
prob(10);/mob/living/simple_animal/hostile/dino,
|
||||
prob(5);/mob/living/simple_animal/otie/feral,
|
||||
prob(5);/mob/living/simple_animal/hostile/bear,
|
||||
prob(1);/mob/living/simple_animal/hostile/dragon)
|
||||
prob(1);/mob/living/simple_animal/hostile/dragon)
|
||||
if (istype(mob, /mob/living)) // This is just to prevent runtime errors in case some dev is a dumbass and puts invalid items into this.
|
||||
var/mob/living/simple_animal/this_mob = mob
|
||||
this_mob.faction = "wild animal"
|
||||
return this_mob
|
||||
else
|
||||
return mob
|
||||
Reference in New Issue
Block a user