Mag gloves (#147)
* created yml * +mechanics * textures * full implementation of magnetic gloves without lathe crafts and researches * finale * meeerge * Fixed
10
Resources/Locale/en-US/white/magnetic-gloves.ftl
Normal file
@@ -0,0 +1,10 @@
|
||||
maggloves-ready = Gloves are ready to use.
|
||||
maggloves-ready-in = Gloves will be ready in
|
||||
research-technology-lightweight-magnets = Lightweight Magnets
|
||||
research-technology-advanced-grips = Advanced Grips
|
||||
maggloves-not-ready = The gloves are not ready yet
|
||||
maggloves-already-active = The gloves are already active
|
||||
maggloves-enabled-till = The gloves are enabled for
|
||||
maggloves-cant-strip = Magnetic gloves are strongly attached to the item
|
||||
maggloves-activated = Magnetic gloves activated
|
||||
maggloves-deactivated = Magnetic gloves deactivated
|
||||
19
Resources/Locale/ru-RU/White/magnetic-gloves.ftl
Normal file
@@ -0,0 +1,19 @@
|
||||
ent-ClothingHandsGlovesMagnetic = магнитные перчатки
|
||||
.desc = перчатки оснащенные специальными магнитными захватами, что позволяют вещам оставаться в ваших руках после свободного падения.
|
||||
ent-ClothingHandsGlovesMagneticAdvanced = продвинутые магнитные перчатки
|
||||
.desc = продвинутые магнитные перчатки оснащенные более мощными захватами, что дополнительно предотвращают возможность разоружения и кражи из рук носителя.
|
||||
ent-ActionToggleMagneticGloves = активировать магнитные перчатки
|
||||
.desc = Предотвращает выпадение предметов из рук при падении.
|
||||
ent-ActionToggleMagneticGlovesAdvanced = активировать продвинутые магнитные перчатки
|
||||
.desc = Предотвращает выпадение предметов из рук при падении и предотвращает возможность разоружения и кражи из рук носителя.
|
||||
|
||||
maggloves-ready = Перчатки готовы к использованию
|
||||
maggloves-ready-in = Перчатки будут готовы к использованию через
|
||||
research-technology-lightweight-magnets = Облегчённые магниты
|
||||
research-technology-advanced-grips = Продвинутые захваты
|
||||
maggloves-not-ready = Перчатки не готовы к использованию
|
||||
maggloves-already-active = Перчатки уже активированы
|
||||
maggloves-enabled-till = Перчатки будут активны еще
|
||||
maggloves-cant-strip = Магнитные перчатки надежно удерживают предмет
|
||||
maggloves-activated = Магнитные перчатки включены
|
||||
maggloves-deactivated = Магнитные перчатки выключены
|
||||
@@ -762,6 +762,8 @@
|
||||
- ShuttleGunPerforatorCircuitboard
|
||||
- ShuttleGunFriendshipCircuitboard
|
||||
- ShuttleGunDusterCircuitboard
|
||||
- ClothingHandsGlovesMagnetic
|
||||
- ClothingHandsGlovesMagneticAdvanced
|
||||
- type: EmagLatheRecipes
|
||||
emagStaticRecipes:
|
||||
- MagazineLightRifleBox
|
||||
|
||||
@@ -166,6 +166,7 @@
|
||||
- ProjectileBatteryAmmoProvider
|
||||
- Stunbaton
|
||||
- TwoModeEnergyAmmoProvider
|
||||
- MagneticGloves
|
||||
|
||||
- type: entity
|
||||
parent: BaseItemRecharger
|
||||
@@ -190,6 +191,7 @@
|
||||
- Stunbaton
|
||||
- TwoModeEnergyAmmoProvider
|
||||
- PowerCell
|
||||
- MagneticGloves
|
||||
blacklist:
|
||||
tags:
|
||||
- PotatoBattery
|
||||
|
||||
77
Resources/Prototypes/Entities/White/mag-gloves.yml
Normal file
@@ -0,0 +1,77 @@
|
||||
- type: entity
|
||||
parent: ClothingHandsBase
|
||||
id: ClothingHandsGlovesMagnetic
|
||||
name: magnetic gloves
|
||||
description: A pair of gloves with magnetic palms. Slip proof.
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: White/MagGloves/maggloves.rsi
|
||||
layers:
|
||||
- state: icon
|
||||
# map: [ "enum.ToggleVisuals.Layer" ]
|
||||
- type: Clothing
|
||||
sprite: White/MagGloves/maggloves.rsi
|
||||
- type: Appearance
|
||||
- type: GenericVisualizer
|
||||
visuals:
|
||||
enum.ToggleVisuals.Toggled:
|
||||
enum.ToggleVisuals.Layer:
|
||||
True: {state: icon-on}
|
||||
False: {state: icon}
|
||||
- type: GloveHeatResistance
|
||||
heatResistance: 1400
|
||||
- type: Fiber
|
||||
fiberMaterial: fibers-nanomachines
|
||||
- type: FingerprintMask
|
||||
- type: MagneticGloves
|
||||
glovesActiveTime: 60
|
||||
glovesCooldown: 60
|
||||
|
||||
- type: entity
|
||||
id: ClothingHandsGlovesMagneticAdvanced
|
||||
parent: ClothingHandsGlovesMagnetic
|
||||
name: advanced magnetic gloves
|
||||
description: A pair of gloves with magnetic palms. Slip proof.
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: White/MagGloves/magglovesadvanced.rsi
|
||||
layers:
|
||||
- state: icon
|
||||
- type: Clothing
|
||||
sprite: White/MagGloves/magglovesadvanced.rsi
|
||||
- type: MagneticGlovesAdvanced
|
||||
- type: MagneticGloves
|
||||
action: ActionToggleMagneticGlovesAdvanced
|
||||
glovesActiveTime: 80
|
||||
|
||||
- type: entity
|
||||
id: ActionToggleMagneticGlovesBase
|
||||
name: Toggle Magnetic Gloves
|
||||
description: Toggles Magnetic Gloves on and off
|
||||
noSpawn: true
|
||||
components:
|
||||
- type: InstantAction
|
||||
itemIconStyle: NoItem
|
||||
event: !type:ToggleMagneticGlovesEvent
|
||||
|
||||
- type: entity
|
||||
id: ActionToggleMagneticGloves
|
||||
parent: ActionToggleMagneticGlovesBase
|
||||
name: Toggle Magnetic Gloves
|
||||
description: Prevents owner from losing items from hands on fall.
|
||||
noSpawn: true
|
||||
components:
|
||||
- type: InstantAction
|
||||
icon: { sprite: White/MagGloves/maggloves.rsi, state: icon }
|
||||
iconOn: { sprite: White/MagGloves/maggloves.rsi, state: icon-on }
|
||||
|
||||
- type: entity
|
||||
id: ActionToggleMagneticGlovesAdvanced
|
||||
parent: ActionToggleMagneticGlovesBase
|
||||
name: Toggle Magnetic Gloves
|
||||
description: Prevents owner from losing items from hands on fall, being disarmed or robbed.
|
||||
noSpawn: true
|
||||
components:
|
||||
- type: InstantAction
|
||||
icon: { sprite: White/MagGloves/magglovesadvanced.rsi, state: icon }
|
||||
iconOn: { sprite: White/MagGloves/magglovesadvanced.rsi, state: icon-on }
|
||||
@@ -647,3 +647,21 @@
|
||||
Plastic: 100
|
||||
Glass: 20
|
||||
|
||||
- type: latheRecipe
|
||||
id: ClothingHandsGlovesMagnetic
|
||||
result: ClothingHandsGlovesMagnetic
|
||||
completetime: 3
|
||||
materials:
|
||||
Cloth: 200
|
||||
Steel: 100
|
||||
Plastic: 50
|
||||
|
||||
- type: latheRecipe
|
||||
id: ClothingHandsGlovesMagneticAdvanced
|
||||
result: ClothingHandsGlovesMagneticAdvanced
|
||||
completetime: 3
|
||||
materials:
|
||||
Cloth: 200
|
||||
Steel: 100
|
||||
Plastic: 50
|
||||
Silver: 50
|
||||
|
||||
@@ -104,6 +104,18 @@
|
||||
|
||||
# Tier 2
|
||||
|
||||
- type: technology
|
||||
id: LightweightMagnets
|
||||
name: research-technology-lightweight-magnets
|
||||
icon:
|
||||
sprite: White/MagGloves/maggloves.rsi
|
||||
state: icon
|
||||
discipline: Arsenal
|
||||
tier: 2
|
||||
cost: 7500
|
||||
recipeUnlocks:
|
||||
- ClothingHandsGlovesMagnetic
|
||||
|
||||
- type: technology
|
||||
id: ExplosiveTechnology
|
||||
name: research-technology-explosive-technology
|
||||
@@ -149,7 +161,7 @@
|
||||
- type: technology
|
||||
id: BasicShuttleArmament
|
||||
name: research-technology-basic-shuttle-armament
|
||||
icon:
|
||||
icon:
|
||||
sprite: Structures/Power/cage_recharger.rsi
|
||||
state: full
|
||||
discipline: Arsenal
|
||||
@@ -169,6 +181,18 @@
|
||||
|
||||
# Tier 3
|
||||
|
||||
- type: technology
|
||||
id: AdvancedGrips
|
||||
name: research-technology-advanced-grips
|
||||
icon:
|
||||
sprite: White/MagGloves/magglovesadvanced.rsi
|
||||
state: icon
|
||||
discipline: Arsenal
|
||||
tier: 3
|
||||
cost: 10000
|
||||
recipeUnlocks:
|
||||
- ClothingHandsGlovesMagneticAdvanced
|
||||
|
||||
- type: technology
|
||||
id: PortableMicrofusionWeaponry
|
||||
name: research-technology-portable-microfusion-weaponry
|
||||
@@ -192,11 +216,11 @@
|
||||
cost: 15000
|
||||
recipeUnlocks:
|
||||
- WeaponLaserSvalinn
|
||||
|
||||
|
||||
- type: technology
|
||||
id: AdvancedShuttleWeapon
|
||||
name: research-technology-advanced-shuttle-weapon
|
||||
icon:
|
||||
icon:
|
||||
sprite: Objects/Weapons/Guns/Ammunition/Magazine/Grenade/grenade_cartridge.rsi
|
||||
state: icon
|
||||
discipline: Arsenal
|
||||
|
||||
|
After Width: | Height: | Size: 335 B |
BIN
Resources/Textures/White/MagGloves/maggloves.rsi/icon-on.png
Normal file
|
After Width: | Height: | Size: 682 B |
BIN
Resources/Textures/White/MagGloves/maggloves.rsi/icon.png
Normal file
|
After Width: | Height: | Size: 683 B |
BIN
Resources/Textures/White/MagGloves/maggloves.rsi/inhand-left.png
Normal file
|
After Width: | Height: | Size: 280 B |
|
After Width: | Height: | Size: 289 B |
41
Resources/Textures/White/MagGloves/maggloves.rsi/meta.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"version": 1,
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/pull/69842/commits/d8138946b0ed06fced522729ac8eaa0596864329 edited by Skarletto (github)",
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"states": [
|
||||
{
|
||||
"name": "icon"
|
||||
},
|
||||
{
|
||||
"name": "icon-on"
|
||||
},
|
||||
{
|
||||
"name": "equipped-HAND",
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "on-equipped-HAND",
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "inhand-left",
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "on-inhand-left",
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "inhand-right",
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "on-inhand-right",
|
||||
"directions": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 332 B |
|
After Width: | Height: | Size: 266 B |
|
After Width: | Height: | Size: 274 B |
|
After Width: | Height: | Size: 353 B |
|
After Width: | Height: | Size: 698 B |
|
After Width: | Height: | Size: 706 B |
|
After Width: | Height: | Size: 289 B |
|
After Width: | Height: | Size: 306 B |
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"version": 1,
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/pull/69842/commits/d8138946b0ed06fced522729ac8eaa0596864329 edited by Skarletto (github)",
|
||||
"size": {
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"states": [
|
||||
{
|
||||
"name": "icon"
|
||||
},
|
||||
{
|
||||
"name": "icon-on"
|
||||
},
|
||||
{
|
||||
"name": "equipped-HAND",
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "on-equipped-HAND",
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "inhand-left",
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "on-inhand-left",
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "inhand-right",
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "on-inhand-right",
|
||||
"directions": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 350 B |
|
After Width: | Height: | Size: 271 B |
|
After Width: | Height: | Size: 291 B |