Plasmamen Gear Sprite Tweaks and Helmet Light Re-Addition. (#23685)
* Re-adds Plasmamen Helmet light, and tweaks almost all related sprites. Additionally, adds myself to the .txt for testing purposes. * Update tgstation.dme Not sure why this got changed, fixing.
@@ -39,10 +39,43 @@
|
|||||||
name = "plasma envirosuit helmet"
|
name = "plasma envirosuit helmet"
|
||||||
desc = "A special containment helmet that allows plasma-based lifeforms to exist safely in an oxygenated environment. It is space-worthy, and may be worn in tandem with other EVA gear."
|
desc = "A special containment helmet that allows plasma-based lifeforms to exist safely in an oxygenated environment. It is space-worthy, and may be worn in tandem with other EVA gear."
|
||||||
icon_state = "plasmaman-helm"
|
icon_state = "plasmaman-helm"
|
||||||
item_color = "plasma" //needed for the helmet lighting
|
|
||||||
item_state = "plasmaman-helm"
|
item_state = "plasmaman-helm"
|
||||||
strip_delay = 80
|
strip_delay = 80
|
||||||
armor = list(melee = 0, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 100, rad = 0, fire = 100, acid = 75)
|
armor = list(melee = 0, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 100, rad = 0, fire = 100, acid = 75)
|
||||||
resistance_flags = FIRE_PROOF
|
resistance_flags = FIRE_PROOF
|
||||||
|
var/brightness_on = 4 //luminosity when the light is on
|
||||||
|
var/on = 0
|
||||||
|
actions_types = list(/datum/action/item_action/toggle_helmet_light)
|
||||||
|
|
||||||
|
/obj/item/clothing/head/helmet/space/plasmaman/attack_self(mob/user)
|
||||||
|
on = !on
|
||||||
|
icon_state = "[initial(icon_state)][on ? "-light":""]"
|
||||||
|
item_state = icon_state
|
||||||
|
user.update_inv_head() //So the mob overlay updates
|
||||||
|
|
||||||
|
if(on)
|
||||||
|
turn_on(user)
|
||||||
|
else
|
||||||
|
turn_off(user)
|
||||||
|
for(var/X in actions)
|
||||||
|
var/datum/action/A=X
|
||||||
|
A.UpdateButtonIcon()
|
||||||
|
|
||||||
|
/obj/item/clothing/head/helmet/space/plasmaman/pickup(mob/user)
|
||||||
|
..()
|
||||||
|
if(on)
|
||||||
|
user.AddLuminosity(brightness_on)
|
||||||
|
SetLuminosity(0)
|
||||||
|
|
||||||
|
/obj/item/clothing/head/helmet/space/plasmaman/dropped(mob/user)
|
||||||
|
..()
|
||||||
|
if(on)
|
||||||
|
user.AddLuminosity(-brightness_on)
|
||||||
|
SetLuminosity(brightness_on)
|
||||||
|
|
||||||
|
/obj/item/clothing/head/helmet/space/plasmaman/proc/turn_on/(mob/user)
|
||||||
|
user.AddLuminosity(brightness_on)
|
||||||
|
|
||||||
|
/obj/item/clothing/head/helmet/space/plasmaman/proc/turn_off/(mob/user)
|
||||||
|
user.AddLuminosity(-brightness_on)
|
||||||
|
|
||||||
|
|||||||
@@ -122,3 +122,4 @@ kevinz000 = Game Master
|
|||||||
Tacolizard = Game Master
|
Tacolizard = Game Master
|
||||||
TrustyGun = Game Master
|
TrustyGun = Game Master
|
||||||
Cyberboss = Game Master
|
Cyberboss = Game Master
|
||||||
|
Sweaterkittens = Game Master
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 154 KiB After Width: | Height: | Size: 155 KiB |
|
Before Width: | Height: | Size: 242 KiB After Width: | Height: | Size: 242 KiB |
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 75 KiB |