Light replacer (#3701)

* Add graphics

* Barebone light replacer

* Now light replacer stores bulbs

* More interactions

* Added text messages

* Better light refil

* Add light replacer to locker and lathe

* Added sound

* Fixed ignore error

* Better inhand

* You don't like this commas?

* Fixed typo

* Deferring spawning

* Moved interaction logic to system

Co-authored-by: Alex Evgrashin <evgrashin.adl@gmail.com>
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
Alex Evgrashin
2021-04-08 16:28:06 +04:00
committed by GitHub
parent c7482140e1
commit cfe427eb8c
14 changed files with 335 additions and 9 deletions

View File

@@ -0,0 +1,14 @@
### Interaction Messages
# Shown when player tries to replace light, but there is no lighs left
comp-light-replacer-missing-light = No lights left in {$light-replacer}.
# Shown when player inserts light bulb inside light replacer
comp-light-replacer-insert-light = You insert {$bulb} into {$light-replacer}.
# Shown when player tries to insert in light replacer brolen light bulb
comp-light-replacer-insert-broken-light = You can't insert broken lights!
# Shown when player refill light from light box
comp-light-replacer-refill-from-storage = You refill {$light-replacer}.

View File

@@ -47,6 +47,10 @@
amount: 3
- name: TrashBag
amount: 2
- name: LightReplacer
amount: 1
- name: BoxLightMixed
amount: 1
#- type: entity
# id: LockerLegalFilled

View File

@@ -266,3 +266,24 @@
quickInsert: true
areaInsert: true
storageSoundCollection: trashBagRustle
- type: entity
parent: BaseItem
name: light replacer
id: LightReplacer
description: An item which uses magnets to easily replace broken lights.
components:
- type: Sprite
sprite: Objects/Specific/Janitorial/light_replacer.rsi
state: icon
- type: Item
sprite: Objects/Specific/Janitorial/light_replacer.rsi
- type: LightReplacer
contents:
- name: LightTube
amount: 8
type: Tube
- name: LightBulb
amount: 5
type: Bulb

View File

@@ -46,3 +46,12 @@
completetime: 300
materials:
plastic: 100
- type: latheRecipe
id: LightReplacer
icon: Objects/Specific/Janitorial/light_replacer.rsi
result: LightReplacer
completetime: 600
materials:
steel: 100
glass: 1000

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 601 B

View File

@@ -0,0 +1,25 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "Taken from https://github.com/discordia-space/CEV-Eris/commit/d76180f48949870dd57c7274d494175b3b3515ba",
"states": [
{
"name": "icon"
},
{
"name": "emagged"
},
{
"name": "inhand-right",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
}
]
}