Added 5 new types of random events

This commit is contained in:
ZomgPonies
2013-11-05 08:08:01 -05:00
parent 56d3b09577
commit c5ebe7acaa
17 changed files with 829 additions and 250 deletions
@@ -0,0 +1,149 @@
// This is important
/mob/living/attack_ghost(mob/dead/observer/user)
if(prob(80)) return ..()
var/found = 0
for(var/mob/living/simple_animal/hostile/retaliate/R in range(4,src))
if(R.faction != "undead" || R == src || prob(50)) continue
found = 1
R.enemies ^= src
if(src in R.enemies)
R.visible_message("[R]'s head swivels eerily towards [src].")
else
R.visible_message("[R] stares at [src] for a minute before turning away.")
if(R.target == src)
R.target = null
if(!found)
return ..()
/mob/living/simple_animal/hostile/retaliate/ghost
icon = 'icons/mob/mob.dmi'
name = "ghost"
icon_state = "ghost2"
icon_living = "ghost2"
icon_dead = "ghost"
density = 0 // ghost
invisibility = 60 // no seriously ghost
speak_chance = 0 // fyi, ghost
response_help = "passes through" // by the way ghost
response_disarm = "shoves"
response_harm = "hits"
turns_per_move = 10
speed = -1
maxHealth = 20
health = 20
harm_intent_damage = 10
melee_damage_lower = 2
melee_damage_upper = 3
attacktext = "grips"
attack_sound = 'sound/hallucinations/growl1.ogg'
min_oxy = 0
max_oxy = 0
min_tox = 0
max_tox = 0
min_co2 = 0
max_co2 = 0
min_n2 = 0
max_n2 = 0
minbodytemp = 0
faction = "undead" // did I mention ghost
/mob/living/simple_animal/hostile/retaliate/ghost/Process_Spacemove(var/check_drift = 0)
return 1
/mob/living/simple_animal/hostile/retaliate/ghost/FindTarget()
. = ..()
if(.)
emote("wails at [.]")
/mob/living/simple_animal/hostile/retaliate/ghost/Life()
if(target)
invisibility = pick(0,0,60,invisibility)
else
invisibility = pick(0,60,60,invisibility)
..()
/mob/living/simple_animal/hostile/retaliate/ghost/Die()
new /obj/item/weapon/ectoplasm(loc)
del src
return
/mob/living/simple_animal/hostile/retaliate/skeleton
name = "skeleton"
icon = 'icons/mob/human.dmi'
icon_state = "skeleton_s"
icon_living = "skeleton_s"
icon_dead = "skeleton_l"
speak_chance = 0
turns_per_move = 10
response_help = "shakes hands with"
response_disarm = "shoves"
response_harm = "hits"
speed = -1
maxHealth = 20
health = 20
harm_intent_damage = 10
melee_damage_lower = 5
melee_damage_upper = 10
attacktext = "claws"
attack_sound = 'sound/hallucinations/growl1.ogg'
min_oxy = 0
max_oxy = 0
min_tox = 0
max_tox = 0
min_co2 = 0
max_co2 = 0
min_n2 = 0
max_n2 = 0
minbodytemp = 0
faction = "undead"
/mob/living/simple_animal/hostile/retaliate/skeleton/Die()
new /obj/effect/decal/remains/human(loc)
del src
return
/mob/living/simple_animal/hostile/retaliate/zombie
name = "zombie"
icon = 'icons/mob/human.dmi'
icon_state = "zombie_s"
icon_living = "zombie_s"
icon_dead = "zombie_l"
speak_chance = 0
turns_per_move = 10
response_help = "gently prods"
response_disarm = "shoves"
response_harm = "hits"
speed = -1
maxHealth = 20
health = 20
harm_intent_damage = 10
melee_damage_lower = 5
melee_damage_upper = 10
attacktext = "claws"
attack_sound = 'sound/hallucinations/growl1.ogg'
min_oxy = 0
max_oxy = 0
min_tox = 0
max_tox = 0
min_co2 = 0
max_co2 = 0
min_n2 = 0
max_n2 = 0
minbodytemp = 0
faction = "undead"
/mob/living/simple_animal/hostile/retaliate/zombie/Die()
new /obj/effect/decal/cleanable/blood/gibs(loc)
del src
return