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

я надеюсь в этот раз ничего не сломается #435

Merged
merged 3 commits into from
Feb 28, 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
11 changes: 5 additions & 6 deletions Content.Client/Chemistry/UI/ReagentDispenserWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Linq;
using Content.Client.Stylesheets;
using Content.Shared.Chemistry;
using Content.Shared.Chemistry.Reagent;
Expand Down Expand Up @@ -52,7 +51,7 @@ public ReagentDispenserWindow()
/// Update the button grid of reagents which can be dispensed.
/// </summary>
/// <param name="inventory">Reagents which can be dispensed by this dispenser</param>
public void UpdateReagentsList(List<KeyValuePair<string, KeyValuePair<string,string>>> inventory)
public void UpdateReagentsList(List<KeyValuePair<string, KeyValuePair<string, string>>> inventory)
{
if (ChemicalList == null)
return;
Expand Down Expand Up @@ -134,7 +133,7 @@ public void UpdateContainerInfo(ReagentDispenserBoundUserInterfaceState state)

if (state.OutputContainer is null)
{
ContainerInfo.Children.Add(new Label {Text = Loc.GetString("reagent-dispenser-window-no-container-loaded-text") });
ContainerInfo.Children.Add(new Label { Text = Loc.GetString("reagent-dispenser-window-no-container-loaded-text") });
return;
}

Expand All @@ -159,11 +158,11 @@ public void UpdateContainerInfo(ReagentDispenserBoundUserInterfaceState state)
? p.LocalizedName
: Loc.GetString("reagent-dispenser-window-reagent-name-not-found-text");

var nameLabel = new Label {Text = $"{localizedName}: "};
var nameLabel = new Label { Text = $"{localizedName}: " };
var quantityLabel = new Label
{
Text = Loc.GetString("reagent-dispenser-window-quantity-label-text", ("quantity", quantity)),
StyleClasses = {StyleNano.StyleClassLabelSecondaryColor},
StyleClasses = { StyleNano.StyleClassLabelSecondaryColor },
};

ContainerInfo.Children.Add(new BoxContainer
Expand Down Expand Up @@ -202,4 +201,4 @@ public EjectJugButton(string reagentId)
Text = "⏏";
}
}
}
}
2 changes: 1 addition & 1 deletion Content.Shared/Medical/DefibrillatorComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public sealed partial class DefibrillatorComponent : Component
/// The minimum time between zaps
/// </summary>
[DataField("zapDelay"), ViewVariables(VVAccess.ReadWrite)]
public TimeSpan ZapDelay = TimeSpan.FromSeconds(5);
public TimeSpan ZapDelay = TimeSpan.FromSeconds(3);

/// <summary>
/// How much damage is healed from getting zapped.
Expand Down
10 changes: 10 additions & 0 deletions Resources/Changelog/ChangelogADT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1348,3 +1348,13 @@ Entries:
- {message: Фикс невозможности засунуть среднюю батарейку в зарядник, type: Tweak}
id: 55694 #костыль отображения в Обновлениях
time: '2024-02-27T20:20:00.0000000+00:00'

- author: JustKekc
changes:
- {message: Количество кувшинов с химикатами в ХимкоМате увеличилось вдвое., type: Tweak}
- {message: Изменения в дефибрилляторах; Обычный лечит 20 удушья вместо 40. Высоковольтный теперь за удар лечит 45 удушья и наносит 25 электрических повреждений. Мобильный дефибриллятор более не требует заряда однако время между ударами слегка повышено., type: Tweak}
- {message: Изменение иконки патологоанатома., type: Tweak}
- {message: Исправление недочёта на текстурке чёрной одежды патологоанатома., type: Fix}
- {message: Финансовое положение патологоанатома исправлено; теперь он спавнится с 500 кредитами в сумке как и остальные роли., type: Fix}
id: 55695 #костыль отображения в Обновлениях
time: '2024-02-27T22:08:00.0000000+00:00'
2 changes: 1 addition & 1 deletion Resources/Locale/ru-RU/ADT/Objects/specific/medstuff.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ ent-ADTCratePatchPack = набор пластырей
.suffix = { "" }

ent-ADTMobileDefibrillator = мобильный дефибриллятор
.desc = Облегченная версия дефибрилятора, которую можно закрепить на ваш пояс, так же как и на медицинский. Это чудо даже в карман поместится!
.desc = Продвинутый переносной дефибриллятор. Помещается в карманы, можно закрепить на врачебный и обычный пояс. Обладает батареей, которая восстанавливает короткое время после удара током.
.suffix = { "" }

ent-ADTSmallSyringe = небольшой шприц
Expand Down
3 changes: 3 additions & 0 deletions Resources/Prototypes/ADT/Entities/Clothing/Back/backpacks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@
- id: BoxSurvivalMedical
- id: BodyBag_Folded
- id: ADTFootTag
- id: SpaceCash500

- type: entity
noSpawn: true
Expand All @@ -209,6 +210,7 @@
- id: BoxSurvivalMedical
- id: BodyBag_Folded
- id: ADTFootTag
- id: SpaceCash500

- type: entity
noSpawn: true
Expand All @@ -220,6 +222,7 @@
- id: BoxSurvivalMedical
- id: BodyBag_Folded
- id: ADTFootTag
- id: SpaceCash500

# медицинские штучки-брючки
- type: entity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
id: ADTMobileDefibrillator
name: mobile defibrillator
description: Mobile version of defibrillator. Can be fixed on your belt, a medical one and even fits in pockets! #somehow
parent: [ BaseDefibrillator, PowerCellSlotSmallItem ]
parent: BaseDefibrillator
components:
- type: Item
size: Small
Expand All @@ -47,11 +47,10 @@
types:
Asphyxiation: -20
doAfterDuration: 1.5
zapDelay: 6
chargeSound:
path: /Audio/ADT/Items/Medical/Defibs/mob-defib_charge.ogg
- type: MultiHandedItem
- type: PowerCellDraw
useRate: 333 #~1 использование на маленькой
- type: StealTarget
stealGroup: MobileDefibrillator

Expand Down Expand Up @@ -83,9 +82,9 @@
- type: Defibrillator
zapHeal:
types:
Asphyxiation: -25
Asphyxiation: -45
doAfterDuration: 2
zapDelay: 3
zapDelay: 2
powerOnSound:
path: /Audio/ADT/Items/Medical/Defibs/highvolt-defib_safety_on.ogg
powerOffSound:
Expand All @@ -94,7 +93,7 @@
path: /Audio/ADT/Items/Medical/Defibs/highvolt-defib_charge.ogg
zapSound:
path: /Audio/ADT/Items/Medical/Defibs/highvolt-defib_zap.ogg
zapDamage: 30
zapDamage: 25
writheDuration: 10

- type: entity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,53 +2,53 @@
id: ChemVendInventory
startingInventory:
Jug: 4
JugAluminium: 2
JugCarbon: 2
JugChlorine: 2
JugCopper: 2
JugEthanol: 2
JugFluorine: 2
JugHydrogen: 2
JugIodine: 2
JugIron: 2
JugLithium: 2
JugMercury: 2
JugNitrogen: 2
JugOxygen: 2
JugPhosphorus: 2
JugPotassium: 2
JugRadium: 2
JugSilicon: 2
JugSodium: 2
JugSugar: 2
JugSulfur: 2
JugAluminium: 4
JugCarbon: 4
JugChlorine: 4
JugCopper: 4
JugEthanol: 4
JugFluorine: 4
JugHydrogen: 4
JugIodine: 4
JugIron: 4
JugLithium: 4
JugMercury: 4
JugNitrogen: 4
JugOxygen: 4
JugPhosphorus: 4
JugPotassium: 4
JugRadium: 4
JugSilicon: 4
JugSodium: 4
JugSugar: 4
JugSulfur: 4
emaggedInventory:
ToxinChemistryBottle: 1

- type: vendingMachineInventory
id: ChemVendInventorySyndicate
startingInventory:
Jug: 4
JugAluminium: 2
JugCarbon: 2
JugChlorine: 2
JugCopper: 2
JugEthanol: 2
JugFluorine: 2
JugHydrogen: 2
JugIodine: 2
JugIron: 2
JugLithium: 2
JugMercury: 2
JugNitrogen: 2
JugOxygen: 2
JugPhosphorus: 2
JugPotassium: 2
JugRadium: 2
JugSilicon: 2
JugSodium: 2
JugSugar: 2
JugSulfur: 2
JugAluminium: 4
JugCarbon: 4
JugChlorine: 4
JugCopper: 4
JugEthanol: 4
JugFluorine: 4
JugHydrogen: 4
JugIodine: 4
JugIron: 4
JugLithium: 4
JugMercury: 4
JugNitrogen: 4
JugOxygen: 4
JugPhosphorus: 4
JugPotassium: 4
JugRadium: 4
JugSilicon: 4
JugSodium: 4
JugSugar: 4
JugSulfur: 4
JugWeldingFuel: 1
emaggedInventory:
PaxChemistryBottle: 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
- type: Defibrillator
zapHeal:
types:
Asphyxiation: -40
Asphyxiation: -20
- type: DoAfter
- type: UseDelay
- type: StaticPrice
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.
Loading