forgot this

This commit is contained in:
Spades
2017-07-07 23:39:59 -04:00
parent 3f29379a37
commit e19bcef832
3 changed files with 40 additions and 34 deletions
+9 -5
View File
@@ -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