mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
Fixes a bug with the AI crew monitor tracking function (#5711)
## About The Pull Request Removes a single line of code in the Bubber crew monitor UI preventing the AI from tracking crew. Prior to this PR, the crew monitor tracker would show as greyed out for every entry. Edit: This is because upstream killed smart tracking. Removed additional instances of can_track since it's no longer functional Edit: Also fixes security grouping on the crew monitor ## Why It's Good For The Game This has been bothering me for months and the AI being able to easily track crew via cameras is good, actually. Also security grouping for dept sec is nice too. ## Proof Of Testing <details> <summary> </summary> <img width="578" height="188" alt="crew" src="https://github.com/user-attachments/assets/2e2fc710-b257-4cf3-85ce-b241553fbcfb" /> <img width="577" height="211" alt="image" src="https://github.com/user-attachments/assets/76a747ac-ec4c-43cd-bd44-24850d577741" /> </details> ## Changelog 🆑 fix: AI is now able to track via the crew monitor again fix: Dept Security grouping on the crew monitor /🆑
This commit is contained in:
@@ -58,6 +58,10 @@
|
||||
JOB_SECURITY_MEDIC = 203,
|
||||
JOB_DETECTIVE = 204,
|
||||
JOB_SECURITY_OFFICER = 205,
|
||||
JOB_SECURITY_OFFICER_MEDICAL = 206,
|
||||
JOB_SECURITY_OFFICER_ENGINEERING = 207,
|
||||
JOB_SECURITY_OFFICER_SCIENCE = 208,
|
||||
JOB_SECURITY_OFFICER_SUPPLY = 209,
|
||||
|
||||
//Medical
|
||||
JOB_ORDERLY = 301,
|
||||
|
||||
@@ -150,7 +150,6 @@ type CrewSensor = {
|
||||
brutedam: number;
|
||||
area: string | undefined;
|
||||
health: number;
|
||||
can_track: BooleanLike;
|
||||
ref: string;
|
||||
};
|
||||
|
||||
@@ -250,7 +249,6 @@ const CrewTableEntry = (props: CrewTableEntryProps) => {
|
||||
burndam,
|
||||
brutedam,
|
||||
area,
|
||||
can_track,
|
||||
} = sensor_data;
|
||||
|
||||
return (
|
||||
@@ -315,7 +313,6 @@ const CrewTableEntry = (props: CrewTableEntryProps) => {
|
||||
{!!link_allowed && (
|
||||
<Table.Cell collapsing>
|
||||
<Button
|
||||
disabled={!can_track}
|
||||
onClick={() =>
|
||||
act('select_person', {
|
||||
name: name,
|
||||
|
||||
Reference in New Issue
Block a user