Skip to content

Commit

Permalink
Merge pull request #1342 from Yawn-Wider/voxarmalis
Browse files Browse the repository at this point in the history
Vox Armalis QoL
  • Loading branch information
izac112 authored Dec 17, 2023
2 parents 40f1669 + 7280ba0 commit 39656b5
Showing 1 changed file with 32 additions and 22 deletions.
54 changes: 32 additions & 22 deletions code/modules/mob/living/simple_mob/subtypes/animal/vox.dm
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
/mob/living/simple_mob/vox
min_oxy = 0
max_oxy = 0
min_tox = 5
max_tox = 0
min_co2 = 0
max_co2 = 5
min_n2 = 0 //breathe N2
max_n2 = 0

/mob/living/simple_mob/vox/armalis
name = "serpentine alien"
real_name = "serpentine alien"
desc = "A one-eyed, serpentine creature, half-machine, easily nine feet from tail to beak!"
icon = 'icons/mob/vox.dmi'
icon_state = "armalis"
icon_living = "armalis"
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
maxHealth = 500
health = 500
taser_kill = 0
has_langs = list(LANGUAGE_VOX)
ic_revivable = 1
has_hands = 1
response_harm = "slashes at the"
harm_intent_damage = 0
melee_damage_lower = 30
melee_damage_upper = 40
attack_sharp = 1
attacktext = "slammed its enormous claws into"
movement_cooldown = 2
// environment_smash_flags = SMASH_LIGHT_STRUCTURES | SMASH_CONTAINERS | SMASH_WALLS // WALLS Temporary commenting, YW - Hv3
Expand Down Expand Up @@ -93,8 +97,16 @@
var/text = null

targets += getmobs() //Fill list, prompt user with list
target = input("Select a creature!", "Speak to creature", null, null) as null|anything in targets
text = input("What would you like to say?", "Speak to creature", null, null)
for(var/key in targets)
var/mob/mobx = targets[key]
if(!mobx.ckey)
targets -= key

target = tgui_input_list(src, "Select a creature!", "Speak to creature", targets)

if(!target) return

text = tgui_input_text(src, "What would you like to say?", "Speak to creature")

if (!target || !text)
return
Expand All @@ -108,7 +120,7 @@
to_chat(M, "<span class='notice'>Like lead slabs crashing into the ocean, alien thoughts drop into your mind: [text]</span>")
if(istype(M,/mob/living/carbon/human))
var/mob/living/carbon/human/H = M
if(H.species.name == "Vox")
if(H.species.name == SPECIES_VOX)
return
to_chat(H, "<span class='warning'>Your nose begins to bleed...</span>")
H.drip(1)
Expand All @@ -126,27 +138,25 @@
maxHealth += 200
health += 200
visible_message("<span class='notice'>[src] is quickly outfitted in [O] by [user].</span>","<span class='notice'>You quickly outfit [src] in [O].</span>")
regenerate_icons()
update_icon()
return
if(istype(O,/obj/item/vox/armalis_amp))
user.drop_item(O, src)
amp = O
visible_message("<span class='notice'>[src] is quickly outfitted in [O] by [user].</span>","<span class='notice'>You quickly outfit [src] in [O].</span>")
regenerate_icons()
update_icon()
return
return ..()

/mob/living/simple_mob/vox/armalis/regenerate_icons()
..()
overlays = list()
/mob/living/simple_mob/vox/armalis/update_icon()
. = ..()
if(armour)
var/icon/armour = image('icons/mob/vox.dmi',"armour")
movement_cooldown = 4
overlays += armour
add_overlay(armour)
if(amp)
var/icon/amp = image('icons/mob/vox.dmi',"amplifier")
overlays += amp
return
add_overlay(amp)

/obj/item/vox/armalis_armour
name = "strange armour"
Expand All @@ -160,4 +170,4 @@
desc = "A series of metallic lenses and chains."
icon = 'icons/inventory/suit/item.dmi'
icon_state = "amp"
item_state = "amp"
item_state = "amp"

0 comments on commit 39656b5

Please sign in to comment.