Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pofitlo-Git committed Dec 9, 2024
1 parent 4236c2a commit 4300c15
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private void Render(Entity<SpriteComponent, TransformComponent, BodyComponent> e
private bool CanSee(EntityUid uid, SpriteComponent sprite, BodyComponent body)
{
return sprite.Visible
&& body.ThermalVisibility
&& !_entity.HasComponent<ThermalInvisibilityComponent>(uid)
&& (!_entity.TryGetComponent(uid, out StealthComponent? stealth)
|| _stealth.GetVisibility(uid, stealth) > 0.5f);
}
Expand Down
5 changes: 0 additions & 5 deletions Content.Shared/Body/Components/BodyComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,4 @@ public sealed partial class BodyComponent : Component
[ViewVariables]
[DataField, AutoNetworkedField]
public HashSet<EntityUid> LegEntities = new();

// Corvax-Next-NightVision-Start
[DataField, AutoNetworkedField]
public bool ThermalVisibility = true;
// Corvax-Next-NightVision-End
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ namespace Content.Shared._CorvaxNext.Clothing
[RegisterComponent]
public sealed partial class ClothingGrantComponentComponent : Component
{
[DataField("component", required: true)]
[DataField("component")]
[AlwaysPushInheritance]
public ComponentRegistry Components { get; private set; } = new();

[ViewVariables(VVAccess.ReadWrite)]
public bool IsActive = false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ namespace Content.Shared._CorvaxNext.Clothing;
[RegisterComponent]
public sealed partial class ClothingGrantTagComponent : Component
{
[DataField("tag", required: true), ViewVariables(VVAccess.ReadWrite)]
[DataField("tag")]
public string Tag = "";

[ViewVariables(VVAccess.ReadWrite)]
public bool IsActive = false;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using Robust.Shared.GameStates;

namespace Content.Shared._CorvaxNext.Overlays;

[RegisterComponent, NetworkedComponent]
public sealed partial class ThermalInvisibilityComponent : SwitchableOverlayComponent;

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public sealed partial class ThermalVisionComponent : SwitchableOverlayComponent
{
public override string? ToggleAction { get; set; } = "ToggleThermalVision";

public override Color Color { get; set; } = Color.FromHex("#F84742");
public override Color Color { get; set; } = Color.FromHex("#C26E4A");
}

public sealed partial class ToggleThermalVisionEvent : InstantActionEvent;
2 changes: 0 additions & 2 deletions Resources/Locale/en-US/research/technologies.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,3 @@ research-technology-bluespace-chemistry = Bluespace Chemistry
research-technology-advanced-treatment = Advanced Treatment
research-technology-high-end-surgery = High End Surgical Tools
research-technology-cybernetic-enhancements = Cybernetic Enhancements
research-technology-night-vision = Night vision
research-technology-thermal-vision = Thermal vision
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Night Vision Goggles
ent-ClothingEyesNightVisionGoggles = ПНВ
ent-ClothingEyesNightVisionGoggles = Прибор ночного видения
.desc = Теперь ты можешь видеть в темноте!
ent-ClothingEyesNightVisionGogglesSyndie = { ent-ClothingEyesNightVisionGoggles }
.desc = { ent-ClothingEyesNightVisionGoggles.desc }
ent-ClothingEyesNightVisionGogglesNukie = { ent-ClothingEyesNightVisionGoggles }
.desc = { ent-ClothingEyesNightVisionGoggles.desc }
# Thermal Vision Goggles
ent-ClothingEyesThermalVisionGoggles = ПТВ
ent-ClothingEyesThermalVisionGoggles = Прибор термального видения
.desc = Теперь ты можешь видеть всех!
ent-ClothingEyesThermalVisionGogglesSyndie = { ent-ClothingEyesThermalVisionGoggles }
.desc = { ent-ClothingEyesThermalVisionGoggles.desc }
Expand Down
2 changes: 0 additions & 2 deletions Resources/Locale/ru-RU/_corvaxnext/research/technologies.ftl
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
research-technology-advanced-robotics = Продвинутая робототехника
research-technology-night-vision = Ночное видение
research-technology-thermal-vision = Термальное видение
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
save: false
abstract: true
components:
- type: ThermalInvisibility #Corvax-Next-ThermalVision
- type: Reactive
groups:
Acidic: [Touch]
Expand Down Expand Up @@ -140,7 +141,6 @@
cell_slot:
name: power-cell-slot-component-slot-name-default
- type: Body
thermalVisibility: false #Corvax-Next
- type: StatusEffects
allowed:
- Stun
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Player/admin_ghost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
name: admin observer
categories: [ HideSpawnMenu ]
components:
- type: ThermalInvisibility #Corvax-Next-ThermalVision
- type: ContentEye
maxZoom: 8.916104, 8.916104
- type: Tag
Expand All @@ -27,7 +28,6 @@
bodyType: Kinematic
- type: Body
prototype: Aghost
thermalVisibility: false #Corvax-Next
- type: Access
groups:
- AllAccess
Expand Down
2 changes: 0 additions & 2 deletions Resources/Prototypes/Entities/Structures/Machines/lathe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,6 @@
- OreBagOfHolding
- DeviceQuantumSpinInverter
# Corvax-Next Start
- ClothingEyesNightVisionGoggles
- ClothingEyesThermalVisionGoggles
- EnergyScalpel
- EnergyCautery
- AdvancedRetractor
Expand Down
19 changes: 0 additions & 19 deletions Resources/Prototypes/_CorvaxNext/Recipes/Lathes/devices.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
- type: latheRecipe
id: ClothingEyesNightVisionGoggles
result: ClothingEyesNightVisionGoggles
completetime: 2
materials:
Steel: 200
Glass: 100
Silver: 100
Gold: 100

- type: latheRecipe
id: ClothingEyesThermalVisionGoggles
result: ClothingEyesThermalVisionGoggles
completetime: 2
materials:
Steel: 200
Glass: 100
Silver: 100

- type: latheRecipe
id: PlantAnalyzer
result: PlantAnalyzerEmpty
Expand Down
24 changes: 0 additions & 24 deletions Resources/Prototypes/_CorvaxNext/Research/experimental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,3 @@
cost: 10000
recipeUnlocks:
- MachineBluespaceHarvesterCircuitboard

- type: technology
id: NightVisionTech
name: research-technology-night-vision
icon:
sprite: _CorvaxNext/Clothing/Eyes/Goggles/nightvision.rsi
state: icon
discipline: Experimental
tier: 2
cost: 10000
recipeUnlocks:
- ClothingEyesNightVisionGoggles

- type: technology
id: ThermalVisionTech
name: research-technology-thermal-vision
icon:
sprite: _CorvaxNext/Clothing/Eyes/Goggles/thermal.rsi
state: icon
discipline: Experimental
tier: 2
cost: 10000
recipeUnlocks:
- ClothingEyesThermalVisionGoggles

0 comments on commit 4300c15

Please sign in to comment.