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

Мелкие правки лаваленда #951

Merged
merged 7 commits into from
Jan 22, 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
6 changes: 5 additions & 1 deletion Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
using Robust.Shared.Random;
using Robust.Shared.Serialization;
using Robust.Shared.Utility;
using Content.Shared.Construction.Steps;
using Content.Shared.Tag;

namespace Content.Shared.Storage.EntitySystems;

Expand All @@ -61,6 +63,7 @@ public abstract class SharedStorageSystem : EntitySystem
[Dependency] protected readonly UseDelaySystem UseDelay = default!;
[Dependency] private readonly EntityWhitelistSystem _whitelistSystem = default!;
[Dependency] private readonly ISharedAdminLogManager _adminLog = default!;
[Dependency] private readonly TagSystem _tag = default!;

private EntityQuery<ItemComponent> _itemQuery;
private EntityQuery<StackComponent> _stackQuery;
Expand Down Expand Up @@ -824,7 +827,8 @@ public bool CanInsert(
}

if (_whitelistSystem.IsWhitelistFail(storageComp.Whitelist, insertEnt) ||
_whitelistSystem.IsBlacklistPass(storageComp.Blacklist, insertEnt))
_whitelistSystem.IsBlacklistPass(storageComp.Blacklist, insertEnt) ||
_tag.HasTag(insertEnt, "ADTStorageBlacklist")) // ADT tweak
{
reason = "comp-storage-invalid-container";
return false;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
ent-ADTJaunter = генератор червоточин
.desc = Инструмент, создающий нестабильные порталы. Может спасти вас, если вы провалились в дыру.

ent-ADTAdvancedOreBag = промышленная сумка для руды
.desc = Улучшенная версия сумки для руды, позволяющая хранить больше материалов. Притягивает руду с чуть большего расстояния.
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ ent-ADTTendrilIcewingWatcher = { ent-ADTTendrilBase }

ent-ADTTendrilMagmawingWatcher = { ent-ADTTendrilBase }
.desc = { ent-ADTTendrilBase.desc }

tendril-destruction-popup = Земля под шипом обваливается!
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ent-ADTCrateNecropolis = суднук некрополя
ent-ADTCrateNecropolis = сундук некрополя
.desc = Сундук, состоящий из костей и мяса. Таит внутри себя неизведанные артефакты.

ent-ADTCrateNecropolisHeart = { ent-ADTCrateNecropolis }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- type: entity
name: advanced ore bag
id: ADTAdvancedOreBag
parent: OreBag
components:
- type: Sprite
sprite: ADT/Objects/Specific/Salvage/advanced_ore_bag.rsi
state: icon
- type: Clothing
sprite: ADT/Objects/Specific/Salvage/advanced_ore_bag.rsi
- type: Storage
grid:
- 0,0,11,5
- type: MagnetPickup
range: 1.5
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
ADTCrateNecropolisRandom:
min: 1
max: 1
- !type:PlaySoundBehavior
sound:
path: /Audio/ADT/SoundGen/destruction_1.ogg
radius: 7
- !type:PopupBehavior
popup: tendril-destruction-popup
popupType: MediumCaution
- type: Physics
bodyType: Static
- type: Transform
Expand Down
14 changes: 8 additions & 6 deletions Resources/Prototypes/ADT/mining_shop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,22 @@
entries:
- id: ClothingBeltSalvageWebbing
price: 500
- id: ClothingOuterHardsuitSalvage
price: 3000
- id: ADTAdvancedOreBag
price: 500
- id: ADTWeaponCutter
price: 500
- id: ADTJaunter
price: 900
- id: ADTClothingOuterArmorMiner
price: 1000
- id: ClothingOuterHardsuitSalvage
price: 3000
- id: ADTClothingOuterArmorMinerHeavy
price: 3600
- id: ClothingOuterArmorMinerLight
price: 4000
- id: ADTWeaponCutter
price: 500
- id: ADTClothingJumpBoots
price: 2500
- id: ADTJaunter
price: 900

- type: miningShopSection
id: Upgrades
Expand Down
4 changes: 4 additions & 0 deletions Resources/Prototypes/ADT/tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -454,5 +454,9 @@
- type: Tag
id: PKA

- type: Tag
id: ADTStorageBlacklist

- type: Tag
id: LavaDungeonBloodMiner

5 changes: 5 additions & 0 deletions Resources/Prototypes/Entities/Clothing/Back/backpacks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
grid:
- 0,0,6,3
maxItemSize: Huge
# ADT Start
blacklist:
tags:
- ADTOreBag
# ADT End
- type: ContainerContainer
containers:
storagebase: !type:Container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@
- type: Tag
tags:
- ADTOreBag
- ADTStorageBlacklist
# ADT tweak end
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
description: A robust bag of holding for salvage billionaires and rich miners alike to carry large amounts of ore. Magnetises any nearby ores when attached to a belt.
components:
- type: MagnetPickup
range: 2
range: 2.5 # ADT tweak: 2 -> 2.5
- type: Sprite
sprite: Objects/Specific/Mining/ore_bag_holding.rsi
state: icon
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
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from ss220, resprite by unlumination",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "equipped-BELT",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
}
]
}
Loading