self recolour for simple mob / robot (#7415)

This commit is contained in:
Kashargul
2023-12-16 21:14:48 +01:00
committed by GitHub
parent 144379af8b
commit a1da8c5e00
6 changed files with 255 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
/mob/living/silicon/robot
var/sleeper_resting = FALSE //Enable resting belly sprites for dogborgs that have the sprites
var/datum/matter_synth/water_res = null //Enable water for lick clean
var/has_recoloured = FALSE
/mob/living/silicon/robot/verb/purge_nutrition()
set name = "Purge Nutrition"
@@ -28,3 +29,18 @@
to_chat(src, "<span class='filter_notice'>You refill the extinguisher using your water reserves.</span>")
else
to_chat(src, "<span class='filter_notice'>Insufficient water reserves.</span>")
/mob/living/silicon/robot/module_reset()
..()
has_recoloured = FALSE
/mob/living/silicon/robot/verb/ColorMate()
set name = "Recolour Module"
set category = "Robot Commands"
set desc = "Allows to recolour once."
if(!has_recoloured)
var/datum/ColorMate/recolour = new /datum/ColorMate(usr)
recolour.tgui_interact(usr)
return
to_chat(usr, "You've already recoloured yourself once. Ask for a module reset for another.")

View File

@@ -3,6 +3,7 @@
var/list/speech_sounds = list()
var/speech_chance = 75 //mobs can be a bit more emotive than carbon/humans
var/speech_sound_enabled = TRUE
var/has_recoloured = FALSE
//vars for vore_icons toggle control
var/vore_icons_cache = null // null by default. Going from ON to OFF should store vore_icons val here, OFF to ON reset as null
@@ -132,3 +133,14 @@
/mob/living/simple_mob/proc/character_directory_species()
return "simplemob"
/mob/living/simple_mob/verb/ColorMate()
set name = "Recolour"
set category = "Abilities"
set desc = "Allows to recolour once."
if(!has_recoloured)
var/datum/ColorMate/recolour = new /datum/ColorMate(usr)
recolour.tgui_interact(usr)
return
to_chat(usr, "You've already recoloured yourself once. You are only allowed to recolour yourself once during a around.")