mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 13:37:58 +01:00
Makes our codebase 1641 ready (#26151)
* Makes our codebase 1641 ready * Store variable * Renames var
This commit is contained in:
@@ -483,16 +483,16 @@ AI MODULES
|
||||
icon = 'icons/obj/toy.dmi'
|
||||
icon_state = "AI"
|
||||
origin_tech = "programming=6;materials=5;syndicate=6"
|
||||
laws = list("")
|
||||
var/ion_law = ""
|
||||
|
||||
/obj/item/aiModule/toyAI/transmitInstructions(mob/living/silicon/ai/target, mob/sender)
|
||||
//..()
|
||||
to_chat(target, "<span class='warning'>KRZZZT</span>")
|
||||
target.add_ion_law(laws[1])
|
||||
return laws[1]
|
||||
target.add_ion_law(ion_law)
|
||||
return ion_law
|
||||
|
||||
/obj/item/aiModule/toyAI/attack_self(mob/user)
|
||||
laws[1] = generate_ion_law()
|
||||
ion_law = generate_ion_law()
|
||||
to_chat(user, "<span class='notice'>You press the button on [src].</span>")
|
||||
playsound(user, 'sound/machines/click.ogg', 20, 1)
|
||||
src.loc.visible_message("<span class='warning'>[bicon(src)] [laws[1]]</span>")
|
||||
playsound(user, 'sound/machines/click.ogg', 20, TRUE)
|
||||
visible_message("<span class='warning'>[bicon(src)] [ion_law]</span>")
|
||||
|
||||
Reference in New Issue
Block a user