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

[FIX] Исправляем #930

Merged
merged 5 commits into from
Jan 6, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ protected override void UpdateState(BoundUserInterfaceState state)
{
base.UpdateState(state);

var system = EntMan.System<VendingMachineSystem>();

if (state is not VendingMachineInterfaceState newState)
return;

_cachedInventory = newState.Inventory;
_cachedInventory = system.GetAllInventory(Owner);

_menu?.Populate(Owner, _cachedInventory, newState.PriceMultiplier, newState.Credits); //ADT-Economy-Tweak
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ ent-ADTClothingUniformAiryBlackSuit = черный воздушный костю
.desc = Готично, строго, сексуально. Для тех кто любит показывать свой красивый лифчик.

ent-ADTClothingJumpsuitHopAlt = деловой костюм главы персонала
.desc = Качетсвенно сделанная униформа для тех глав персонала, что могут себе такую позволить.
.desc = Качественно сделанная униформа для тех глав персонала, что могут себе такую позволить.
ent-ADTClothingJumpsuitSecOffMogesBrown = костюм офицера СБ с Могеса
.desc = Не совсем формальный, но очень подходящий для трофиков костюм офицера, служившего в филиале Нанотрейзен на планете Могес. Заслужить право носить такой может только ветеран СБ. Стоять, СБ Могеса!
ent-ADTClothingJumpsuitSecOffMogesBlue = костюм офицера СБ с Могеса
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,18 @@
reagents:
- ReagentId: EnergyDrink
Quantity: 30
- type: Appearance
- type: GenericVisualizer
visuals:
enum.OpenableVisuals.Opened:
enum.OpenableVisuals.Layer:
True: {state: "icon-open"}
False: {state: "icon"}
- type: Sprite
sprite: ADT/Objects/Consumable/Drinks/nostop.rsi
layers:
- state: icon
map: ["enum.OpenableVisuals.Layer"]

- type: entity
id: ADTDrinkBeerCanPack
Expand Down
Loading