mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-14 10:53:42 +00:00
Moves singulo and supermatter dmis into obj/engine, renamed from obj/tesla_engine Moves Halloween, Christmas, and misc holiday items to obj/holiday Moves lollipops to obj/food Moves crates, closets, and storage to obj/storage Moves assemblies to obj/assemblies Renames decals.dmi to signs.dmi ...because they're signs and not decals Moves statues, cutouts, instruments, art supplies, and crayons to obj/art Moves balloons, plushes, toys, cards, dice, the hourglass, and TCG to obj/toys Moves guns, swords, shields to obj/weapons
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
/*
|
|
CONTAINS:
|
|
/obj/item/ai_module/core/full/damaged
|
|
/obj/item/ai_module/toy_ai
|
|
*/
|
|
|
|
/obj/item/ai_module/core/full/damaged
|
|
name = "damaged Core AI Module"
|
|
desc = "An AI Module for programming laws to an AI. It looks slightly damaged."
|
|
|
|
/obj/item/ai_module/core/full/damaged/install(datum/ai_laws/law_datum, mob/user)
|
|
laws += generate_ion_law()
|
|
while (prob(75))
|
|
laws += generate_ion_law()
|
|
..()
|
|
laws = list()
|
|
|
|
/obj/item/ai_module/toy_ai // -- Incoming //No actual reason to inherit from ion boards here, either. *sigh* ~Miauw
|
|
name = "toy AI"
|
|
desc = "A little toy model AI core with real law uploading action!" //Note: subtle tell
|
|
icon = 'icons/obj/toys/toy.dmi'
|
|
icon_state = "AI"
|
|
laws = list("")
|
|
|
|
/obj/item/ai_module/toy_ai/transmitInstructions(datum/ai_laws/law_datum, mob/sender, overflow)
|
|
if(law_datum.owner)
|
|
to_chat(law_datum.owner, span_warning("BZZZZT"))
|
|
if(!overflow)
|
|
law_datum.owner.add_ion_law(laws[1])
|
|
else
|
|
law_datum.owner.replace_random_law(laws[1], list(LAW_ION, LAW_INHERENT, LAW_SUPPLIED), LAW_ION)
|
|
else
|
|
if(!overflow)
|
|
law_datum.add_ion_law(laws[1])
|
|
else
|
|
law_datum.replace_random_law(laws[1], list(LAW_ION, LAW_INHERENT, LAW_SUPPLIED), LAW_ION)
|
|
return laws[1]
|
|
|
|
/obj/item/ai_module/toy_ai/attack_self(mob/user)
|
|
laws[1] = generate_ion_law()
|
|
to_chat(user, span_notice("You press the button on [src]."))
|
|
playsound(user, 'sound/machines/click.ogg', 20, TRUE)
|
|
src.loc.visible_message(span_warning("[icon2html(src, viewers(loc))] [laws[1]]"))
|