mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
Migrate personal AI device to the new attack chain. (#32258)
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
var/list/faction = list("neutral") // The factions the pAI will inherit from the card
|
||||
var/current_emotion = 1
|
||||
resistance_flags = FIRE_PROOF | ACID_PROOF | INDESTRUCTIBLE
|
||||
new_attack_chain = TRUE
|
||||
|
||||
/obj/item/paicard/syndicate
|
||||
name = "syndicate personal AI device"
|
||||
@@ -33,10 +34,11 @@
|
||||
QDEL_NULL(radio)
|
||||
return ..()
|
||||
|
||||
/obj/item/paicard/attack_self__legacy__attackchain(mob/user)
|
||||
/obj/item/paicard/activate_self(mob/user)
|
||||
if(!in_range(src, user))
|
||||
return
|
||||
return ..()
|
||||
user.set_machine(src)
|
||||
add_fingerprint(user)
|
||||
var/dat = {"
|
||||
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">
|
||||
<html><meta charset='utf-8'>
|
||||
@@ -227,7 +229,7 @@
|
||||
"}
|
||||
user << browse(dat, "window=paicard")
|
||||
onclose(user, "paicard")
|
||||
return
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
/obj/item/paicard/Topic(href, href_list)
|
||||
|
||||
@@ -290,7 +292,7 @@
|
||||
to_chat(pai, "Your supplemental directives have been updated. Your new directives are:")
|
||||
to_chat(pai, "Prime Directive: <br>[pai.pai_law0]")
|
||||
to_chat(pai, "Supplemental Directives: <br>[pai.pai_laws]")
|
||||
attack_self__legacy__attackchain(usr)
|
||||
activate_self(usr)
|
||||
|
||||
// WIRE_SIGNAL = 1
|
||||
// WIRE_RECEIVE = 2
|
||||
|
||||
Reference in New Issue
Block a user