removes poi spam and cleans up code

This commit is contained in:
kevinz000
2018-12-11 08:37:10 -08:00
committed by GitHub
parent 33f997c10d
commit df55b465b1
@@ -55,7 +55,8 @@
icon_dead = "banana_peel"
health = 1
maxHealth = 1
turns_per_move = 5
turns_per_move = 5 //this isn't player speed =|
speed = 2 //this is player speed
loot = list(/obj/item/reagent_containers/food/snacks/deadbanana_spider)
atmos_requirements = list("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 = 270
@@ -76,14 +77,13 @@
verb_yell = "chitters loudly"
var/squish_chance = 50
var/projectile_density = TRUE //griffons get shot
del_on_death = 1
del_on_death = TRUE
/mob/living/simple_animal/banana_spider/Initialize()
. = ..()
var/area/A = get_area(src)
if(A)
notify_ghosts("A banana spider has been created in \the [A.name].", source = src, action=NOTIFY_ATTACK, flashwindow = FALSE)
GLOB.poi_list |= src
/mob/living/simple_animal/banana_spider/attack_ghost(mob/user)
if(key) //please stop using src. without a good reason.
@@ -97,8 +97,8 @@
var/be_spider = alert("Become a banana spider? (Warning, You can no longer be cloned!)",,"Yes","No")
if(be_spider == "No" || QDELETED(src) || !isobserver(user))
return
src.sentience_act()
src.key = user.key
sentience_act()
key = user.key
density = TRUE
/mob/living/simple_animal/banana_spider/ComponentInitialize()