More PoIs

This commit is contained in:
Heroman
2019-04-30 05:39:42 +10:00
parent 66dfa403f5
commit 1b87b38c4a
19 changed files with 459 additions and 448 deletions

View File

@@ -606,7 +606,7 @@ var/list/mining_overlay_cache = list()
new /obj/item/stack/material/uranium(src, rand(5,25))
/turf/simulated/mineral/proc/make_ore(var/rare_ore)
if(mineral || ignore_mapgen) //VOREStation Edit - Makes sense, doesn't it?
if(mineral || ignore_mapgen || ignore_oregen) //VOREStation Edit - Makes sense, doesn't it?
return
var/mineral_name

View File

View File

@@ -1,41 +1,77 @@
/obj/structure/closet/crate/mimic
name = "old crate"
desc = "A rectangular steel crate. This one looks particularly unstable."
var/mimic_chance = 30
var/mimic_active = TRUE
/obj/structure/closet/crate/mimic/open()
if(src.opened)
return 0
if(!src.can_open())
return 0
if(mimic_active)
mimic_active = FALSE
if(prob(mimic_chance))
var/mob/living/simple_mob/vore/aggressive/mimic/new_mimic = new(loc, src)
visible_message("<font color='red'><b>The [new_mimic] suddenly growls as it turns out to be a mimic!</b></font>")
forceMove(new_mimic)
new_mimic.real_crate = src
new_mimic.name = name
new_mimic.desc = desc
new_mimic.icon = icon
new_mimic.icon_state = icon_opened
new_mimic.icon_living = icon_opened
else
return ..()
else
return ..()
/obj/structure/closet/crate/mimic/ex_act(severity)
for(var/obj/O in src.contents)
qdel(O)
qdel(src)
return
/obj/structure/closet/crate/mimic/damage(var/damage)
if(contents.len)
visible_message("<font color='red'><b>The [src] makes out a crunchy noise as its contents are destroyed!</b></font>")
for(var/obj/O in src.contents)
qdel(O)
..()
/obj/structure/closet/crate/mimic/safe
mimic_chance = 0
mimic_active = FALSE
/obj/structure/closet/crate/mimic/guaranteed
mimic_chance = 100
/obj/structure/closet/crate/mimic/dangerous
mimic_chance = 70
/obj/structure/closet/crate/mimic/cointoss
mimic_chance = 50
/mob/living/simple_mob/vore/aggressive/mimic
name = "crate"
desc = "A rectangular steel crate."
icon_state = "crate"
icon_living = "crate"
icon = 'icons/obj/storage.dmi'
faction = "mimic"
maxHealth = 250
health = 250
movement_cooldown = 5
maxHealth = 125
health = 125
movement_cooldown = 7
response_help = "touches"
response_disarm = "pushes"
response_harm = "hits"
harm_intent_damage = 5
melee_damage_lower = 4
melee_damage_upper = 6
melee_damage_lower = 7
melee_damage_upper = 15
attacktext = list("attacked")
attack_sound = 'sound/weapons/bite.ogg'
@@ -49,24 +85,17 @@
max_n2 = 0
minbodytemp = 0
say_list_type = /datum/say_list/mimic
ai_holder_type = /datum/ai_holder/mimic
var/obj/structure/closet/crate/real_crate
var/knockdown_chance = 15 //Stubbing your toe on furniture hurts.
var/knockdown_chance = 10 //Stubbing your toe on furniture hurts.
showvoreprefs = 0 //Hides mechanical vore prefs for mimics. You can't see their gaping maws when they're just sitting idle.
/datum/say_list/mimic
say_got_target = list("Grrowl!")
/datum/ai_holder/mimic
wander = FALSE
hostile = TRUE
threaten = TRUE
threaten_timeout = 5 SECONDS
threaten_delay = 1 SECONDS //not a threat, more of a delay.
/mob/living/simple_mob/vore/aggressive/mimic/apply_melee_effects(var/atom/A)
if(isliving(A))
@@ -80,6 +109,9 @@
/mob/living/simple_mob/vore/aggressive/mimic/death()
..()
real_crate.forceMove(loc)
if(real_crate)
real_crate.forceMove(loc)
else
new/obj/structure/closet/crate(loc)
real_crate = null
qdel(src)

View File

@@ -47,7 +47,7 @@
if(!current_cell)
return 0
var/turf/simulated/mineral/T = locate((origin_x-1)+x,(origin_y-1)+y,origin_z)
if(istype(T) && !T.ignore_mapgen)
if(istype(T) && !T.ignore_mapgen && !T.ignore_cavegen) //VOREStation Edit: ignore cavegen
if(map[current_cell] == FLOOR_CHAR)
T.make_floor() //VOREStation Edit - Don't make cracked sand on surface map, jerk.
//if(prob(90))