Skip to content

Commit

Permalink
[MIRROR] turns triple ai mode into a station trait [MDB IGNORE] (Skyr…
Browse files Browse the repository at this point in the history
…at-SS13#25346)

* turns triple ai mode into a station trait (#79995)

## About The Pull Request
removes the triple ai mode secret and makes it into a station trait

## Why It's Good For The Game
it seems to be an interesting way to spice up the gameplay of a given
round

## Changelog
:cl:
add: turns triple ai mode into a station trait
/:cl:

* turns triple ai mode into a station trait

* Set the weight to 0

---------

Co-authored-by: Fikou <[email protected]>
Co-authored-by: SomeRandomOwl <[email protected]>
  • Loading branch information
3 people authored Nov 30, 2023
1 parent 00be1a5 commit faddb63
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 61 deletions.
23 changes: 23 additions & 0 deletions code/datums/station_traits/neutral_traits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -336,3 +336,26 @@
show_in_report = TRUE
report_message = "There sure are a lot of trees out there."

/datum/station_trait/triple_ai
name = "AI Triumvirate"
trait_type = STATION_TRAIT_NEUTRAL
show_in_report = TRUE
weight = 0 // SKYRAT EDIT Original = 1
report_message = "Your station has been instated with three Nanotrasen Artificial Intelligence models."

/datum/station_trait/triple_ai/New()
. = ..()
RegisterSignal(SSjob, COMSIG_OCCUPATIONS_DIVIDED, PROC_REF(on_occupations_divided))

/datum/station_trait/triple_ai/revert()
UnregisterSignal(SSjob, COMSIG_OCCUPATIONS_DIVIDED)
return ..()

/datum/station_trait/triple_ai/proc/on_occupations_divided(datum/source, pure, allow_all)
SIGNAL_HANDLER

for(var/datum/job/ai/ai_datum in SSjob.joinable_occupations)
ai_datum.spawn_positions = 3
if(!pure)
for(var/obj/effect/landmark/start/ai/secondary/secondary_ai_spawn in GLOB.start_landmarks_list)
secondary_ai_spawn.latejoin_active = TRUE
49 changes: 0 additions & 49 deletions code/modules/admin/verbs/ai_triumvirate.dm

This file was deleted.

5 changes: 0 additions & 5 deletions code/modules/admin/verbs/secrets.dm
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,6 @@ GLOBAL_DATUM(everyone_a_traitor, /datum/everyone_is_a_traitor_controller)
return
holder.anon_names()
SSblackbox.record_feedback("nested tally", "admin_secrets_fun_used", 1, list("Anonymous Names"))
if("tripleAI")
if(!is_funmin)
return
holder.triple_ai()
SSblackbox.record_feedback("nested tally", "admin_secrets_fun_used", 1, list("Triple AI"))
if("onlyone")
if(!is_funmin)
return
Expand Down
1 change: 0 additions & 1 deletion tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -2855,7 +2855,6 @@
#include "code\modules\admin\verbs\adminjump.dm"
#include "code\modules\admin\verbs\adminpm.dm"
#include "code\modules\admin\verbs\adminsay.dm"
#include "code\modules\admin\verbs\ai_triumvirate.dm"
#include "code\modules\admin\verbs\anonymousnames.dm"
#include "code\modules\admin\verbs\atmosdebug.dm"
#include "code\modules\admin\verbs\beakerpanel.dm"
Expand Down
11 changes: 5 additions & 6 deletions tgui/packages/tgui/interfaces/Secrets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,12 @@ const FunTab = (props, context) => {
/>
</Stack.Item>
<Stack.Item>
<Button
icon="users"
lineHeight={lineHeightNormal}
<NoticeBox
mb={0.0}
width={buttonWidthNormal}
content="Triple AI mode"
onClick={() => act('tripleAI')}
/>
height={lineHeightNormal}>
Your admin button here, coder!
</NoticeBox>
</Stack.Item>
<Stack.Item>
<Button
Expand Down

0 comments on commit faddb63

Please sign in to comment.