mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 12:37:26 +01:00
Migrate voice changer to the new attack chain (#32264)
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
var/voice
|
||||
var/active
|
||||
new_attack_chain = TRUE
|
||||
|
||||
/obj/item/voice_changer/Initialize(mapload)
|
||||
. = ..()
|
||||
@@ -24,12 +25,15 @@
|
||||
|
||||
return ..()
|
||||
|
||||
/obj/item/voice_changer/attack_self__legacy__attackchain(mob/user)
|
||||
/obj/item/voice_changer/activate_self(mob/user)
|
||||
if(..())
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
active = !active
|
||||
icon_state = "voice_changer_[active ? "on" : "off"]"
|
||||
to_chat(user, SPAN_NOTICE("You toggle [src] [active ? "on" : "off"]."))
|
||||
|
||||
add_fingerprint(user)
|
||||
update_action_buttons()
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
/obj/item/voice_changer/proc/set_voice(mob/user)
|
||||
var/chosen_voice = tgui_input_text(user, "What voice would you like to mimic? Leave this empty to use the voice on your ID card.", "Set Voice Changer")
|
||||
|
||||
Reference in New Issue
Block a user