Files
vgstation13/code/modules/maps/nests.dm
2019-11-01 13:05:33 -05:00

90 lines
2.1 KiB
Plaintext

//**************************************************************
// Nests
//**************************************************************
/obj/abstract/map/nest
icon = 'icons/obj/map/nests.dmi'
var/mob_type = /mob/living/simple_animal/hostile/humanoid/russian
var/breed_time = 3000
var/breed_chance = 75
var/pop = 10
var/pop_min = 2
var/pop_max = 30
/obj/abstract/map/nest/perform_spawn()
for(var/i = 1, i <= pop, i++)
new mob_type(loc)
spawn()
ticker()
/obj/abstract/map/nest/proc/ticker()
while(src)
for(var/mob/M in get_area(src))
if(istype(M, mob_type))
pop++
else
pop-- //It's harder with an audience, you understand bb
if(pop in pop_min to pop_max) //When enough simple animals...
if(prob(breed_chance)) //Love each other very much...
new mob_type(loc) //Babby formed!!
sleep(breed_time)
// Subtypes ////////////////////////////////////////////////////
/obj/abstract/map/nest/lizard
name = "lizard breeding ground"
icon_state = "lizard"
mob_type = /mob/living/simple_animal/hostile/lizard
/obj/abstract/map/nest/mouse
name = "mouse breeding ground"
icon_state = "mouse"
mob_type = /mob/living/simple_animal/mouse/common
breed_time = 1200
/obj/abstract/map/nest/mouse/limited
name = "limited mouse breeding ground"
pop = 4
pop_max = 4
/obj/abstract/map/nest/spider
name = "spider breeding ground"
icon_state = "spider"
mob_type = /mob/living/simple_animal/hostile/giant_spider
pop_max = 10
/obj/abstract/map/nest/spider/limited
name = "spider breeding ground"
pop = 2
pop_max = 2
/obj/abstract/map/nest/carp
name = "carp breeding ground"
icon_state = "carp"
mob_type = /mob/living/simple_animal/hostile/carp
pop_max = 10
/obj/abstract/map/nest/carp/limited
name = "limited carp breeding ground"
pop = 2
pop_max = 2
/obj/abstract/map/nest/bear
name = "bear breeding ground"
icon_state = "bear"
mob_type = /mob/living/simple_animal/hostile/bear
breed_time = 9000
pop = 5
pop_max = 5
/obj/abstract/map/nest/necrozombie
name = "necro zombie breeding ground" //Yep
icon_state = "bear"
mob_type = /mob/living/simple_animal/hostile/necro/zombie
breed_time = 9000
pop = 6
pop_max = 6