more icons for stuff, nightvision for aliens with hud icon button and toggle verb

This commit is contained in:
Hornygranny
2014-08-27 15:16:28 -07:00
parent 2602aeebc8
commit ca77a4e31d
14 changed files with 52 additions and 36 deletions
@@ -33,7 +33,6 @@
var/heat_protection = 0.5
/mob/living/carbon/alien/New()
verbs += /mob/living/proc/mob_sleep
verbs += /mob/living/proc/lay_down
@@ -142,10 +142,10 @@ Doesn't work on other aliens/AI.*/
set desc = "Secrete tough malleable resin."
set category = "Alien"
if(powerc(75))
if(powerc(55))
var/choice = input("Choose what you wish to shape.","Resin building") as null|anything in list("resin wall","resin membrane","resin nest") //would do it through typesof but then the player choice would have the type path and we don't want the internal workings to be exposed ICly - Urist
if(!choice || !powerc(75)) return
adjustToxLoss(-75)
if(!choice || !powerc(55)) return
adjustToxLoss(-55)
src << "<span class='userdanger'>You shape a [choice].</span>"
for(var/mob/O in viewers(src, null))
O.show_message(text("<span class='userdanger'>[src] vomits up a thick purple substance and begins to shape it!</span>"), 1)
@@ -170,4 +170,19 @@ Doesn't work on other aliens/AI.*/
A.loc = loc
//Paralyse(10)
src.visible_message("<span class='alertealien'>[src] hurls out the contents of their stomach!</span>")
return
return
/mob/living/carbon/alien/humanoid/verb/nightvisiontoggle()
set name = "Toggle Night Vision"
set category = "Alien"
if(nightvision == 0)
see_in_dark = 8
see_invisible = SEE_INVISIBLE_MINIMUM
nightvision = 1
hud_used.nightvisionicon.icon_state = "nightvision1"
else if(nightvision == 1)
see_in_dark = 4
see_invisible = 45
nightvision = 0
hud_used.nightvisionicon.icon_state = "nightvision0"
@@ -5,6 +5,7 @@
var/obj/item/l_store = null
var/caste = ""
update_icon = 1
var/nightvision = 1
//This is fine right now, if we're adding organ specific damage this needs to be updated
/mob/living/carbon/alien/humanoid/New()
@@ -389,8 +389,12 @@
sight |= SEE_MOBS
sight &= ~SEE_TURFS
sight &= ~SEE_OBJS
see_in_dark = 4
see_invisible = SEE_INVISIBLE_LEVEL_TWO
if(nightvision)
see_in_dark = 8
see_invisible = SEE_INVISIBLE_MINIMUM
else if(!nightvision)
see_in_dark = 4
see_invisible = 45
if(see_override)
see_invisible = see_override
@@ -22,7 +22,7 @@
break
real_name = src.name
verbs.Add(/mob/living/carbon/alien/humanoid/proc/corrosive_acid,/mob/living/carbon/alien/humanoid/proc/neurotoxin,/mob/living/carbon/alien/humanoid/proc/resin)
verbs.Add(/mob/living/carbon/alien/humanoid/proc/corrosive_acid,/mob/living/carbon/alien/humanoid/proc/neurotoxin,/mob/living/carbon/alien/humanoid/proc/resin,/mob/living/carbon/alien/humanoid/verb/nightvisiontoggle)
..()
/mob/living/carbon/alien/humanoid/queen/handle_regular_hud_updates()