Skip to content

Commit

Permalink
[MIRROR] Malf AI overload blacklists (#2533)
Browse files Browse the repository at this point in the history
* Malf AI overload blacklists

* Update malf_ai_modules.dm

* Update malf_ai_modules.dm

* Update malf_ai_modules.dm

---------

Co-authored-by: Sadboysuss <[email protected]>
Co-authored-by: Mal <[email protected]>
  • Loading branch information
3 people authored and StealsThePRs committed May 17, 2024
1 parent 96bb919 commit f9e0a14
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions code/modules/antagonists/malf_ai/malf_ai_modules.dm
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ GLOBAL_LIST_INIT(blacklisted_malf_machines, typecacheof(list(
/obj/machinery/hypertorus/corner,
/obj/machinery/atmospherics/components/binary/valve,
/obj/machinery/portable_atmospherics/canister,
/obj/machinery/computer/shuttle,
/obj/machinery/computer/emergency_shuttle,
/obj/machinery/computer/gateway_control,
)))

GLOBAL_LIST_INIT(malf_modules, subtypesof(/datum/ai_module))
Expand Down Expand Up @@ -450,7 +453,16 @@ GLOBAL_LIST_INIT(malf_modules, subtypesof(/datum/ai_module))
to_chat(caller, span_warning("You can only animate machines!"))
return FALSE
var/obj/machinery/clicked_machine = clicked_on
<<<<<<< HEAD

Check failure on line 456 in code/modules/antagonists/malf_ai/malf_ai_modules.dm

View workflow job for this annotation

GitHub Actions / Run Linters

got '<<', expected one of: newline, '/', identifier
if(!clicked_machine.can_be_overridden() || is_type_in_typecache(clicked_machine, GLOB.blacklisted_malf_machines))
=======

if(istype(clicked_machine, /obj/machinery/porta_turret_cover)) //clicking on a closed turret will attempt to override the turret itself instead of the animated/abstract cover.
var/obj/machinery/porta_turret_cover/clicked_turret = clicked_machine
clicked_machine = clicked_turret.parent_turret

if((clicked_machine.resistance_flags & INDESTRUCTIBLE) || is_type_in_typecache(clicked_machine, GLOB.blacklisted_malf_machines))
>>>>>>> 60b3142b289 ([MIRROR] Malf AI overload blacklists (#2533))
to_chat(caller, span_warning("That machine can't be overridden!"))
return FALSE

Expand Down Expand Up @@ -538,7 +550,16 @@ GLOBAL_LIST_INIT(malf_modules, subtypesof(/datum/ai_module))
to_chat(caller, span_warning("You can only overload machines!"))
return FALSE
var/obj/machinery/clicked_machine = clicked_on
<<<<<<< HEAD
if(is_type_in_typecache(clicked_machine, GLOB.blacklisted_malf_machines))
=======

if(istype(clicked_machine, /obj/machinery/porta_turret_cover)) //clicking on a closed turret will attempt to override the turret itself instead of the animated/abstract cover.
var/obj/machinery/porta_turret_cover/clicked_turret = clicked_machine
clicked_machine = clicked_turret.parent_turret

if((clicked_machine.resistance_flags & INDESTRUCTIBLE) || is_type_in_typecache(clicked_machine, GLOB.blacklisted_malf_machines))
>>>>>>> 60b3142b289 ([MIRROR] Malf AI overload blacklists (#2533))
to_chat(caller, span_warning("You cannot overload that device!"))
return FALSE

Expand Down Expand Up @@ -621,15 +642,15 @@ GLOBAL_LIST_INIT(malf_modules, subtypesof(/datum/ai_module))
/// Robotic Factory: Places a large machine that converts humans that go through it into cyborgs. Unlocking this ability removes shunting.
/datum/ai_module/utility/place_cyborg_transformer
name = "Robotic Factory (Removes Shunting)"
description = "Build a machine anywhere, using expensive nanomachines, that will slowly create loyal cyborgs for you." // NOVA EDIT
description = "Build a machine anywhere, using expensive nanomachines, that will slowly create loyal cyborgs for you." // NOVA EDIT CHANGE - ORIGINAL: description = "Build a machine anywhere, using expensive nanomachines, that can convert a living human into a loyal cyborg slave when placed inside."
cost = 100
power_type = /datum/action/innate/ai/place_transformer
unlock_text = span_notice("You make contact with Space Amazon and request a robotics factory for delivery.")
unlock_sound = 'sound/machines/ping.ogg'

/datum/action/innate/ai/place_transformer
name = "Place Robotics Factory"
desc = "Places a machine that creates cyborgs efficiently. Conveyor belts included!" // NOVA EDIT
desc = "Places a machine that creates cyborgs efficiently. Conveyor belts included!" // NOVA EDIT CHANGE - ORIGINAL: desc = "Places a machine that converts humans into cyborgs. Conveyor belts included!"
button_icon_state = "robotic_factory"
uses = 1
auto_use_uses = FALSE //So we can attempt multiple times
Expand All @@ -652,7 +673,7 @@ GLOBAL_LIST_INIT(malf_modules, subtypesof(/datum/ai_module))
active = FALSE
return
var/turf/T = get_turf(owner_AI.eyeobj)
var/obj/machinery/transformer_rp/conveyor = new(T) //NOVA EDIT CHANGE - SILLICONQOL - ORIGINAL: var/obj/machinery/transformer/conveyor = new(T)
var/obj/machinery/transformer_rp/conveyor = new(T) // NOVA EDIT CHANGE - SILLICONQOL - ORIGINAL: var/obj/machinery/transformer/conveyor = new(T)
conveyor.master_ai = owner
playsound(T, 'sound/effects/phasein.ogg', 100, TRUE)
if(owner_AI.can_shunt) //prevent repeated messages
Expand Down

0 comments on commit f9e0a14

Please sign in to comment.