1+ / mob / living/ simple_animal/ hostile/ smspider
2+ name = " supermatter spider"
3+ desc= " A sliver of supermatter placed upon a robotically enhanced pedestal."
4+ icon = ' icons/mob/smspider.dmi'
5+ icon_state = " smspider"
6+ icon_living = " smspider"
7+ icon_dead = " smspider_dead"
8+ gender = NEUTER
9+ turns_per_move = 2
10+ speak_emote = list (" vibrates" )
11+ emote_see = list (" vibrates" )
12+ emote_taunt = list (" vibrates" )
13+ taunt_chance = 40
14+ maxHealth = 10
15+ health = 10
16+ minbodytemp = 0
17+ maxbodytemp = 1500
18+ healable = 0
19+ attacktext = " slices"
20+ attack_sound = ' sound/effects/supermatter.ogg'
21+ atmos_requirements = list (" min_oxy" = 0 , " max_oxy" = 0 , " min_plas" = 0 , " max_plas" = 0 , " min_co2" = 0 , " max_co2" = 0 , " min_n2" = 0 , " max_n2" = 0 )
22+ robust_searching = 1
23+ faction = list (" hostile" )
24+ see_in_dark = 8
25+ lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_INVISIBLE
26+ ventcrawler = VENTCRAWLER_ALWAYS
27+ deathmessage = " falls to the ground, its shard dulling to a miserable grey!"
28+ var /overcharged = FALSE // if true, spider will not die if it dusts a limb
29+
30+ / mob / living/ simple_animal/ hostile/ smspider/ AttackingTarget()
31+ . = .. ()
32+ if (isliving(target))
33+ playsound (get_turf(src ), ' sound/effects/supermatter.ogg' , 10 , TRUE )
34+ visible_message (span_danger(" [ src ] knocks into [ target] , turning them to dust in a brilliant flash of light!" ))
35+ var /mob /living/victim = target
36+ victim. dust()
37+ if (! overcharged)
38+ death ()
39+ else if (! isturf(target))
40+ playsound (get_turf(src ), ' sound/effects/supermatter.ogg' , 10 , TRUE )
41+ visible_message (span_danger(" [ src ] knocks into [ target] , turning it to dust in a brilliant flash of light!" ))
42+ qdel (target)
43+ if (! overcharged)
44+ death ()
45+ return FALSE
46+
47+ / mob / living/ simple_animal/ hostile/ smspider/ Initialize(mapload)
48+ . = .. ()
49+ AddComponent (/ datum / component/ swarming)
50+
51+ / mob / living/ simple_animal/ hostile/ smspider/ overcharged
52+ name = " overcharged supermatter spider"
53+ desc = " A sliver of overcharged supermatter placed upon a robotically enhanced pedestal. This one seems especially dangerous."
54+ icon_state = " smspideroc"
55+ icon_living = " smspideroc"
56+ maxHealth = 25
57+ health = 25
58+ overcharged = TRUE
0 commit comments