Skip to content

Commit

Permalink
Merge pull request #601 from FaDeOkno/crusher-gauntlets
Browse files Browse the repository at this point in the history
Протокинетические перчачки
  • Loading branch information
PyotrIgn authored Apr 13, 2024
2 parents 4393442 + 934a3fe commit ebc3af1
Show file tree
Hide file tree
Showing 13 changed files with 124 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Content.Shared/Weapons/Ranged/Systems/SharedGunSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,15 @@ hands.ActiveHandEntity is { } held &&
return true;
}

/// ADT gloves gun start
if (_inventory.TryGetSlotEntity(entity, "gloves", out var gloves) &&
TryComp<GunComponent>(gloves, out var glovesMelee))
{
gunEntity = gloves.Value;
gunComp = glovesMelee;
return true;
}
/// ADT gloves gun end
// Last resort is check if the entity itself is a gun.
if (TryComp(entity, out gun))
{
Expand Down Expand Up @@ -236,6 +245,13 @@ private void AttemptShoot(EntityUid user, EntityUid gunUid, GunComponent gun)
}
///ADT-Personal-Gun block end

/// ADT gloves gun start
if (EntityManager.TryGetComponent(user, out HandsComponent? hands) && hands != null && hands.ActiveHandEntity != null && _inventory.TryGetSlotEntity(user, "gloves", out var gloves) && gloves.Value == gunUid)
{
return;
}
/// ADT gloves gun end

var toCoordinates = gun.ShootCoordinates;

if (toCoordinates == null)
Expand Down
6 changes: 6 additions & 0 deletions Resources/Changelog/ChangelogADT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1647,3 +1647,9 @@ Entries:
- {message: "Фикс еще чего-то, но я забыл чего именно.", type: Fix}
id: 55728 #костыль отображения в Обновлениях
time: '2024-04-13T08:20:00.0000000+00:00'

- author: Котя
changes:
- { message: "Добавлены протокинетические рукавицы в лут утилей.", type: Add}
id: 55729 #костыль отображения в Обновлениях
time: '2024-04-12T08:20:00.0000000+00:00'
6 changes: 6 additions & 0 deletions Resources/Locale/ru-RU/ADT/Clothing/Hands/gloves.ftl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
fibers-crusher = дюратканевые с наномашинами
ent-ADTClothingHandsNovaGloves = перчатки Новы
.desc = Это перчатки Новы. Как она их получила? Секрет.
Expand Down Expand Up @@ -53,3 +55,7 @@ ent-ADTClothingHandsGlovesSport = перчати серии STEP "Cold"
.desc = Беспалые перчатки серии "Cold", в которых удобно заниматься спортом любой расе.
ent-ADTClothingHandsGlovesSportStep = перчатки серии STEP "Ultra"
.desc = Перчатки "Ultra" серии STEP без пальцев и с мягкой подкладкой, закрывающей ладони, что делает их идеальными для передвижения на четвероногих или для подъема грузов.
ent-ADTClothingHandsCrusherGauntlets = протокинетические рукавицы
.desc = Модернезированная версия кинетического крушителя, умещённая в форму весьма массивных перчаток.
54 changes: 54 additions & 0 deletions Resources/Prototypes/ADT/Entities/Clothing/Hands/gloves.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,3 +290,57 @@
sprite: ADT/Clothing/Hands/Gloves/gloves_sport_step.rsi
- type: Clothing
sprite: ADT/Clothing/Hands/Gloves/gloves_sport_step.rsi #спрайты от prazat911

- type: entity
parent: ClothingHandsBase
id: ADTClothingHandsCrusherGauntlets
name: crusher gauntlets
description: lil miners' friend.
components:
- type: Sprite
sprite: ADT/Clothing/Hands/Gloves/crusher_gauntlets.rsi
- type: Clothing
sprite: ADT/Clothing/Hands/Gloves/crusher_gauntlets.rsi
- type: AmmoCounter
- type: UseDelayOnShoot
- type: UseDelay
delay: 1.5
- type: LeechOnMarker
leech:
groups:
Brute: -5
Burn: -5
Airloss: -5
- type: Gun
soundGunshot: /Audio/Weapons/plasma_cutter.ogg
fireRate: 1.5
useKey: false
- type: RechargeBasicEntityAmmo
rechargeCooldown: 0.75
rechargeSound:
path: /Audio/Weapons/Guns/MagIn/kinetic_reload.ogg
- type: BasicEntityAmmoProvider
proto: BulletCharge
capacity: 1
count: 1
- type: MeleeWeapon
attackRate: 2.5
wideAnimationRotation: -135
animation: WeaponArcFist
damage:
types:
Blunt: 8
Structural: 25
- type: UnpoweredFlashlight
- type: PointLight
color: "#ffeead"
enabled: false
radius: 6
- type: Tool
qualities:
- Prying
speed: 0.25
- type: Prying
pryPowered: true
- type: Fiber
fiberMaterial: fibers-crusher
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
- WeaponCrusher
- WeaponCrusherDagger
- WeaponCrusherGlaive
- ADTClothingHandsCrusherGauntlets
- MiningDrill
- AdvancedCapacitorStockPart
- NanoManipulatorStockPart
Expand Down
3 changes: 3 additions & 0 deletions Resources/Prototypes/Procedural/salvage_loot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@
- proto: ADTWeaponWarhammer
cost: 5
prob: 0.3
- proto: ADTClothingHandsCrusherGauntlets
cost: 3
prob: 0.4
- proto: CrateSyndicateSuperSurplusBundle
cost: 5
prob: 0.01
Expand Down
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.
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,
"license": "CC-BY-SA-3.0",
"copyright": "https://github.com/BlueMoon-Labs/MOLOT-BlueMoon-Station/blob/2f8d21c269208ddb977f944bde3da96a72bdb155/icons/obj/mining.dmi",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "icon-lit"
},
{
"name": "icon-uncharged",
"delays": [
[
0.3,
0.3
]
]
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
},
{
"name": "equipped-HAND",
"directions": 4
}
]
}

0 comments on commit ebc3af1

Please sign in to comment.