-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3mo xeno archeology (first phase) #33370
Open
Fildrance
wants to merge
96
commits into
space-wizards:master
Choose a base branch
from
Fildrance:3moArch
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
96 commits
Select commit
Hold shift + click to select a range
eba8da7
DAG Adjacency Matrix & Tests
EmoGarbage404 152d8d5
Merge branch 'master' of https://github.com/space-wizards/space-stati…
EmoGarbage404 c7e209a
Fix sandbox type errors
EmoGarbage404 d2e8d72
First pass on procgen
EmoGarbage404 5aa453b
Procgen adjustments
EmoGarbage404 2befbd0
Networking
EmoGarbage404 33c5775
Cruft and god and beauty and analysis console
EmoGarbage404 ad6e686
convert to data types that dont make me want to kill myself
EmoGarbage404 d6d9965
starting work on console UI
EmoGarbage404 1371613
drawing nodes n shit
EmoGarbage404 5dae996
damn that ui FUCKS
EmoGarbage404 e3cea19
XAT
EmoGarbage404 e833ba9
Add a bunch of basic triggers
EmoGarbage404 95de7f5
Fix trigger gen
EmoGarbage404 99b97c0
Add node info into the analysis console UI
EmoGarbage404 0dce0b0
Merge branch 'master' of https://github.com/space-wizards/space-stati…
EmoGarbage404 dd52fbe
Add node unlocking
EmoGarbage404 3c01fdb
more trigger cuz thats pretty cool
EmoGarbage404 34a703c
final triggers + incorporate gnostic faith
EmoGarbage404 c42a2b2
some ui changes, mostly
EmoGarbage404 2392c51
Fix orphaned procgen segments
EmoGarbage404 05e7918
its not random dipshit
EmoGarbage404 dbc3f70
yeah... this one will make pjb happy....
EmoGarbage404 e22daae
we call it a day for the UI
EmoGarbage404 c908214
imagine... shared power code...
EmoGarbage404 13fd4fb
Merge branch 'master' of https://github.com/space-wizards/space-stati…
EmoGarbage404 cd297d0
extraction WIP but we gotta sidequest momentarily
EmoGarbage404 2a97270
oh hey would you look at that its the actual functionality
EmoGarbage404 b0bc961
distrotrased
EmoGarbage404 5ad649d
Small departure for randomness.
EmoGarbage404 4c7c6fd
ok yep yep indeed that is an effect very cool.
EmoGarbage404 7c0ba34
thanos snap oldcode
EmoGarbage404 51d9c4c
fuck it we ball
EmoGarbage404 c315765
merge with master
6960349
Merge remote-tracking branch 'origin/master' into 3moArch
c390f61
feat: node scanner now displays triggered nodes. Removed unused old a…
49dc97a
refactor: most of preparations, cleanup and groundwork. also segment-…
4066b1d
feature: all basic effects returning
34b6c4e
feat: finished effects lits, created weight lists for struct and hand…
f9fca67
feat: prevent non-first-time-predicted calls in shared artifact effec…
e44dac6
fix: remove gun effect from artifact effects - as it interferes with …
6b39a61
Merge remote-tracking branch 'origin/master' into 3moArch
0784cb4
fix: foam reagent selection, neat ApplyComponents art effect scenario…
0842483
fix: moved spawn/ pry&throw effect systems back to server part of cod…
4ea9d3b
refactor: fix protos
32ce0f1
refactor: fix linter
41be02b
fix: fix old artifact component names in yml
38b318e
fix: no more throwing error on artifact spawn with empty XAEFoamCompo…
ff8fc26
fix: removed old component usage in maps
1f14968
fix: remove more deleted components from map
e2ac3db
fix: ContainerContainer is now part of initial artifact entity, it wo…
01134bb
refactor: fix tests, add loc description to toolshed commands
5cbfff3
Changed node scanner to tell the whole story about current artifact s…
e8f3a39
refactor: remove excessive get of EntityCoordinates in XAE systems, r…
45b0e1c
fix: turned off TriggerInteraction, removed XAESpawn usage and system…
d5aed90
fix: moved SharedXenoArtifactSystem.CancelUnlockingOnGraphStructureCh…
6c19b74
fix: XenoArtifactEffectJunkSpawn moved invalid rolls declaration
cbb88a7
refactor: set default value for XenoArtifactComponent.EffectsTable fo…
5087745
fix: now explosions XAE can be activated for effect
c358542
refactor: added some usedelay so artifactuse would'nt be spammed
922ef41
refactor: artifact-related hints improvements
9b4ad1c
merge with master
c1deec1
fix: artifact no longer spawns fauna into itself
47284c7
merge with master
f0a80de
Merge branch 'master' into 3moArch
74f447d
refactor: xml-doc and minor refactoring
692037a
refactor: xml-doc for Xeno Artifact systems, renaming of questionable…
0b818e2
map for playtest, TODO REVERT THIS
5114279
fix: magboots trigger art from a mile
5f6b3bf
refactor: bind artifact animation to unlocking state
cd3a798
feat: radiation dmg now have reference to source (and artifacts won't…
058c0e6
fix: random artifact node durability now is rolled for max and not cu…
4b4b276
refactor: gas effects are more rare, hand-held artifact effects are f…
2f83500
merge master
e551dc9
feat: animations and sound effects for artifact force-use and failed …
ca6891f
use only 1 file with art use animation
f509ed2
refactor: minor artifact dmg triggers tuning
65727ad
feat: now nodes that CAN be unlocked are displayed with specific colo…
ec338d4
feat: now unlocking stage time is dynamic and it depends on amount of…
eb4a02d
feat: now non-active unlocked nodes return more points if durability …
aed1d51
feat: now puddle/foam effects change description of node
24a4aae
fix: fix test failure
2426348
merge
917d66a
refactor: renamed phasing effect, fixed failing test for elkridge
3ccbc72
merge with master, transfer change to sentient art effect
e2fbb61
minor balance changes
3c88e69
refactor: split rare materials into separate effects
db0de70
feat: unlocked nodes without successor wont listen to unlocks, node u…
6d51b75
Merge branch 'master' into 3moArch
ff618f7
merge with master
378f67f
fix: removed OnIrradiatedEvent duplicate c-tor
368ed9f
revert changes of reach for playtest
b1a0dcf
revert last row empty line removal on reach.yml
d9a5827
fix: fix PVS bug, born from attempt to relay event to art nodes that …
de51d05
merge: merge with master
2e33b68
fix: fix elkridge for tests (again)
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
Content.Client/Xenoarchaeology/Artifact/XenoArtifactSystem.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
using Content.Shared.Xenoarchaeology.Artifact; | ||
|
||
namespace Content.Client.Xenoarchaeology.Artifact; | ||
|
||
/// <inheritdoc/> | ||
public sealed class XenoArtifactSystem : SharedXenoArtifactSystem; |
40 changes: 40 additions & 0 deletions
40
Content.Client/Xenoarchaeology/Equipment/ArtifactAnalyzerSystem.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using Content.Client.Xenoarchaeology.Ui; | ||
using Content.Shared.Xenoarchaeology.Equipment; | ||
using Content.Shared.Xenoarchaeology.Equipment.Components; | ||
using Robust.Client.GameObjects; | ||
|
||
namespace Content.Client.Xenoarchaeology.Equipment; | ||
|
||
/// <inheritdoc /> | ||
public sealed class ArtifactAnalyzerSystem : SharedArtifactAnalyzerSystem | ||
{ | ||
[Dependency] private readonly UserInterfaceSystem _ui = default!; | ||
|
||
/// <inheritdoc/> | ||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<AnalysisConsoleComponent, AfterAutoHandleStateEvent>(OnAnalysisConsoleAfterAutoHandleState); | ||
SubscribeLocalEvent<ArtifactAnalyzerComponent, AfterAutoHandleStateEvent>(OnAnalyzerAfterAutoHandleState); | ||
} | ||
|
||
private void OnAnalysisConsoleAfterAutoHandleState(Entity<AnalysisConsoleComponent> ent, ref AfterAutoHandleStateEvent args) | ||
{ | ||
UpdateBuiIfCanGetAnalysisConsoleUi(ent); | ||
} | ||
|
||
private void OnAnalyzerAfterAutoHandleState(Entity<ArtifactAnalyzerComponent> ent, ref AfterAutoHandleStateEvent args) | ||
{ | ||
if (!TryGetAnalysisConsole(ent, out var analysisConsole)) | ||
return; | ||
|
||
UpdateBuiIfCanGetAnalysisConsoleUi(analysisConsole.Value); | ||
} | ||
|
||
private void UpdateBuiIfCanGetAnalysisConsoleUi(Entity<AnalysisConsoleComponent> analysisConsole) | ||
{ | ||
if (_ui.TryGetOpenUi<AnalysisConsoleBoundUserInterface>(analysisConsole.Owner, ArtifactAnalyzerUiKey.Key, out var bui)) | ||
bui.Update(analysisConsole); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
Content.Client/Xenoarchaeology/Equipment/NodeScannerSystem.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Content.Client.Xenoarchaeology.Ui; | ||
using Content.Shared.Xenoarchaeology.Equipment; | ||
using Content.Shared.Xenoarchaeology.Equipment.Components; | ||
using Robust.Client.GameObjects; | ||
|
||
namespace Content.Client.Xenoarchaeology.Equipment; | ||
|
||
public sealed class NodeScannerSystem : SharedNodeScannerSystem | ||
{ | ||
[Dependency] private readonly UserInterfaceSystem _ui = default!; | ||
|
||
/// <inheritdoc /> | ||
public override void Initialize() | ||
{ | ||
base.Initialize(); | ||
|
||
SubscribeLocalEvent<NodeScannerComponent, AfterAutoHandleStateEvent>(OnAnalysisConsoleAfterAutoHandleState); | ||
} | ||
|
||
protected override void TryOpenUi(Entity<NodeScannerComponent> device, EntityUid actor) | ||
{ | ||
_ui.TryOpenUi(device.Owner, NodeScannerUiKey.Key, actor, true); | ||
} | ||
|
||
private void OnAnalysisConsoleAfterAutoHandleState(Entity<NodeScannerComponent> ent, ref AfterAutoHandleStateEvent args) | ||
{ | ||
if (_ui.TryGetOpenUi<NodeScannerBoundUserInterface>(ent.Owner, NodeScannerUiKey.Key, out var bui)) | ||
bui.Update(ent); | ||
} | ||
} |
52 changes: 15 additions & 37 deletions
52
Content.Client/Xenoarchaeology/Ui/AnalysisConsoleBoundUserInterface.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
145 changes: 78 additions & 67 deletions
145
Content.Client/Xenoarchaeology/Ui/AnalysisConsoleMenu.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,91 @@ | ||
<controls:FancyWindow xmlns="https://spacestation14.io" | ||
<controls:FancyWindow xmlns="https://spacestation14.io" | ||
xmlns:gfx="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client" | ||
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls" | ||
xmlns:customControls="clr-namespace:Content.Client.Administration.UI.CustomControls" | ||
xmlns:ui="clr-namespace:Content.Client.Xenoarchaeology.Ui" | ||
Title="{Loc 'analysis-console-menu-title'}" | ||
MinSize="620 280" | ||
SetSize="620 280"> | ||
MinSize="700 350" | ||
SetSize="980 550"> | ||
<BoxContainer Orientation="Horizontal" HorizontalExpand="True" VerticalExpand="True"> | ||
<BoxContainer Margin="10 10 10 10" MinWidth="150" Orientation="Vertical" | ||
VerticalExpand="True" SizeFlagsStretchRatio="1"> | ||
<BoxContainer Orientation="Vertical" VerticalExpand="True"> | ||
<Button Name="ServerSelectionButton" | ||
Text="{Loc 'analysis-console-server-list-button'}"></Button> | ||
<BoxContainer MinHeight="5"></BoxContainer> | ||
<Button Name="ScanButton" | ||
Text="{Loc 'analysis-console-scan-button'}" | ||
ToolTip="{Loc 'analysis-console-scan-tooltip-info'}"> | ||
</Button> | ||
<BoxContainer MinHeight="5"></BoxContainer> | ||
<Button Name="PrintButton" | ||
Text="{Loc 'analysis-console-print-button'}" | ||
ToolTip="{Loc 'analysis-console-print-tooltip-info'}"> | ||
</Button> | ||
<BoxContainer MinHeight="5"></BoxContainer> | ||
<BoxContainer Orientation="Horizontal"> | ||
<Button Name="UpBiasButton" | ||
Text="{Loc 'analysis-console-bias-up'}" | ||
ToolTip="{Loc 'analysis-console-bias-button-info-up'}" | ||
HorizontalExpand="True" | ||
StyleClasses="OpenRight"> | ||
</Button> | ||
<Button Name="DownBiasButton" | ||
Text="{Loc 'analysis-console-bias-down'}" | ||
ToolTip="{Loc 'analysis-console-bias-button-info-down'}" | ||
HorizontalExpand="True" | ||
StyleClasses="OpenLeft"> | ||
</Button> | ||
<BoxContainer Margin="10 10 10 10" MaxWidth="240" SetWidth="240" Orientation="Vertical" HorizontalExpand="False" VerticalExpand="True"> | ||
<PanelContainer Name="BackPanel" HorizontalAlignment="Center"> | ||
<PanelContainer.PanelOverride> | ||
<gfx:StyleBoxTexture Modulate="#1B1B1E" PatchMarginBottom="10" PatchMarginLeft="10" PatchMarginRight="10" PatchMarginTop="10"/> | ||
</PanelContainer.PanelOverride> | ||
<BoxContainer HorizontalExpand="True" VerticalExpand="True" MinSize="128 128"> | ||
<SpriteView Name="ArtifactView" Scale="4 4" HorizontalAlignment="Center" VerticalAlignment="Center" HorizontalExpand="True" VerticalExpand="True"/> | ||
</BoxContainer> | ||
<BoxContainer MinHeight="15"></BoxContainer> | ||
<Button Name="ExtractButton" | ||
Text="{Loc 'analysis-console-extract-button'}" | ||
ToolTip="{Loc 'analysis-console-extract-button-info'}"> | ||
</Button> | ||
</PanelContainer> | ||
<customControls:HSeparator StyleClasses="HighDivider" Margin="0 15 0 10"/> | ||
<BoxContainer Name="ExtractContainer" Orientation="Vertical" VerticalExpand="True" Visible="False"> | ||
<PanelContainer HorizontalExpand="True" VerticalExpand="True" RectClipContent="True"> | ||
<PanelContainer.PanelOverride> | ||
<gfx:StyleBoxFlat BackgroundColor="#000000FF" /> | ||
</PanelContainer.PanelOverride> | ||
<BoxContainer Margin="10 10 10 5" Orientation="Vertical" HorizontalExpand="True" VerticalExpand="True"> | ||
<ScrollContainer HScrollEnabled="False" HorizontalExpand="True" VerticalExpand="True"> | ||
<BoxContainer HorizontalExpand="True" VerticalExpand="True"> | ||
<RichTextLabel Name="ExtractionResearchLabel" VerticalAlignment="Top" HorizontalAlignment="Left"/> | ||
</BoxContainer> | ||
</ScrollContainer> | ||
<Control MinHeight="5"/> | ||
<RichTextLabel Name="ExtractionSumLabel" VerticalAlignment="Bottom" HorizontalAlignment="Left"/> | ||
</BoxContainer> | ||
</PanelContainer> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Vertical"> | ||
<Label Name="ProgressLabel"></Label> | ||
<ProgressBar | ||
Name="ProgressBar" | ||
MinValue="0" | ||
MaxValue="1" | ||
SetHeight="20"> | ||
</ProgressBar> | ||
<BoxContainer Name="NodeViewContainer" Orientation="Vertical" VerticalExpand="True"> | ||
<ScrollContainer HScrollEnabled="False" HorizontalExpand="True" VerticalExpand="True"> | ||
<BoxContainer Orientation="Vertical" HorizontalExpand="False" VerticalExpand="True"> | ||
<Label Name="NoneSelectedLabel" Text="{Loc 'analysis-console-no-node'}" HorizontalAlignment="Center" VerticalAlignment="Center" VerticalExpand="True" Visible="False"/> | ||
<BoxContainer Name="InfoContainer" Orientation="Vertical" HorizontalExpand="True" VerticalExpand="True"> | ||
<BoxContainer HorizontalExpand="True"> | ||
<RichTextLabel Name="IDLabel" HorizontalExpand="True"/> | ||
<RichTextLabel Name="IDValueLabel" HorizontalAlignment="Right"/> | ||
</BoxContainer> | ||
<BoxContainer HorizontalExpand="True"> | ||
<RichTextLabel Name="ClassLabel" HorizontalExpand="True"/> | ||
<RichTextLabel Name="ClassValueLabel" HorizontalAlignment="Right"/> | ||
</BoxContainer> | ||
<BoxContainer HorizontalExpand="True"> | ||
<RichTextLabel Name="LockedLabel" HorizontalExpand="True"/> | ||
<RichTextLabel Name="LockedValueLabel" HorizontalAlignment="Right"/> | ||
</BoxContainer> | ||
<BoxContainer HorizontalExpand="True"> | ||
<RichTextLabel Name="DurabilityLabel" HorizontalExpand="True"/> | ||
<RichTextLabel Name="DurabilityValueLabel" HorizontalAlignment="Right"/> | ||
</BoxContainer> | ||
<Control MinHeight="20"/> | ||
<RichTextLabel Name="EffectLabel"/> | ||
<RichTextLabel Name="EffectValueLabel" HorizontalExpand="True"/> | ||
<RichTextLabel Name="TriggerLabel"/> | ||
<RichTextLabel Name="TriggerValueLabel" HorizontalExpand="True"/> | ||
</BoxContainer> | ||
</BoxContainer> | ||
</ScrollContainer> | ||
<Control MinHeight="5"/> | ||
<BoxContainer Orientation="Horizontal" HorizontalExpand="True"> | ||
<Button Name="ServerButton" Text="{Loc 'analysis-console-server-list-button'}" StyleClasses="OpenRight" HorizontalExpand="True" MinHeight="35"/> | ||
<Button Name="ExtractButton" Text="{Loc 'analysis-console-extract-button'}" StyleClasses="OpenLeft" HorizontalExpand="True" MinHeight="35"/> | ||
</BoxContainer> | ||
</BoxContainer> | ||
</BoxContainer> | ||
<customControls:VSeparator StyleClasses="LowDivider" /> | ||
<PanelContainer Margin="10 10 10 10" HorizontalExpand="True" SizeFlagsStretchRatio="3"> | ||
<PanelContainer.PanelOverride> | ||
<gfx:StyleBoxFlat BackgroundColor="#000000FF" /> | ||
</PanelContainer.PanelOverride> | ||
<BoxContainer Margin="10 10 10 10" Orientation="Horizontal"> | ||
<BoxContainer Orientation="Vertical" HorizontalExpand="True"> | ||
<BoxContainer VerticalExpand="True"> | ||
<RichTextLabel Name="Information"> </RichTextLabel> | ||
</BoxContainer> | ||
<BoxContainer HorizontalExpand="True" VerticalExpand="True"> | ||
<PanelContainer Margin="10 10 10 10" HorizontalExpand="True" RectClipContent="True"> | ||
<PanelContainer.PanelOverride> | ||
<gfx:StyleBoxFlat BackgroundColor="#000000FF" /> | ||
</PanelContainer.PanelOverride> | ||
<BoxContainer Margin="10 10 10 10" Orientation="Horizontal" HorizontalExpand="True" VerticalExpand="True"> | ||
<ui:XenoArtifactGraphControl Name="GraphControl" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> | ||
<Label Name="NoArtiLabel" | ||
Text="{Loc 'analysis-console-info-no-artifact'}" | ||
HorizontalExpand="True" | ||
VerticalExpand="True" | ||
HorizontalAlignment="Center" | ||
VerticalAlignment="Center"/> | ||
</ui:XenoArtifactGraphControl> | ||
</BoxContainer> | ||
<BoxContainer VerticalExpand="False" Orientation="Vertical" MaxSize="64 64"> | ||
<SpriteView | ||
Name="ArtifactDisplay" | ||
OverrideDirection="South" | ||
VerticalExpand="False" | ||
SetSize="64 64" | ||
MaxSize="64 64" | ||
Scale="2 2"> | ||
</SpriteView> | ||
</BoxContainer> | ||
<BoxContainer VerticalExpand="True"></BoxContainer> | ||
</BoxContainer> | ||
</PanelContainer> | ||
</PanelContainer> | ||
</BoxContainer> | ||
</BoxContainer> | ||
</controls:FancyWindow> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Public methods need docstring.