Skip to content

Commit

Permalink
Merge pull request #7 from Mom-im-localhost/Galaxy_light
Browse files Browse the repository at this point in the history
Добавление галактической лампы с анимацией для декора
  • Loading branch information
SpicyDarkFox authored Jun 23, 2024
2 parents ec49ea5 + 8a8290d commit 9ad4de1
Show file tree
Hide file tree
Showing 16 changed files with 186 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ ent-Floodlight = прожектор
.desc = Столб с установленными на него мощными фонарями.
ent-FloodlightBroken = сломанный прожектор
.desc = Столб с установленными на него мощными фонарями. Он сломан.
ent-LPPStrayderRedLamp = галактическая красная лампа
.desc = Светоизлучающее устройство в форме шара с завораживающей красной галактикой внутри.
ent-LPPStrayderBlueLamp = галактическая синяя лампа
.desc = Светоизлучающее устройство в форме шара с завораживающей синей галактикой внутри.
106 changes: 106 additions & 0 deletions Resources/Prototypes/Entities/Objects/Misc/fluff_lights.yml
Original file line number Diff line number Diff line change
Expand Up @@ -286,3 +286,109 @@
density: 50
mask:
- HighImpassable

- type: entity
parent: BaseItem
id: LPPStrayderRedLamp
name: galaxy red lamp
description: A light-emitting device in the form of a ball with a mesmerizing red galaxy inside.
components:
- type: HandheldLight
addPrefix: true
blinkingBehaviourId: blinking
radiatingBehaviourId: radiating
- type: LightBehaviour
behaviours:
- !type:FadeBehaviour
id: radiating
maxDuration: 2.0
startValue: 3.0
endValue: 2.0
isLooped: true
reverseWhenFinished: true
- !type:PulseBehaviour
id: blinking
interpolate: Nearest
maxDuration: 1.0
minValue: 0.1
maxValue: 2.0
isLooped: true
- type: Sprite
sprite: Objects/Misc/Lights/galaxy_lamp.rsi/red
layers:
- state: icon
- state: red-icon
shader: unshaded
visible: false
map: [ "light" ]
- type: PointLight
enabled: false
radius: 2
energy: 2.5
color: "#9e0505"
netsync: false
- type: Appearance
- type: ToggleableLightVisuals
- type: PowerCellSlot
cellSlotId: cell_slot
- type: ItemSlots
slots:
cell_slot:
name: power-cell-slot-component-slot-name-default
startingItem: PowerCellMedium
- type: ContainerContainer
containers:
cell_slot: !type:ContainerSlot {}

- type: entity
parent: BaseItem
id: LPPStrayderBlueLamp
name: galaxy blue lamp
description: A light-emitting device in the form of a ball with a mesmerizing blue galaxy inside.
components:
- type: HandheldLight
addPrefix: true
blinkingBehaviourId: blinking
radiatingBehaviourId: radiating
- type: LightBehaviour
behaviours:
- !type:FadeBehaviour
id: radiating
maxDuration: 2.0
startValue: 3.0
endValue: 2.0
isLooped: true
reverseWhenFinished: true
- !type:PulseBehaviour
id: blinking
interpolate: Nearest
maxDuration: 1.0
minValue: 0.1
maxValue: 2.0
isLooped: true
- type: Sprite
sprite: Objects/Misc/Lights/galaxy_lamp.rsi/blue
layers:
- state: icon
- state: blue-icon
shader: unshaded
visible: false
map: [ "light" ]
- type: PointLight
enabled: false
radius: 2
energy: 2.5
color: "#012482"
netsync: false
- type: Appearance
- type: ToggleableLightVisuals
- type: PowerCellSlot
cellSlotId: cell_slot
- type: ItemSlots
slots:
cell_slot:
name: power-cell-slot-component-slot-name-default
startingItem: PowerCellMedium
- type: ContainerContainer
containers:
cell_slot: !type:ContainerSlot {}
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,38 @@
{
"version": 1,
"size":
{
"x": 32,
"y": 32
},
"license": "CC-BY-SA-4.0",
"copyright": "Draw by angens_nofori for Lost Paradise Project",
"states":
[
{
"name": "icon"
},
{
"name": "off-inhand-right",
"directions": 4
},
{
"name": "off-inhand-left",
"directions": 4
},
{
"name": "blue-icon",
"delays":[
[0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5]
]
},
{
"name": "on-inhand-right",
"directions": 4
},
{
"name": "on-inhand-left",
"directions": 4
}
]
}
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.
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,38 @@
{
"version": 1,
"size":
{
"x": 32,
"y": 32
},
"license": "CC-BY-SA-4.0",
"copyright": "Draw by angens_nofori for Lost Paradise Project",
"states":
[
{
"name": "icon"
},
{
"name": "off-inhand-right",
"directions": 4
},
{
"name": "off-inhand-left",
"directions": 4
},
{
"name": "red-icon",
"delays":[
[0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5]
]
},
{
"name": "on-inhand-right",
"directions": 4
},
{
"name": "on-inhand-left",
"directions": 4
}
]
}
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9ad4de1

Please sign in to comment.