pAI Update Assembled: Redux (#6927)

pAI are slower.
    pAI can doorjack airlocks with bolted doors, and they will raise as long as the bolt wire isn't cut.
    [The AI only has a 60% chance to see the hack now.]
    pAI can no longer strip people.
This commit is contained in:
Geeves
2019-09-15 22:33:33 +02:00
committed by Erki
parent 6b5baa78b1
commit b7b2563f5d
4 changed files with 52 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
/mob/living/carbon/human/proc/handle_strip(var/slot_to_strip,var/mob/living/user)
if(!slot_to_strip || !istype(user) || (isanimal(user) && !istype(user, /mob/living/simple_animal/hostile) ) )
if(!slot_to_strip || !istype(user) || ispAI(user) || (isanimal(user) && !istype(user, /mob/living/simple_animal/hostile) ) )
return 0
if(user.incapacitated() || !user.Adjacent(src))

View File

@@ -73,7 +73,7 @@
var/security_cannotfind = 0
var/obj/machinery/door/hackdoor // The airlock being hacked
var/obj/machinery/door/airlock/hackdoor // The airlock being hacked
var/hackprogress = 0 // Possible values: 0 - 1000, >= 1000 means the hack is complete and will be reset upon next check
var/hack_aborted = 0
@@ -90,6 +90,9 @@
var/response_harm = "kicks"
var/harm_intent_damage = 15//based on 100 health, which is probably too much for a pai to have
/mob/living/silicon/pai/movement_delay()
return 0.8
/mob/living/silicon/pai/attack_hand(mob/living/carbon/human/M as mob)
..()

View File

@@ -358,7 +358,7 @@
to_chat(AI, "<font color = red><b>Network Alert: Brute-force encryption crack in progress in [T.loc].</b></font>")
else
to_chat(AI, "<font color = red><b>Network Alert: Brute-force encryption crack in progress. Unable to pinpoint location.</b></font>")
var/obj/machinery/door/D = cable.machine
var/obj/machinery/door/airlock/D = cable.machine
if(!istype(D))
hack_aborted = 1
hackprogress = 0
@@ -375,6 +375,7 @@
return
if(hackprogress >= 1000)
hackprogress = 0
D.unlock() //unbolts door as long as bolt wires aren't cut
D.open()
cable.machine = null
return
@@ -454,14 +455,12 @@
user.add_language(LANGUAGE_UNATHI)
user.add_language(LANGUAGE_SIIK_MAAS)
user.add_language(LANGUAGE_SKRELLIAN)
// user.add_language("Vaurcese")
user.add_language("Rootsong")
user.add_language(LANGUAGE_ROOTSONG)
else
user.remove_language(LANGUAGE_UNATHI)
user.remove_language(LANGUAGE_SIIK_MAAS)
user.remove_language(LANGUAGE_SKRELLIAN)
//user.add_language(LANGUAGE_VAURCA) //I can buy an AI core and its cyborgs having access to the local hivenet for security reasons, but a pAI?
user.add_language("Rootsong")
user.add_language(LANGUAGE_ROOTSONG)
is_active(mob/living/silicon/pai/user)
return user.translator_on