mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Protolathe and CI build procs moved to them from RD console. Protolathe and CI now have a build queue. Designs take varying time to build. P and CI material storage is now a list instead of a set of vars. origin_tech is now a list. All sheets now contain exactly 2000 units of matter. In design datum, chemicals and materials are two separate lists. Designs are now sorted. The method is kinda hacky but flexible. They have a var, sort_string. Designs are sorted alphabetically using it. Circuits how show whether they build a machine or a computer in CI menu. Adds item construction, for now protolathe is used.
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
/obj/item/voice_changer
|
|
name = "voice changer"
|
|
desc = "A voice scrambling module. If you can see this, report it as a bug on the tracker."
|
|
var/voice //If set and item is present in mask/suit, this name will be used for the wearer's speech.
|
|
var/active
|
|
|
|
/obj/item/clothing/mask/gas/voice
|
|
name = "gas mask"
|
|
desc = "A face-covering mask that can be connected to an air supply. It seems to house some odd electronics."
|
|
var/obj/item/voice_changer/changer
|
|
origin_tech = list(TECH_ILLEGAL = 4)
|
|
|
|
/obj/item/clothing/mask/gas/voice/verb/Toggle_Voice_Changer()
|
|
set category = "Object"
|
|
set src in usr
|
|
|
|
changer.active = !changer.active
|
|
usr << "<span class='notice'>You [changer.active ? "enable" : "disable"] the voice-changing module in \the [src].</span>"
|
|
|
|
/obj/item/clothing/mask/gas/voice/verb/Set_Voice(name as text)
|
|
set category = "Object"
|
|
set src in usr
|
|
|
|
var/voice = sanitize(name, MAX_NAME_LEN)
|
|
if(!voice || !length(voice)) return
|
|
changer.voice = voice
|
|
usr << "<span class='notice'>You are now mimicking <B>[changer.voice]</B>.</span>"
|
|
|
|
/obj/item/clothing/mask/gas/voice/New()
|
|
..()
|
|
changer = new(src)
|