diff --git a/Resources/Prototypes/_White/Entities/Structures/Storage/Barrel.yml b/Resources/Prototypes/_White/Entities/Structures/Storage/Barrel.yml new file mode 100644 index 0000000000..3ce92ea2de --- /dev/null +++ b/Resources/Prototypes/_White/Entities/Structures/Storage/Barrel.yml @@ -0,0 +1,74 @@ +- type: entity + id: Barrel + name: Бочка + description: Большой обьект для хранения. + parent: BaseStructureDynamic + components: + - type: StaticPrice + price: 500 + - type: Anchorable + - type: InteractionOutline + - type: Damageable + damageContainer: StructuralInorganic + damageModifierSet: Wood + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 150 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - trigger: + !type:DamageTrigger + damage: 100 + behaviors: + - !type:EmptyAllContainersBehaviour + - !type:SpawnEntitiesBehavior + spawn: + MaterialWoodPlank1: + min: 3 + max: 5 + - !type:DoActsBehavior + acts: [ "Destruction" ] + - type: Climbable + - type: Sprite + noRot: true + sprite: /Textures/White/Objects/Storage/Barrel.rsi + layers: + - state: Barrel + - state: Barrel-top + map: [ top ] + visible: true + - type: Appearance + - type: GenericVisualizer + visuals: + enum.StorageVisuals.Open: + top: + True: { visible: false } + False: { visible: true } + - type: Storage + grid: + - 0,0,9,5 + storageOpenSound: /Audio/Effects/closetopen.ogg + storageCloseSound: /Audio/Effects/closetclose.ogg + - type: UserInterface + interfaces: + - key: enum.StorageUiKey.Key + type: StorageBoundUserInterface + - type: ContainerContainer + containers: + storagebase: !type:Container + ents: [ ] + - type: Fixtures + fixtures: + fix1: + shape: + !type:PhysShapeCircle + radius: 0.3 + # very not dense to make it easy to pull + density: 20 + mask: + - MachineMask + layer: + - MachineLayer diff --git a/Resources/Prototypes/_White/Entities/Structures/Storage/Barrel_Beer.yml b/Resources/Prototypes/_White/Entities/Structures/Storage/Barrel_Beer.yml new file mode 100644 index 0000000000..5774f5e45b --- /dev/null +++ b/Resources/Prototypes/_White/Entities/Structures/Storage/Barrel_Beer.yml @@ -0,0 +1,30 @@ +- type: entity + id: Barrel_Beer_Empty + parent: [StorageTank, StructureWheeled] + name: бочка пива + description: Изготовлено древними дворфами + suffix: Empty + components: + - type: StaticPrice + price: 750 + - type: Sprite + sprite: /Textures/White/Objects/Storage/Barrel_Beer.rsi + layers: + - state: Barrel_Beer + - type: Appearance + - type: ExaminableSolution + solution: tank + - type: ReagentTank + tankType: Fuel + +- type: entity + id: Barrel_Beer_Full + parent: Barrel_Beer_Empty + suffix: Full + components: + - type: SolutionContainerManager + solutions: + tank: + reagents: + - ReagentId: Beer + Quantity: 1500 diff --git a/Resources/Textures/White/Objects/Storage/Barrel.rsi/Barrel-top.png b/Resources/Textures/White/Objects/Storage/Barrel.rsi/Barrel-top.png new file mode 100644 index 0000000000..4bab4f8bdd Binary files /dev/null and b/Resources/Textures/White/Objects/Storage/Barrel.rsi/Barrel-top.png differ diff --git a/Resources/Textures/White/Objects/Storage/Barrel.rsi/Barrel.png b/Resources/Textures/White/Objects/Storage/Barrel.rsi/Barrel.png new file mode 100644 index 0000000000..265af3c911 Binary files /dev/null and b/Resources/Textures/White/Objects/Storage/Barrel.rsi/Barrel.png differ diff --git a/Resources/Textures/White/Objects/Storage/Barrel.rsi/meta.json b/Resources/Textures/White/Objects/Storage/Barrel.rsi/meta.json new file mode 100644 index 0000000000..04e4286700 --- /dev/null +++ b/Resources/Textures/White/Objects/Storage/Barrel.rsi/meta.json @@ -0,0 +1,17 @@ +{ + "version": 1, + "license": "ГООООООООООЛ", + "copyright": "тебя ебать не должно", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "Barrel" + }, + { + "name": "Barrel-top" + } + ] +} diff --git a/Resources/Textures/White/Objects/Storage/Barrel_Beer.rsi/Barrel_Beer.png b/Resources/Textures/White/Objects/Storage/Barrel_Beer.rsi/Barrel_Beer.png new file mode 100644 index 0000000000..698c050abc Binary files /dev/null and b/Resources/Textures/White/Objects/Storage/Barrel_Beer.rsi/Barrel_Beer.png differ diff --git a/Resources/Textures/White/Objects/Storage/Barrel_Beer.rsi/meta.json b/Resources/Textures/White/Objects/Storage/Barrel_Beer.rsi/meta.json new file mode 100644 index 0000000000..1d27e433c5 --- /dev/null +++ b/Resources/Textures/White/Objects/Storage/Barrel_Beer.rsi/meta.json @@ -0,0 +1,14 @@ +{ + "version": 1, + "license": "ГООООООООООЛ", + "copyright": "тебя ебать не должно", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "Barrel_Beer" + } + ] +} \ No newline at end of file