Skip to content

Commit

Permalink
Merge with our changes
Browse files Browse the repository at this point in the history
  • Loading branch information
778b committed Apr 27, 2024
1 parent bedfc88 commit d81f84b
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 126 deletions.
5 changes: 1 addition & 4 deletions Content.Client/Corvax/TTS/HumanoidProfileEditor.TTS.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.Linq;
using System.Linq;
using Content.Client.Corvax.TTS;
using Content.Client.Lobby;
using Content.Shared.Corvax.TTS;
Expand All @@ -11,7 +11,4 @@ public sealed partial class HumanoidProfileEditor
{
private IClientSponsorsManager? _sponsorsMgr;
private List<TTSVoicePrototype> _voiceList = default!;


}
}
2 changes: 2 additions & 0 deletions Content.Server/GameTicking/Rules/TS/MasterRORuleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Numerics;
using Content.Server.Antag;
using Content.Server.Chat.Systems;
using Content.Server.GameTicking.Components;
using Content.Server.GameTicking.Rules.Components;
using Content.Server.Jobs;
using Content.Server.NPC.Components;
Expand All @@ -15,6 +16,7 @@
using Content.Shared.Mind;
using Content.Shared.Mind.Components;
using Content.Shared.Mobs.Systems;
using Content.Shared.NPC.Systems;
using Robust.Server.GameObjects;
using Robust.Server.Maps;
using Robust.Shared.Map;
Expand Down
1 change: 1 addition & 0 deletions Content.Server/Ghost/Roles/GhostRoleSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public sealed class GhostRoleSystem : EntitySystem
[Dependency] private readonly TransformSystem _transform = default!;
[Dependency] private readonly SharedMindSystem _mindSystem = default!;
[Dependency] private readonly SharedRoleSystem _roleSystem = default!;
[Dependency] private readonly PlayTimeTrackingSystem _playTimeTrackings = default!;
[Dependency] private readonly PopupSystem _popupSystem = default!;
[Dependency] private readonly IPrototypeManager _prototype = default!;
private uint _nextRoleIdentifier;
Expand Down
10 changes: 6 additions & 4 deletions Content.Server/Power/EntitySystems/HandChargerSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ internal sealed class HandChargerSystem : EntitySystem
{
[Dependency] private readonly ContainerSystem _container = default!;
[Dependency] private readonly PowerCellSystem _powerCell = default!;
[Dependency] private readonly BatterySystem _battery = default!;
[Dependency] private readonly ItemSlotsSystem _itemSlots = default!;

public override void Update(float frameTime)
Expand Down Expand Up @@ -77,18 +78,19 @@ private void TransferPower(EntityUid uid, BatteryComponent batteryToDischarge, L
if (batteryToDischarge.CurrentCharge < deltaChargeRate)
{
chargeRate = batteryToDischarge.CurrentCharge / batteryToCharge.Count * frameTime;
batteryToDischarge.CurrentCharge = 0;
_battery.SetCharge(uid, 0, batteryToDischarge);
}
else
batteryToDischarge.CurrentCharge -= deltaChargeRate;
_battery.SetCharge(uid, batteryToDischarge.CurrentCharge - deltaChargeRate, batteryToDischarge);

foreach (var tempBattery in batteryToCharge)
{
tempBattery.CurrentCharge += chargeRate;
_battery.SetCharge(uid, tempBattery.CurrentCharge + chargeRate, batteryToDischarge);

// Just so the sprite won't be set to 99.99999% visibility
if (tempBattery.MaxCharge - tempBattery.CurrentCharge < 0.01 || tempBattery.CurrentCharge > tempBattery.MaxCharge)
{
tempBattery.CurrentCharge = tempBattery.MaxCharge;
_battery.SetCharge(uid, tempBattery.MaxCharge, batteryToDischarge);
}
}
}
Expand Down
109 changes: 0 additions & 109 deletions Resources/Prototypes/Entities/Structures/Doors/Airlocks/highsec.yml
Original file line number Diff line number Diff line change
@@ -1,111 +1,3 @@
<<<<<<< HEAD
- type: entity
id: HighSecDoor
parent: BaseStructure
name: high security door
description: Keeps the bad out and keeps the good in.
placement:
mode: SnapgridCenter
components:
- type: InteractionOutline
- type: Sprite
sprite: Structures/Doors/Airlocks/highsec/highsec.rsi
layers:
- state: closed
map: ["enum.DoorVisualLayers.Base"]
- state: closed_unlit
shader: unshaded
map: ["enum.DoorVisualLayers.BaseUnlit"]
- state: welded
map: ["enum.WeldableLayers.BaseWelded"]
- state: bolted_unlit
shader: unshaded
map: ["enum.DoorVisualLayers.BaseBolted"]
- state: emergency_unlit
map: ["enum.DoorVisualLayers.BaseEmergencyAccess"]
shader: unshaded
- state: panel_open
map: ["enum.WiresVisualLayers.MaintenancePanel"]
- type: AnimationPlayer
- type: Physics
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.49,-0.49,0.49,0.49" # don't want this colliding with walls or they won't close
density: 100
mask:
- FullTileMask
layer:
- WallLayer
- type: ContainerFill
containers:
board: [ DoorElectronics ]
- type: ContainerContainer
containers:
board: !type:Container
- type: Door
crushDamage:
types:
Blunt: 50
openSound:
path: /Audio/Machines/airlock_open.ogg
closeSound:
path: /Audio/Machines/airlock_close.ogg
denySound:
path: /Audio/Machines/airlock_deny.ogg
- type: Weldable
time: 10
- type: Airlock
openUnlitVisible: true # Corvax-Resprite-Airlocks
- type: NavMapDoor
- type: DoorBolt
- type: AccessReader
- type: Appearance
- type: WiresVisuals
- type: ApcPowerReceiver
powerLoad: 20
- type: ExtensionCableReceiver
- type: Electrified
enabled: false
usesApcPower: true
- type: WiresPanel
- type: WiresPanelSecurity
securityLevel: maxSecurity
- type: Wires
boardName: wires-board-name-highsec
layoutId: HighSec
alwaysRandomize: true
- type: UserInterface
interfaces:
- key: enum.WiresUiKey.Key
type: WiresBoundUserInterface
- type: Airtight
fixVacuum: true
- type: Occluder
- type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: StrongMetallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 1500
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: IconSmooth
key: walls
mode: NoSprite
- type: Construction
graph: Airlock
node: highSecDoor
- type: Tag
tags:
- HighSecDoor
# This tag is used to nagivate the Airlock construction graph. It's needed because this construction graph is shared between Airlock, AirlockGlass, and HighSecDoor
=======
- type: entity
id: HighSecDoor
parent: BaseStructure
Expand Down Expand Up @@ -213,4 +105,3 @@
tags:
- HighSecDoor
# This tag is used to nagivate the Airlock construction graph. It's needed because this construction graph is shared between Airlock, AirlockGlass, and HighSecDoor
>>>>>>> 9034dc4cf2f02e315ac62efcd3d78de321c47e74
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
# OBH-3
- type: entity
noSpawn: true
parent: ClothingHeadHardsuitWithLightBase
parent: [ClothingHeadHardsuitWithLightBase, ShowSecurityIcons]
id: ClothingHeadHelmetHardsuitOBH3S
name: OBH-3S
description: Modern armor helmet, version 3, space edition
Expand All @@ -85,7 +85,6 @@
Heat: 0.9
Cold: 0.9
Radiation: 0.9
- type: ShowSecurityIcons
- type: FlashImmunity


Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# OBH-4
- type: entity
abstract: true
parent: BaseItem
parent: [BaseItem, ShowSecurityIcons]
id: ClothingHelmetHardsuitOBH4Base
components:
- type: Clickable
- type: BreathMask
- type: ShowSecurityIcons
- type: FlashImmunity
- type: InteractionOutline
- type: TemperatureProtection
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
- type: ExaminableSolution
solution: hypospray
- type: Hypospray
onlyMobs: false
onlyAffectsMobs: false
- type: UseDelay
delay: 5
- type: StaticPrice
price: 750
price: 750
8 changes: 5 additions & 3 deletions Resources/Textures/Interface/Misc/job_icons.rsi/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@
{
"name": "Visitor"
},

{
"name": "CompanyCommander"
},
Expand Down Expand Up @@ -218,7 +217,10 @@
"name": "MilitaryBorg"
},
{
"name": "MechPilot" {
"name": "InitialInfected" }
"name": "MechPilot"
},
{
"name": "InitialInfected"
}
]
}

0 comments on commit d81f84b

Please sign in to comment.