Skip to content
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

a lot of fixes #375

Merged
merged 3 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Content.Client/ADT/Economy/UI/AtmWindow.xaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<DefaultWindow xmlns="https://spacestation14.io"
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
Title="ATM"
Title="{Loc 'atm-ui-name'}"
SetSize="400 220"
Resizable="False">

<BoxContainer Name="AuthorizationPage" HorizontalExpand="True" VerticalExpand="True">
<BoxContainer HorizontalAlignment="Center" HorizontalExpand="True" VerticalAlignment="Center" Orientation="Vertical" MinSize="325 160">
<Label Text="Nanotrasen ATM"/>
<Label Text="{Loc 'atm-ui-nanotrasen-atm'}"/>
<Label Name="BalanceLabel" Visible="False"/>
<controls:HighDivider Name="Divider" Visible="False"/>
<Label Name="StatusLabel"/>
Expand Down
2 changes: 1 addition & 1 deletion Content.Client/ADT/Economy/UI/AtmWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public AtmWindow()

public void UpdateState(BoundUserInterfaceState state)
{
if(state is not ATMBuiState cast) return;
if (state is not ATMBuiState cast) return;

if (!cast.HasCard)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ public sealed partial class HyperNobliumProductionReaction : IGasReactionEffect
{
public ReactionResult React(GasMixture mixture, IGasMixtureHolder? holder, AtmosphereSystem atmosphereSystem, float heatScale)
{
var initialHyperNoblium = mixture.GetMoles(Gas.HyperNoblium);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ура

if (initialHyperNoblium >= 5.0f && mixture.Temperature > 20f)
return ReactionResult.NoReaction;

var initialNitrogen = mixture.GetMoles(Gas.Nitrogen);
var initialTritium = mixture.GetMoles(Gas.Tritium);
var initialBZ = mixture.GetMoles(Gas.BZ);
Expand Down
2 changes: 2 additions & 0 deletions Resources/Locale/ru-RU/ADT/economy/atm.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ atm-ui-enter-pin = Введите PIN
atm-ui-select-withdraw-amount = Выберите сумму вывода.
atm-ui-insert-card = Вставьте карту.
atm-ui-balance = Баланс: { $balance }$
atm-ui-nanotrasen-atm = Nanotrasen ATM 1.5
atm-ui-name = Банкомат
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ent-ADTDoorRemoteFirefight = пульт от пожарных шлюзов
.desc = Гаджет, который может открывать и закрывать пожарные шлюзы дистанционно.
5 changes: 5 additions & 0 deletions Resources/Prototypes/ADT/Access/engineering.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- type: accessGroup
id: ADTFireFight
tags:
- Engineering
- Atmospherics
2 changes: 1 addition & 1 deletion Resources/Prototypes/ADT/Atmospherics/reactions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
id: ZaukerProduction
priority: 9
minimumTemperature: 50000
maximumTemperature: 75000
maximumTemperature: 100000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ты точно не ошибся ноликом? Просто уточняю.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

нет не ошибся он

minimumRequirements:
- 0 # oxygen
- 0 # nitrogen
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
programName: bank-program-name
icon:
sprite: ADT/Structures/Machines/atm.rsi
state: off
state: atm_off
- type: BankCartridge
16 changes: 16 additions & 0 deletions Resources/Prototypes/ADT/Entities/Objects/Devices/door_remote.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- type: entity
parent: DoorRemoteDefault
id: ADTDoorRemoteFirefight
name: fire-fighting door remote
description: A gadget which can open and bolt FireDoors remotely.
components:
- type: Sprite
layers:
- state: door_remotebase
- state: door_remotelightscolour
color: "#ff9900"
- state: door_remotescreencolour
color: "#e02020"
- type: Access
groups:
- ADTFireFight
7 changes: 3 additions & 4 deletions Resources/Prototypes/ADT/Entities/Structures/Machines/atm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,18 @@
- Wallmount
components:
- type: WallMount
arc: 360
- type: Transform
anchored: true
- type: Clickable
- type: InteractionOutline
- type: Sprite
sprite: ADT/Structures/Machines/atm.rsi
snapCardinals: true
snapCardinals: false
state:
layers:
- state: "off"
- state: "atm_off"
map: ["enum.ATMVisualLayers.Base"]
- state: "on"
- state: "atm"
map: ["enum.ATMVisualLayers.BaseUnshaded"]
shader: unshaded
- type: ATM
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
- type: entity
parent: GasPipeHalf
id: ADTGasPipeHalf
categories: [ HideSpawnMenu ]
suffix: Half, ADT
components:
- type: Transform
Expand All @@ -14,6 +15,7 @@
- type: entity
parent: GasPipeStraight
id: ADTGasPipeStraight
categories: [ HideSpawnMenu ]
suffix: Straight, ADT
components:
- type: Transform
Expand All @@ -27,6 +29,7 @@
- type: entity
parent: GasPipeBend
id: ADTGasPipeBend
categories: [ HideSpawnMenu ]
suffix: Bend, ADT
components:
- type: Transform
Expand All @@ -40,6 +43,7 @@
- type: entity
parent: GasPipeTJunction
id: ADTGasPipeTJunction
categories: [ HideSpawnMenu ]
suffix: TJunction, ADT
components:
- type: Transform
Expand All @@ -53,6 +57,7 @@
- type: entity
parent: GasPipeFourway
id: ADTGasPipeFourway
categories: [ HideSpawnMenu ]
suffix: Fourway, ADT
components:
- type: Transform
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
- type: entity
parent: DisposalPipe
id: ADTDisposalPipe
categories: [ HideSpawnMenu ]
components:
- type: Transform
anchored: false
Expand All @@ -13,6 +14,7 @@
- type: entity
parent: DisposalTagger
id: ADTDisposalTagger
categories: [ HideSpawnMenu ]
components:
- type: Transform
anchored: false
Expand All @@ -25,6 +27,7 @@
- type: entity
parent: DisposalTrunk
id: ADTDisposalTrunk
categories: [ HideSpawnMenu ]
components:
- type: Transform
anchored: false
Expand All @@ -37,6 +40,7 @@
- type: entity
parent: DisposalRouter
id: ADTDisposalRouter
categories: [ HideSpawnMenu ]
components:
- type: Transform
anchored: false
Expand All @@ -49,6 +53,7 @@
- type: entity
parent: DisposalRouterFlipped
id: ADTDisposalRouterFlipped
categories: [ HideSpawnMenu ]
components:
- type: Transform
anchored: false
Expand All @@ -61,6 +66,7 @@
- type: entity
parent: DisposalJunction
id: ADTDisposalJunction
categories: [ HideSpawnMenu ]
components:
- type: Transform
anchored: false
Expand All @@ -73,6 +79,7 @@
- type: entity
parent: DisposalJunctionFlipped
id: ADTDisposalJunctionFlipped
categories: [ HideSpawnMenu ]
components:
- type: Transform
anchored: false
Expand All @@ -85,6 +92,7 @@
- type: entity
parent: DisposalYJunction
id: ADTDisposalYJunction
categories: [ HideSpawnMenu ]
components:
- type: Transform
anchored: false
Expand All @@ -97,6 +105,7 @@
- type: entity
parent: DisposalBend
id: ADTDisposalBend
categories: [ HideSpawnMenu ]
components:
- type: Transform
anchored: false
Expand All @@ -109,6 +118,7 @@
- type: entity
parent: DisposalSignalRouter
id: ADTDisposalSignalRouter
categories: [ HideSpawnMenu ]
components:
- type: Transform
anchored: false
Expand All @@ -121,6 +131,7 @@
- type: entity
parent: DisposalSignalRouterFlipped
id: ADTDisposalSignalRouterFlipped
categories: [ HideSpawnMenu ]
components:
- type: Transform
anchored: false
Expand Down
2 changes: 2 additions & 0 deletions Resources/Prototypes/Catalog/Fills/Lockers/engineer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
- id: GasAnalyzer
- id: MedkitOxygenFilled
- id: HolofanProjector
- id: ADTDoorRemoteFirefight # ADT-Atmos-Remote
# ADT-RPD-Start
- id: ADTRPD
- id: ADTRPDAmmo
Expand All @@ -115,6 +116,7 @@
- id: GasAnalyzer
- id: MedkitOxygenFilled
- id: HolofanProjector
- id: ADTDoorRemoteFirefight # ADT-Atmos-Remote
# ADT-RPD-Start
- id: ADTRPD
- id: ADTRPDAmmo
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
arc: 360
- type: StaticPrice
price: 150
- type: DoorBolt # ADT-Atmos-Remote
- type: AccessReader
access: [ [ "Engineering" ] ]
- type: PryUnpowered
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Structures/Walls/walls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: CanBuildWindowOnTopRPD # ADT-RPD
- type: CanBuildWallOnTopRPD # ADT-RPD
- type: IconSmooth
key: bricks
base: brick
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 48 additions & 4 deletions Resources/Textures/ADT/Structures/Machines/atm.rsi/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,57 @@
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "Taken from https://github.com/Baystation12/Baystation12 at commit 0c2c999f74f2998912ae009223df83cbd987aa5d",
"copyright": "Taken from https://github.com/ParadiseSS13/Paradise/blob/master/icons/obj/terminals.dmi",
"states": [
{
"name": "off"
"name": "atm_off",
"directions": 4
},
{
"name": "on"
"name": "atm",
"directions": 4,
"delays": [
[
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3
],
[
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3
],
[
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3
],
[
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3,
0.3
]
]
}
]
]
}
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Textures/Clothing/Uniforms/Jumpskirt/color.rsi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/c838ba21dae97db345e0113f99596decd1d66039 and modified by Flareguy for Space Station 14",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/c838ba21dae97db345e0113f99596decd1d66039 and modified by Flareguy for Space Station 14 + New style changes by discord:prazat",
"size": {
"x": 32,
"y": 32
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Textures/Clothing/Uniforms/Jumpsuit/color.rsi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/c838ba21dae97db345e0113f99596decd1d66039 and modified by Flareguy for Space Station 14",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/c838ba21dae97db345e0113f99596decd1d66039 and modified by Flareguy for Space Station 14 + New style changes by discord:prazat",
"size": {
"x": 32,
"y": 32
Expand Down
Loading