mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 03:27:46 +01:00
forgot this
This commit is contained in:
@@ -178,16 +178,20 @@
|
||||
icon = 'icons/mob/screen1.dmi'
|
||||
icon_state = "x"
|
||||
spawn_nothing_percentage = 10
|
||||
var/faction = "wild animal"
|
||||
|
||||
/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,
|
||||
var/mob = pick(prob(10);/mob/living/simple_animal/hostile/scarybat,
|
||||
prob(10);/mob/living/simple_animal/retaliate/gaslamp,
|
||||
prob(10);/mob/living/simple_animal/otie/feral,
|
||||
prob(5);/mob/living/simple_animal/hostile/dino,
|
||||
prob(1);/mob/living/simple_animal/hostile/bear,
|
||||
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"
|
||||
this_mob.faction = faction
|
||||
if (this_mob.minbodytemp > 200) // Temporary hotfix. Eventually I'll add code to change all mob vars to fit the environment they are spawned in.
|
||||
this_mob.minbodytemp = 200
|
||||
return this_mob
|
||||
else
|
||||
return mob
|
||||
Reference in New Issue
Block a user