Skip to content

Commit

Permalink
Merge pull request tgstation#14574 from ChangelingRain/titaniumrose
Browse files Browse the repository at this point in the history
Holoparasites are now named after silvery metals and flowers and have updated sprites
  • Loading branch information
tkdrg committed Jan 11, 2016
2 parents 76625e3 + 93f412c commit bf27853
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 28 deletions.
59 changes: 31 additions & 28 deletions code/modules/mob/living/simple_animal/guardian/guardian.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
response_disarm = "flails at"
response_harm = "punches"
icon = 'icons/mob/guardian.dmi'
icon_state = "guardianorange"
icon_living = "guardianorange"
icon_dead = "stand"
icon_state = "magicOrange"
icon_living = "magicOrange"
icon_dead = "magicOrange"
speed = 0
a_intent = "harm"
stop_automated_movement = 1
Expand All @@ -21,13 +21,13 @@
attacktext = "punches"
maxHealth = INFINITY //The spirit itself is invincible
health = INFINITY
damage_coeff = list(BRUTE = 0.5, BURN = 0.5, TOX = 0.5, CLONE = 0.5, STAMINA = 0, OXY = 0.5) //how much damage from each damage type we transfer to the owner
environment_smash = 0
melee_damage_lower = 15
melee_damage_upper = 15
butcher_results = list(/obj/item/weapon/ectoplasm = 1)
AIStatus = AI_OFF
var/cooldown = 0
var/damage_transfer = 1 //how much damage from each attack we transfer to the owner
var/mob/living/summoner
var/range = 10 //how far from the user the spirit can be
var/playstyle_string = "You are a standard Guardian. You shouldn't exist!"
Expand Down Expand Up @@ -79,26 +79,24 @@
summoner.death()

/mob/living/simple_animal/hostile/guardian/adjustHealth(amount) //The spirit is invincible, but passes on damage to the summoner
var/damage = amount * damage_transfer
if (summoner)
if(summoner)
if(loc == summoner)
return
summoner.adjustBruteLoss(damage)
if(damage)
summoner.adjustBruteLoss(amount)
if(amount)
summoner << "<span class='danger'><B>Your [name] is under attack! You take damage!</span></B>"
summoner.visible_message("<span class='danger'><B>Blood sprays from [summoner] as [src] takes damage!</B></span>")
if(summoner.stat == UNCONSCIOUS)
summoner << "<span class='danger'><B>Your body can't take the strain of sustaining [src] in this condition, it begins to fall apart!</span></B>"
summoner.adjustCloneLoss(damage/2)
summoner.adjustCloneLoss(amount*0.5) //dying hosts take 50% bonus damage as cloneloss

/mob/living/simple_animal/hostile/guardian/ex_act(severity, target)
switch (severity)
if (1)
switch(severity)
if(1)
gib()
return
if (2)
if(2)
adjustBruteLoss(60)

if(3)
adjustBruteLoss(30)

Expand Down Expand Up @@ -208,7 +206,7 @@
melee_damage_upper = 10
attack_sound = 'sound/items/Welder.ogg'
attacktext = "sears"
damage_transfer = 0.8
damage_coeff = list(BRUTE = 0.8, BURN = 0.8, TOX = 0.8, CLONE = 0.8, STAMINA = 0, OXY = 0.8)
range = 10
playstyle_string = "As a Chaos type, you have only light damage resistance, but will ignite any enemy you bump into. In addition, your melee attacks will randomly teleport enemies."
environment_smash = 1
Expand Down Expand Up @@ -256,7 +254,6 @@
/mob/living/simple_animal/hostile/guardian/punch
melee_damage_lower = 20
melee_damage_upper = 20
damage_transfer = 0.5
playstyle_string = "As a standard type you have no special abilities, but have a high damage resistance and a powerful attack capable of smashing through walls."
environment_smash = 2
magic_fluff_string = "..And draw the Assistant, faceless and generic, but never to be underestimated."
Expand Down Expand Up @@ -289,6 +286,7 @@
a_intent = "harm"
friendly = "heals"
speed = 0
damage_coeff = list(BRUTE = 0.7, BURN = 0.7, TOX = 0.7, CLONE = 0.7, STAMINA = 0, OXY = 0.7)
melee_damage_lower = 15
melee_damage_upper = 15
playstyle_string = "As a Support type, you may toggle your basic attacks to a healing mode. In addition, Alt-Clicking on an adjacent mob will warp them to your bluespace beacon after a short delay."
Expand Down Expand Up @@ -321,15 +319,15 @@
if(toggle)
a_intent = "harm"
speed = 0
damage_transfer = 0.7
damage_coeff = list(BRUTE = 0.7, BURN = 0.7, TOX = 0.7, CLONE = 0.7, STAMINA = 0, OXY = 0.7)
melee_damage_lower = 15
melee_damage_upper = 15
src << "<span class='danger'><B>You switch to combat mode.</span></B>"
toggle = FALSE
else
a_intent = "help"
speed = 1
damage_transfer = 1
damage_coeff = list(BRUTE = 1, BURN = 1, TOX = 1, CLONE = 1, STAMINA = 0, OXY = 1)
melee_damage_lower = 0
melee_damage_upper = 0
src << "<span class='danger'><B>You switch to healing mode.</span></B>"
Expand Down Expand Up @@ -409,7 +407,7 @@
friendly = "quietly assesses"
melee_damage_lower = 10
melee_damage_upper = 10
damage_transfer = 0.9
damage_coeff = list(BRUTE = 0.9, BURN = 0.9, TOX = 0.9, CLONE = 0.9, STAMINA = 0, OXY = 0.9)
projectiletype = /obj/item/projectile/guardian
ranged_cooldown_cap = 0
projectilesound = 'sound/effects/hit_on_shattered_glass.ogg'
Expand Down Expand Up @@ -490,7 +488,7 @@
/mob/living/simple_animal/hostile/guardian/bomb
melee_damage_lower = 15
melee_damage_upper = 15
damage_transfer = 0.6
damage_coeff = list(BRUTE = 0.6, BURN = 0.6, TOX = 0.6, CLONE = 0.6, STAMINA = 0, OXY = 0.6)
range = 13
playstyle_string = "As an explosive type, you have only moderate close combat abilities, but are capable of converting any adjacent item into a disguised bomb via alt click."
magic_fluff_string = "..And draw the Scientist, master of explosive death."
Expand Down Expand Up @@ -630,19 +628,24 @@
user.verbs += /mob/living/proc/guardian_recall
user.verbs += /mob/living/proc/guardian_reset

var/picked_name = pick("Aries", "Leo", "Sagittarius", "Taurus", "Virgo", "Capricorn", "Gemini", "Libra", "Aquarius", "Cancer", "Scorpio", "Pisces")
var/colour = pick("orange", "pink", "red", "blue", "green")
G.name = "[picked_name] [capitalize(colour)]"
G.real_name = "[picked_name] [capitalize(colour)]"
G.icon_living = "guardian[colour]"
G.icon_state = "guardian[colour]"
G.icon_dead = "guardian[colour]"

switch (theme)
var/colour
var/picked_name
switch(theme)
if("magic")
user << "[G.magic_fluff_string]."
colour = pick("Pink", "Red", "Orange", "Green", "Blue")
picked_name = pick("Aries", "Leo", "Sagittarius", "Taurus", "Virgo", "Capricorn", "Gemini", "Libra", "Aquarius", "Cancer", "Scorpio", "Pisces")
if("tech")
user << "[G.tech_fluff_string]."
colour = pick("Rose", "Lily", "Daisy", "Zinnia", "Ivy", "Iris", "Petunia", "Violet", "Orchid") //technically not colors, just flowers that can be specific colors
picked_name = pick("Gallium", "Indium", "Thallium", "Bismuth", "Aluminium", "Mercury", "Iron", "Silver", "Zinc", "Titanium", "Chromium", "Nickel")

G.name = "[picked_name] [colour]"
G.real_name = "[picked_name] [colour]"
G.icon_living = "[theme][colour]"
G.icon_state = "[theme][colour]"
G.icon_dead = "[theme][colour]"

G.mind.name = "[G.real_name]"

/obj/item/weapon/guardiancreator/choose
Expand Down
Binary file modified icons/mob/guardian.dmi
Binary file not shown.

0 comments on commit bf27853

Please sign in to comment.