Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chronos, Сэт Новой Мекки #409

Merged
merged 8 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Content.Shared/ADT/NoShowFov/NoShowFovComponent.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Robust.Shared.GameStates;

namespace Content.Shared.ADT.NoShowFov;

/// <summary>
/// Applies a fog of war effect to a unit when this component is equipped to the eyes, head, or mask slot.
/// </summary>
[RegisterComponent, NetworkedComponent]
public sealed partial class NoShowFovComponent : Component { }
36 changes: 36 additions & 0 deletions Content.Shared/ADT/NoShowFov/NoShowFovSystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using Content.Shared.Inventory.Events;
using Content.Shared.ADT.NoShowFov;

namespace Content.Client.ADT.NoShowFov;

public sealed class NoShowFovSystem : EntitySystem
{
[Dependency] private readonly SharedEyeSystem _eye = default!;
public override void Initialize()
{
base.Initialize();

SubscribeLocalEvent<NoShowFovComponent, GotEquippedEvent>(OnEquipped);
SubscribeLocalEvent<NoShowFovComponent, GotUnequippedEvent>(OnUnequipped);
}

private void OnEquipped(EntityUid uid, NoShowFovComponent component, ref GotEquippedEvent args)
{
ToggleFov(args.Equipee, false);
}

private void OnUnequipped(EntityUid uid, NoShowFovComponent component, ref GotUnequippedEvent args)
{
ToggleFov(args.Equipee, true);
}

private void ToggleFov(EntityUid entity, bool drawFov)
{
if (TryComp<EyeComponent>(entity, out var _))
{
_eye.SetDrawFov(entity, drawFov);
}
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ ent-ADTClothingHeadCapIlisium = фуражка
ent-ADTClothingHeadHatsInvestigatorCap = фуражка следователя Службы Безопасности
.desc = Слава NanoTrasen!
.suffix = { "" }

ent-ADTClothingHeadHatsBeretArmy = армейский берет
.desc = Потрёпанный на службе военный берет. Имеет золотую нашивку сбоку.
.suffix = { "Новая Мекка" }
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
###ent-ADTClothingMaskBorodaDedMoroz = Борода и усы Дед Мороза
### .desc = Борода Деда Мороза с усами люкс качества, позволит создать вам полный образ Деда Мороза или Санта Клауса. Дети не узнают папу, соседа, или актера.
### .suffix = { "Новый Год" }
###
###ent-ADTChronosMask = визор "Жертва Хроноса"
### .desc = Продвинутый визор, сделанный на заказ неким учёным. На боковой стороне визора видна роспись: Х.К.
###
ent-ADTClothingMaskGasCE = противогаз старшего инженера
.desc = Это элитный противогаз Старшего Инженера, которому может позавидовать даже Центральное Командование. Защищает от сварки.

ent-ADTClothingMaskGasIlisium = дыхательная маска
.suffix = Иллизиум
.desc = Плотно прилегающая тактическая маска, которую можно подсоединить к системе подачи воздуха.
.desc = Плотно прилегающая тактическая маска, которую можно подсоединить к системе подачи воздуха.
ent-ADTChronosMask = визор "Жертва Хроноса"
.desc = Продвинутый визор, сделанный на заказ неким учёным. На боковой стороне визора видна роспись: Х.К.
.suffix = { "Новая Мекка" }
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ ent-ADTClothingNeckDarkGreyCloak = темно-серый плащ

ent-ADTClothingNeckGothicCloak = готический плащ
.desc = Для классических вампиров, ценящих старый стиль.
.suffix = { "" }
.suffix = { "" }

ent-ADTClothingNeckNewMekkaCloak = накидка Новой Мекки
.desc = Зеленая накидка, очень удобная в носке. Скреплена застёжкой на шее.
.suffix = { "Новая Мекка" }
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
ent-ADTClothingSandals = сандали
.desc = Пара простых сандалей. НИ. В КОЕМ. СЛУЧАЕ. НЕ СОВМЕЩАТЬ. С НОСКАМИ
.suffix = { "" }
.suffix = { "" }
ent-ADTClothingFootNewMekkaBoots = сапоги Новой Мекки
.desc = Явно потрёпанные сапоги, в которых прошли уж точно не одну милю.
.suffix = { "Новая Мекка" }
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,7 @@ ent-ADTClothingUniformIlisium = костюм Иллизиума
ent-ADTClothingUniformInvestigatorSuit = форма следователя Службы Безопасности
.desc = Одежда для того, кто намерен докопаться до сути всех тайн.
.suffix = { "" }

ent-ADTClothingUniformNewMekka = униформа Новой Мекки
.desc = Эта униформа имеет очень долгую и кровавую историю...
.suffix = { "Новая Мекка" }
12 changes: 12 additions & 0 deletions Resources/Prototypes/ADT/Entities/Clothing/Head/hats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,15 @@
sprite: ADT/Clothing/Head/Hats/investigator_cap.rsi
- type: Clothing
sprite: ADT/Clothing/Head/Hats/investigator_cap.rsi

- type: entity
parent: ClothingHeadBase
id: ADTClothingHeadHatsBeretArmy
name: army beret
description: army beret
suffix: New Mekka
components:
- type: Sprite
sprite: ADT/Clothing/Head/Hats/armyberet.rsi
- type: Clothing
sprite: ADT/Clothing/Head/Hats/armyberet.rsi
31 changes: 16 additions & 15 deletions Resources/Prototypes/ADT/Entities/Clothing/Masks/mask.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,21 +197,22 @@
# - state: equipped-MASK
# - type: BreathMask

# - type: entity
# parent: ClothingMaskBase
# id: ADTChronosMask
# name: chronos victim mask
# description: chronos victim mask
# components:
# - type: Sprite
# sprite: ADT/Clothing/Mask/chronosvisor.rsi
# - type: Clothing
# sprite: ADT/Clothing/Mask/chronosvisor.rsi
# - type: BreathMask
# - type: ShowSecurityIcons
# - type: FlashImmunity
# - type: EyeProtection
# protectionTime: 5
- type: entity
parent: ClothingMaskBase
id: ADTChronosMask
name: chronos victim mask
description: chronos victim mask
suffix: New Mekka
components:
- type: Sprite
sprite: ADT/Clothing/Mask/chronosvisor.rsi
- type: Clothing
sprite: ADT/Clothing/Mask/chronosvisor.rsi
- type: BreathMask
- type: NoShowFov # Отключает Fov при надевании
- type: FlashImmunity
- type: EyeProtection
protectionTime: 5

# #противогаз СССП

Expand Down
12 changes: 11 additions & 1 deletion Resources/Prototypes/ADT/Entities/Clothing/Neck/Cloaks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,14 @@
- type: Sprite
sprite: ADT/Clothing/Neck/Cloaks/gothic_cloak.rsi #спрайты от floppo4ka
- type: StaticPrice
price: 5
price: 5

- type: entity
parent: ClothingNeckBase
id: ADTClothingNeckNewMekkaCloak
name: New Mekka cloak
description: Protect from cold evening on a nukie planet.
suffix: New Mekka
components:
- type: Sprite
sprite: ADT/Clothing/Neck/Cloaks/newmekkacloak.rsi
1 change: 0 additions & 1 deletion Resources/Prototypes/ADT/Entities/Clothing/Neck/fill.txt

This file was deleted.

4 changes: 2 additions & 2 deletions Resources/Prototypes/ADT/Entities/Clothing/Neck/misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
description: A chain made of gold.
components:
- type: Sprite
sprite: ADT/Clothing/Neck/Misc/gold_chain.rsi
sprite: ADT/Clothing/Neck/Misc/gold_chain.rsi
- type: Clothing
sprite: ADT/Clothing/Neck/Misc/gold_chain.rsi #спрайты от prazat911
- type: StaticPrice
price: 500

- type: entity
parent: ClothingNeckBase
id: ADTSpaceSecToken
Expand Down
11 changes: 11 additions & 0 deletions Resources/Prototypes/ADT/Entities/Clothing/Shoes/Boots.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
- type: entity
parent: ClothingShoesBaseButcherable
id: ADTClothingFootNewMekkaBoots
name: New Mekka boots
description: Comfortable for bullies!
suffix: New Mekka
components:
- type: Sprite
sprite: ADT/Clothing/Shoes/Boots/newmekka.rsi
- type: Clothing
sprite: ADT/Clothing/Shoes/Boots/newmekka.rsi #спрайты от prazat911
2 changes: 1 addition & 1 deletion Resources/Prototypes/ADT/Entities/Clothing/Shoes/misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
sprite: ADT/Clothing/Shoes/Boots/black_boots.rsi #спрайты от dion_clawed
- type: StaticPrice
price: 240

- type: entity
parent: ClothingShoesBaseButcherable
id: ADTClothingSandals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@
id: ADTClothingUniformNewMekka
name: New Mekka jumpsuit
description: New Mekka jumpsuit
suffix: New Mekka
components:
- type: Sprite
sprite: ADT/Clothing/Uniforms/Jumpsuit/newmekkauniform.rsi
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.
18 changes: 18 additions & 0 deletions Resources/Textures/ADT/Clothing/Head/Hats/armyberet.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Adventure Time MRP, discord: prazat911",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "equipped-HELMET",
"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.
18 changes: 18 additions & 0 deletions Resources/Textures/ADT/Clothing/Mask/chronosvisor.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Created by discord:prazat911",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "equipped-MASK",
"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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Adventure Time MRP, discord: prazat911",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "equipped-NECK",
"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.
18 changes: 18 additions & 0 deletions Resources/Textures/ADT/Clothing/Shoes/Boots/newmekka.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Adventure Time MRP, discord: prazat911",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "equipped-FEET",
"directions": 4
},
{
"name": "icon"
}
]
}
Loading