Skip to content

Commit 363650f

Browse files
Borgs can now access the APCs channel configuration again (#19674)
Borgs can now access the APCs channel configuration again, like the AI already can
1 parent aa9fd46 commit 363650f

File tree

3 files changed

+62
-4
lines changed

3 files changed

+62
-4
lines changed

code/modules/power/apc.dm

+1-1
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@
882882
data["power_cell_charge"] = cell?.percent()
883883
data["fail_time"] = failure_timer * 2
884884
data["silicon_user"] = isAdmin || issilicon(user)
885-
data["is_AI"] = isAI(user)
885+
data["is_AI_or_robot"] = isAI(user) || isrobot(user)
886886
data["total_load"] = round(lastused_total)
887887
data["total_charging"] = round(lastused_charging)
888888
data["is_operating"] = operating
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
################################
2+
# Example Changelog File
3+
#
4+
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
5+
#
6+
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
7+
# When it is, any changes listed below will disappear.
8+
#
9+
# Valid Prefixes:
10+
# bugfix
11+
# - (fixes bugs)
12+
# wip
13+
# - (work in progress)
14+
# qol
15+
# - (quality of life)
16+
# soundadd
17+
# - (adds a sound)
18+
# sounddel
19+
# - (removes a sound)
20+
# rscadd
21+
# - (adds a feature)
22+
# rscdel
23+
# - (removes a feature)
24+
# imageadd
25+
# - (adds an image or sprite)
26+
# imagedel
27+
# - (removes an image or sprite)
28+
# spellcheck
29+
# - (fixes spelling or grammar)
30+
# experiment
31+
# - (experimental change)
32+
# balance
33+
# - (balance changes)
34+
# code_imp
35+
# - (misc internal code change)
36+
# refactor
37+
# - (refactors code)
38+
# config
39+
# - (makes a change to the config files)
40+
# admin
41+
# - (makes changes to administrator tools)
42+
# server
43+
# - (miscellaneous changes to server)
44+
#################################
45+
46+
# Your name.
47+
author: FluffyGhost
48+
49+
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
50+
delete-after: True
51+
52+
# Any changes you've made. See valid prefix list above.
53+
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
54+
# SCREW THIS UP AND IT WON'T WORK.
55+
# Also, this gets changed to [] after reading. Just remove the brackets when you add new shit.
56+
# Please surround your changes in double quotes ("). It works without them, but if you use certain characters it screws up compiling. The quotes will not show up in the changelog.
57+
changes:
58+
- rscadd: "Borgs can now access the APCs channel configuration again, like the AI already can."

tgui/packages/tgui/interfaces/Apc.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type APCData = {
99
power_cell_charge: number;
1010
fail_time: number;
1111
silicon_user: BooleanLike;
12-
is_AI: BooleanLike;
12+
is_AI_or_robot: BooleanLike;
1313
total_load: number;
1414
total_charging: number;
1515
is_operating: BooleanLike;
@@ -171,7 +171,7 @@ export const APCWindow = (props, context) => {
171171
[{channelStatus(channel.status)}] | [
172172
{channelPower(channel.status)}] | {channel.power_load} W
173173
</Box>
174-
{(!data.locked && !data.silicon_user) || data.is_AI ? (
174+
{(!data.locked && !data.silicon_user) || data.is_AI_or_robot ? (
175175
<Section>
176176
<Button
177177
content="Auto"
@@ -225,7 +225,7 @@ export const APCWindow = (props, context) => {
225225
</LabeledList.Item>
226226
</LabeledList>
227227
</Section>
228-
{data.silicon_user || data.is_AI ? (
228+
{data.silicon_user || data.is_AI_or_robot ? (
229229
<Section title="System Overrides">
230230
<Button
231231
content="Overload Lighting Circuit"

0 commit comments

Comments
 (0)