mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-23 21:27:01 +01:00
Merge pull request #13795 from Heroman3003/sect-colorable-ass
Makes sect abdomen glow colorable
This commit is contained in:
@@ -64,6 +64,8 @@
|
||||
/mob/living/simple_mob/proc/add_eyes()
|
||||
if(!eye_layer)
|
||||
eye_layer = image(icon, "[icon_state]-eyes")
|
||||
if(custom_eye_color)
|
||||
eye_layer.color = custom_eye_color
|
||||
eye_layer.plane = PLANE_LIGHTING_ABOVE
|
||||
eye_layer.appearance_flags = appearance_flags //VOREStation Edit. Make eye overlays respect the mob's scaling settings.
|
||||
add_overlay(eye_layer)
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
var/image/modifier_overlay = null // Holds overlays from modifiers.
|
||||
var/image/eye_layer = null // Holds the eye overlay.
|
||||
var/has_eye_glow = FALSE // If true, adds an overlay over the lighting plane for [icon_state]-eyes.
|
||||
var/custom_eye_color = null
|
||||
attack_icon = 'icons/effects/effects.dmi' //Just the default, played like the weapon attack anim
|
||||
attack_icon_state = "slash" //Just the default
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
vis_height = 64
|
||||
has_eye_glow = TRUE
|
||||
vore_eyes = TRUE
|
||||
custom_eye_color = "#00FFFF"
|
||||
|
||||
faction = "insects"
|
||||
maxHealth = 90
|
||||
@@ -83,5 +84,20 @@
|
||||
ai_holder_type = /datum/ai_holder/simple_mob/melee
|
||||
say_list_type = /datum/say_list/sect_drone
|
||||
|
||||
/mob/living/simple_mob/vore/sect_drone/Login()
|
||||
. = ..()
|
||||
verbs |= /mob/living/simple_mob/vore/sect_drone/proc/set_abdomen_color
|
||||
|
||||
/mob/living/simple_mob/vore/sect_drone/proc/set_abdomen_color()
|
||||
set name = "Set Glow Color"
|
||||
set desc = "Customize your eyes and abdomen glow color."
|
||||
set category = "Abilities"
|
||||
|
||||
var/new_color = input(src, "Please select color.", "Glow Color", custom_eye_color) as color|null
|
||||
if(new_color)
|
||||
custom_eye_color = new_color
|
||||
remove_eyes()
|
||||
add_eyes()
|
||||
|
||||
/datum/say_list/sect_drone
|
||||
say_got_target = list("chitters threateningly!")
|
||||
|
||||
@@ -34,6 +34,7 @@
|
||||
vis_height = 64
|
||||
has_eye_glow = TRUE
|
||||
vore_eyes = TRUE
|
||||
custom_eye_color = "#FF0000"
|
||||
|
||||
faction = "insects"
|
||||
maxHealth = 200
|
||||
@@ -84,5 +85,20 @@
|
||||
ai_holder_type = /datum/ai_holder/simple_mob/melee
|
||||
say_list_type = /datum/say_list/sect_queen
|
||||
|
||||
/mob/living/simple_mob/vore/sect_queen/Login()
|
||||
. = ..()
|
||||
verbs |= /mob/living/simple_mob/vore/sect_queen/proc/set_abdomen_color
|
||||
|
||||
/mob/living/simple_mob/vore/sect_queen/proc/set_abdomen_color()
|
||||
set name = "Set Glow Color"
|
||||
set desc = "Customize your eyes and abdomen glow color."
|
||||
set category = "Abilities"
|
||||
|
||||
var/new_color = input(src, "Please select color.", "Glow Color", custom_eye_color) as color|null
|
||||
if(new_color)
|
||||
custom_eye_color = new_color
|
||||
remove_eyes()
|
||||
add_eyes()
|
||||
|
||||
/datum/say_list/sect_queen
|
||||
say_got_target = list("chitters angrily!")
|
||||
|
||||
Reference in New Issue
Block a user