diff --git a/Resources/Locale/ru-RU/_Cats/prototypes/Entities/Structures/Floor/floor.ftl b/Resources/Locale/ru-RU/_Cats/prototypes/Entities/Structures/Floor/floor.ftl new file mode 100644 index 00000000000..0499bf26e38 --- /dev/null +++ b/Resources/Locale/ru-RU/_Cats/prototypes/Entities/Structures/Floor/floor.ftl @@ -0,0 +1,2 @@ +ent-DiscoFloor = диско пол + .desc = Время зажигать! \ No newline at end of file diff --git a/Resources/Prototypes/_SpaceCats/Entities/Structures/Floor/disco_floor.yml b/Resources/Prototypes/_SpaceCats/Entities/Structures/Floor/disco_floor.yml new file mode 100644 index 00000000000..23a896ef584 --- /dev/null +++ b/Resources/Prototypes/_SpaceCats/Entities/Structures/Floor/disco_floor.yml @@ -0,0 +1,80 @@ +- type: entity + id: DiscoFloor + name: disco floor + description: ♫ It's time to boogy! ♫ + placement: + mode: SnapgridCenter + components: + - type: Sprite + sprite: _SpaceCats/Structures/Floor/disco_floor.rsi + drawdepth: FloorTiles + layers: + - state: off + - state: powered + shader: unshaded + map: ["enum.PowerDeviceVisualLayers.Powered"] + - type: GenericVisualizer + visuals: + enum.PowerDeviceVisuals.Powered: + enum.PowerDeviceVisualLayers.Powered: + True: {visible: true} + False: {visible: false} + - type: PowerSwitch + - type: Physics + bodyType: Static + canCollide: false + - type: Clickable + - type: Fixtures + - type: Damageable + damageContainer: Inorganic + damageModifierSet: Metallic + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 300 + behaviors: + - !type:SpawnEntitiesBehavior + spawn: + SheetSteel1: + min: 1 + max: 2 + ShardGlass: + min: 2 + max: 4 + LightTubeBroken: + min: 2 + max: 3 + - !type:DoActsBehavior + acts: [ "Destruction" ] + - type: PointLight + enabled: false + - type: ApcPowerReceiver + - type: ExtensionCableReceiver + - type: DeviceNetwork + deviceNetId: Wireless + receiveFrequencyId: SmartLight + - type: WirelessNetworkConnection + range: 200 + - type: DeviceLinkSink + ports: + - On + - Off + - Toggle + - type: Construction + graph: DiscoFloor + node: discoSquare + - type: Appearance + - type: PoweredLightVisuals + blinkingSound: + path: "/Audio/Machines/light_tube_on.ogg" + - type: Transform + anchored: true + - type: Tag + tags: + - Catwalk + - type: FootstepModifier + footstepSoundCollection: + collection: FootstepWood + params: + volume: 3 \ No newline at end of file diff --git a/Resources/Prototypes/_SpaceCats/Recipes/Construction/Graph/structures/disco_floor.yml b/Resources/Prototypes/_SpaceCats/Recipes/Construction/Graph/structures/disco_floor.yml new file mode 100644 index 00000000000..d4aa651ee15 --- /dev/null +++ b/Resources/Prototypes/_SpaceCats/Recipes/Construction/Graph/structures/disco_floor.yml @@ -0,0 +1,22 @@ +- type: constructionGraph + id: DiscoFloor + start: start + graph: + - node: start + actions: + - !type:DestroyEntity {} + edges: + - to: discoSquare + steps: + - material: Steel + amount: 4 + doAfter: 1 + - material: Glass + amount: 4 + doAfter: 1 + - material: Cable + amount: 5 + doAfter: 1 + + - node: discoSquare + entity: DiscoFloor \ No newline at end of file diff --git a/Resources/Prototypes/_SpaceCats/Recipes/Construction/structures.yml b/Resources/Prototypes/_SpaceCats/Recipes/Construction/structures.yml new file mode 100644 index 00000000000..3c868d6e4e9 --- /dev/null +++ b/Resources/Prototypes/_SpaceCats/Recipes/Construction/structures.yml @@ -0,0 +1,16 @@ +- type: construction + name: disco floor + id: DiscoFloor + graph: DiscoFloor + startNode: start + targetNode: discoSquare + category: construction-category-tiles + description: Construct multi-colored flooring to light up the dance floor. + icon: + sprite: _SpaceCats/Structures/Floor/disco_floor.rsi + state: off + objectType: Structure + placementMode: SnapgridCenter + canBuildInImpassable: false + conditions: + - !type:TileNotBlocked \ No newline at end of file diff --git a/Resources/Textures/_SpaceCats/Structures/Floor/disco_floor.rsi/meta.json b/Resources/Textures/_SpaceCats/Structures/Floor/disco_floor.rsi/meta.json new file mode 100644 index 00000000000..5f9b5cf35b7 --- /dev/null +++ b/Resources/Textures/_SpaceCats/Structures/Floor/disco_floor.rsi/meta.json @@ -0,0 +1,45 @@ +{ + "version": 1, + "license": "CC-BY-SA-3.0", + "copyright": "Taken from https://github.com/tgstation/tgstation/tree/f116442e34fe3e941a1df474bb57bb410dd177a3/icons/turf and modified by ps3moira", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "off" + }, + { + "name": "powered", + "delays": [ + [ + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4, + 0.4 + ] + ] + } + ] + } diff --git a/Resources/Textures/_SpaceCats/Structures/Floor/disco_floor.rsi/off.png b/Resources/Textures/_SpaceCats/Structures/Floor/disco_floor.rsi/off.png new file mode 100644 index 00000000000..d46872016e6 Binary files /dev/null and b/Resources/Textures/_SpaceCats/Structures/Floor/disco_floor.rsi/off.png differ diff --git a/Resources/Textures/_SpaceCats/Structures/Floor/disco_floor.rsi/powered.png b/Resources/Textures/_SpaceCats/Structures/Floor/disco_floor.rsi/powered.png new file mode 100644 index 00000000000..b896966a612 Binary files /dev/null and b/Resources/Textures/_SpaceCats/Structures/Floor/disco_floor.rsi/powered.png differ