Adds a ton more inhands (#4488)

* Removed useless loc and added inhands for some lamps

* Adds a ton of inhands to the game

* Actually adds the pill inhand

* Update Resources/Textures/Objects/Misc/utensils.rsi/meta.json

Co-authored-by: Paul Ritter <ritter.paul1@googlemail.com>

* Update Resources/Textures/Objects/Tools/rcd.rsi/meta.json

Co-authored-by: Paul Ritter <ritter.paul1@googlemail.com>

Co-authored-by: Paul Ritter <ritter.paul1@googlemail.com>
This commit is contained in:
Swept
2021-08-19 22:36:32 -07:00
committed by GitHub
parent 12ad8c7c2f
commit 9d22869e58
83 changed files with 242 additions and 39 deletions

View File

@@ -177,12 +177,12 @@ namespace Content.Server.Light.Components
if (Owner.TryGetComponent(out ClothingComponent? clothing)) if (Owner.TryGetComponent(out ClothingComponent? clothing))
{ {
clothing.ClothingEquippedPrefix = Loc.GetString(on ? "handheld-light-component-on-state" : "handheld-light-component-off-state"); clothing.ClothingEquippedPrefix = Loc.GetString(on ? "on" : "off");
} }
if (Owner.TryGetComponent(out ItemComponent? item)) if (Owner.TryGetComponent(out ItemComponent? item))
{ {
item.EquippedPrefix = Loc.GetString(on ? "handheld-light-component-on-state" : "handheld-light-component-off-state"); item.EquippedPrefix = Loc.GetString(on ? "on" : "off");
} }
} }

View File

@@ -2,8 +2,6 @@ handheld-light-component-on-examine-is-on-message = The light is currently [colo
handheld-light-component-on-examine-is-off-message = The light is currently [color=darkred]off[/color]. handheld-light-component-on-examine-is-off-message = The light is currently [color=darkred]off[/color].
handheld-light-component-cell-missing-message = Cell missing... handheld-light-component-cell-missing-message = Cell missing...
handheld-light-component-cell-dead-message = Dead cell... handheld-light-component-cell-dead-message = Dead cell...
handheld-light-component-on-state = on
handheld-light-component-off-state = off
# ToggleLightVerb # ToggleLightVerb
toggle-light-verb-get-data-text = Toggle light toggle-light-verb-get-data-text = Toggle light

View File

@@ -115,6 +115,9 @@
- type: Sprite - type: Sprite
sprite: Objects/Specific/Hydroponics/banana.rsi sprite: Objects/Specific/Hydroponics/banana.rsi
state: peel state: peel
- type: Item
sprite: Objects/Specific/Hydroponics/banana.rsi
HeldPrefix: peel
- type: Slippery - type: Slippery
intersectPercentage: 0.2 intersectPercentage: 0.2
- type: CollisionWake - type: CollisionWake

View File

@@ -100,7 +100,7 @@
- type: Sprite - type: Sprite
state: popcorn state: popcorn
- type: Item - type: Item
color: blue HeldPrefix: popcorn
- type: Food - type: Food
trash: FoodPacketPopcornTrash trash: FoodPacketPopcornTrash

View File

@@ -9,10 +9,9 @@
actions: actions:
- actionType: ToggleLight - actionType: ToggleLight
- type: Sprite - type: Sprite
sprite: Objects/Misc/lights.rsi sprite: Objects/Misc/Lights/lights.rsi
- type: Item - type: Item
sprite: Objects/Misc/lights.rsi sprite: Objects/Misc/Lights/lights.rsi
HeldPrefix: off
- type: entity - type: entity
name: lamp name: lamp
@@ -21,11 +20,14 @@
description: A light emitting device. description: A light emitting device.
components: components:
- type: Sprite - type: Sprite
sprite: Objects/Misc/Lights/lamp.rsi
layers: layers:
- state: lamp - state: lamp
- state: lamp_on - state: lamp-on
shader: unshaded shader: unshaded
visible: false visible: false
- type: Item
sprite: Objects/Misc/Lights/lamp.rsi
- type: PointLight - type: PointLight
enabled: false enabled: false
radius: 3 radius: 3
@@ -38,7 +40,7 @@
name: banana lamp name: banana lamp
id: LampBanana id: LampBanana
parent: BaseLamp parent: BaseLamp
description: A light emitting device, shaped like bannana. description: A light emitting device, shaped like a banana.
components: components:
- type: Sprite - type: Sprite
layers: layers:
@@ -58,14 +60,17 @@
name: desk lamp name: desk lamp
id: LampGold id: LampGold
parent: BaseLamp parent: BaseLamp
description: A light emitting device, that would look great on a desk. description: A light emitting device that would look great on a desk.
components: components:
- type: Sprite - type: Sprite
sprite: Objects/Misc/Lights/lampgreen.rsi
layers: layers:
- state: lampgreen - state: lampgreen
- state: lampgreen_on - state: lampgreen-on
shader: unshaded shader: unshaded
visible: false visible: false
- type: Item
sprite: Objects/Misc/Lights/lampgreen.rsi
- type: PointLight - type: PointLight
enabled: false enabled: false
radius: 3 radius: 3
@@ -130,7 +135,7 @@
description: A pole with powerful mounted lights on it. It's broken. description: A pole with powerful mounted lights on it. It's broken.
components: components:
- type: Sprite - type: Sprite
sprite: Objects/Misc/lights.rsi sprite: Objects/Misc/Lights/lights.rsi
state: floodlight_broken state: floodlight_broken
- type: Anchorable - type: Anchorable
- type: Damageable - type: Damageable

View File

@@ -35,3 +35,6 @@
- type: Sprite - type: Sprite
sprite: Objects/Misc/bureaucracy.rsi sprite: Objects/Misc/bureaucracy.rsi
state: pen state: pen
- type: Item
sprite: Objects/Misc/bureaucracy.rsi
HeldPrefix: pen

View File

@@ -5,6 +5,8 @@
components: components:
- type: Sprite - type: Sprite
sprite: Objects/Misc/utensils.rsi sprite: Objects/Misc/utensils.rsi
- type: Item
sprite: Objects/Misc/utensils.rsi
- type: entity - type: entity
parent: UtensilBase parent: UtensilBase
@@ -29,6 +31,8 @@
components: components:
- type: Sprite - type: Sprite
state: plastic_fork state: plastic_fork
- type: Item
color: white
- type: Utensil - type: Utensil
types: types:
- Fork - Fork
@@ -42,6 +46,8 @@
components: components:
- type: Sprite - type: Sprite
state: spoon state: spoon
- type: Item
HeldPrefix: spoon
- type: Utensil - type: Utensil
types: types:
- Spoon - Spoon
@@ -54,6 +60,9 @@
components: components:
- type: Sprite - type: Sprite
state: plastic_spoon state: plastic_spoon
- type: Item
color: white
HeldPrefix: spoon
- type: Utensil - type: Utensil
types: types:
- Spoon - Spoon
@@ -67,6 +76,8 @@
components: components:
- type: Sprite - type: Sprite
state: plastic_knife state: plastic_knife
- type: Item
color: white
- type: Utensil - type: Utensil
types: types:
- Knife - Knife

View File

@@ -10,6 +10,9 @@
- type: Sprite - type: Sprite
sprite: Objects/Specific/Medical/medical.rsi sprite: Objects/Specific/Medical/medical.rsi
state: ointment state: ointment
- type: Item
sprite: Objects/Specific/Medical/medical.rsi
HeldPrefix: ointment
- type: Healing - type: Healing
heal: heal:
Heat: 10 Heat: 10

View File

@@ -157,13 +157,14 @@
visible: false visible: false
- state: syringe_base0 - state: syringe_base0
map: ["enum.SolutionContainerLayers.Base"] map: ["enum.SolutionContainerLayers.Base"]
- type: Item
sprite: Objects/Specific/Chemistry/syringe.rsi
HeldPrefix: 0
- type: SolutionContainer - type: SolutionContainer
maxVol: 15 maxVol: 15
- type: Injector - type: Injector
injectOnly: false injectOnly: false
- type: Spillable - type: Spillable
- type: Item
sprite: Objects/Specific/Chemistry/syringe.rsi
- type: Appearance - type: Appearance
visuals: visuals:
# this visualizer used for reagent inside # this visualizer used for reagent inside
@@ -187,6 +188,8 @@
- type: Sprite - type: Sprite
sprite: Objects/Specific/Chemistry/pills.rsi sprite: Objects/Specific/Chemistry/pills.rsi
state: pill state: pill
- type: Item
sprite: Objects/Specific/Chemistry/pills.rsi
- type: Tag - type: Tag
tags: tags:
- Pill - Pill

View File

@@ -217,7 +217,10 @@
- type: RCDAmmo - type: RCDAmmo
- type: Sprite - type: Sprite
sprite: Objects/Tools/rcd.rsi sprite: Objects/Tools/rcd.rsi
state: rcd_ammo state: ammo
- type: Item
sprite: Objects/Tools/rcd.rsi
HeldPrefix: ammo
- type: entity - type: entity
name: shovel name: shovel

View File

@@ -126,7 +126,7 @@
id: RCDAmmo id: RCDAmmo
icon: icon:
sprite: Objects/Tools/rcd.rsi sprite: Objects/Tools/rcd.rsi
state: rcd_ammo state: ammo
result: RCDAmmo result: RCDAmmo
completetime: 600 completetime: 600
materials: materials:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 356 B

After

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 364 B

After

Width:  |  Height:  |  Size: 415 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 B

View File

@@ -16,6 +16,14 @@
{ {
"name": "brain" "name": "brain"
}, },
{
"name": "brain-inhand-left",
"directions": 4
},
{
"name": "brain-inhand-right",
"directions": 4
},
{ {
"name": "ears" "name": "ears"
}, },

View File

@@ -89,6 +89,14 @@
{ {
"name": "popcorn" "name": "popcorn"
}, },
{
"name": "popcorn-inhand-right",
"directions": 4
},
{
"name": "popcorn-inhand-left",
"directions": 4
},
{ {
"name": "popcorn-trash" "name": "popcorn-trash"
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 496 B

View File

Before

Width:  |  Height:  |  Size: 181 B

After

Width:  |  Height:  |  Size: 181 B

View File

Before

Width:  |  Height:  |  Size: 514 B

After

Width:  |  Height:  |  Size: 514 B

View File

@@ -0,0 +1,33 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/e1142f20f5e4661cb6845cfcf2dd69f864d67432",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "lamp"
},
{
"name": "lamp-on"
},
{
"name": "off-inhand-left",
"directions": 4
},
{
"name": "off-inhand-right",
"directions": 4
},
{
"name": "on-inhand-left",
"directions": 4
},
{
"name": "on-inhand-right",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 459 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 376 B

View File

Before

Width:  |  Height:  |  Size: 183 B

After

Width:  |  Height:  |  Size: 183 B

View File

Before

Width:  |  Height:  |  Size: 470 B

After

Width:  |  Height:  |  Size: 470 B

View File

@@ -0,0 +1,33 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/e1142f20f5e4661cb6845cfcf2dd69f864d67432",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "lampgreen"
},
{
"name": "lampgreen-on"
},
{
"name": "off-inhand-left",
"directions": 4
},
{
"name": "off-inhand-right",
"directions": 4
},
{
"name": "on-inhand-left",
"directions": 4
},
{
"name": "on-inhand-right",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 B

View File

Before

Width:  |  Height:  |  Size: 664 B

After

Width:  |  Height:  |  Size: 664 B

View File

Before

Width:  |  Height:  |  Size: 154 B

After

Width:  |  Height:  |  Size: 154 B

View File

Before

Width:  |  Height:  |  Size: 357 B

After

Width:  |  Height:  |  Size: 357 B

View File

Before

Width:  |  Height:  |  Size: 124 B

After

Width:  |  Height:  |  Size: 124 B

View File

@@ -24,18 +24,6 @@
}, },
{ {
"name": "floodlight_broken" "name": "floodlight_broken"
},
{
"name": "lamp"
},
{
"name": "lamp_on"
},
{
"name": "lampgreen"
},
{
"name": "lampgreen_on"
} }
] ]
} }

View File

@@ -234,6 +234,14 @@
{ {
"name": "pen_red" "name": "pen_red"
}, },
{
"name": "pen-inhand-left",
"directions": 4
},
{
"name": "pen-inhand-right",
"directions": 4
},
{ {
"name": "scrap" "name": "scrap"
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 B

View File

@@ -1,7 +1,7 @@
{ {
"version": 1, "version": 1,
"license": "CC-BY-SA-3.0", "license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/e1142f20f5e4661cb6845cfcf2dd69f864d67432", "copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/e1142f20f5e4661cb6845cfcf2dd69f864d67432 and modified by Swept",
"size": { "size": {
"x": 32, "x": 32,
"y": 32 "y": 32
@@ -10,9 +10,25 @@
{ {
"name": "spoon" "name": "spoon"
}, },
{
"name": "spoon-inhand-left",
"directions": 4
},
{
"name": "spoon-inhand-right",
"directions": 4
},
{ {
"name": "fork" "name": "fork"
}, },
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
},
{ {
"name": "loadedfood" "name": "loadedfood"
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

View File

@@ -72,6 +72,14 @@
}, },
{ {
"name": "pill_canister" "name": "pill_canister"
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
} }
] ]
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 B

View File

@@ -41,11 +41,43 @@
"name": "syringe4" "name": "syringe4"
}, },
{ {
"name": "inhand-left", "name": "0-inhand-left",
"directions": 4 "directions": 4
}, },
{ {
"name": "inhand-right", "name": "0-inhand-right",
"directions": 4
},
{
"name": "1-inhand-left",
"directions": 4
},
{
"name": "1-inhand-right",
"directions": 4
},
{
"name": "2-inhand-left",
"directions": 4
},
{
"name": "2-inhand-right",
"directions": 4
},
{
"name": "3-inhand-left",
"directions": 4
},
{
"name": "3-inhand-right",
"directions": 4
},
{
"name": "4-inhand-left",
"directions": 4
},
{
"name": "4-inhand-right",
"directions": 4 "directions": 4
} }
] ]

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 356 B

View File

@@ -12,6 +12,14 @@
}, },
{ {
"name": "vial" "name": "vial"
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
} }
] ]
} }

View File

@@ -25,6 +25,14 @@
{ {
"name": "peel3" "name": "peel3"
}, },
{
"name": "peel-inhand-left",
"directions": 4
},
{
"name": "peel-inhand-right",
"directions": 4
},
{ {
"name": "seed" "name": "seed"
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 343 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 B

View File

@@ -10,6 +10,14 @@
{ {
"name": "brutepack" "name": "brutepack"
}, },
{
"name": "brutepack-inhand-left",
"directions": 4
},
{
"name": "brutepack-inhand-right",
"directions": 4
},
{ {
"name": "cast" "name": "cast"
}, },
@@ -21,6 +29,14 @@
}, },
{ {
"name": "ointment" "name": "ointment"
},
{
"name": "ointment-inhand-left",
"directions": 4
},
{
"name": "ointment-inhand-right",
"directions": 4
} }
] ]
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 B

After

Width:  |  Height:  |  Size: 686 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 144 B

After

Width:  |  Height:  |  Size: 668 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 B

View File

Before

Width:  |  Height:  |  Size: 331 B

After

Width:  |  Height:  |  Size: 331 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 B

After

Width:  |  Height:  |  Size: 459 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 163 B

After

Width:  |  Height:  |  Size: 454 B

View File

@@ -1,7 +1,7 @@
{ {
"version": 1, "version": 1,
"license": "CC-BY-SA-3.0", "license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/f07f847706d85b7cfa4b398e5175732212b69a63", "copyright": "Taken from cev-eris at commit https://github.com/discordia-space/CEV-Eris/commit/ce025775f73b66934ca96f3a8edc30993ea70b4d and modified by Swept",
"size": { "size": {
"x": 32, "x": 32,
"y": 32 "y": 32
@@ -11,7 +11,15 @@
"name": "icon" "name": "icon"
}, },
{ {
"name": "rcd_ammo" "name": "ammo"
},
{
"name": "ammo-inhand-left",
"directions": 4
},
{
"name": "ammo-inhand-right",
"directions": 4
}, },
{ {
"name": "equipped-BELT", "name": "equipped-BELT",