Random fixes (#668)

* fix captain headrev

* fix double lathe recipe

* fix security webbing whitelist

* fix defibrillator doafter

* revert hardsuits armor stats
This commit is contained in:
ThereDrD
2024-08-27 14:32:28 +03:00
committed by GitHub
parent 82309e9b7b
commit 4a7dd80442
7 changed files with 79 additions and 96 deletions

View File

@@ -74,7 +74,6 @@ public sealed class RevolutionaryRuleSystem : GameRuleSystem<RevolutionaryRuleCo
base.Started(uid, component, gameRule, args); base.Started(uid, component, gameRule, args);
component.CommandCheck = _timing.CurTime + component.TimerWait; component.CommandCheck = _timing.CurTime + component.TimerWait;
} }
protected override void ActiveTick(EntityUid uid, RevolutionaryRuleComponent component, GameRuleComponent gameRule, float frameTime) protected override void ActiveTick(EntityUid uid, RevolutionaryRuleComponent component, GameRuleComponent gameRule, float frameTime)
{ {
base.ActiveTick(uid, component, gameRule, frameTime); base.ActiveTick(uid, component, gameRule, frameTime);
@@ -102,8 +101,10 @@ public sealed class RevolutionaryRuleSystem : GameRuleSystem<RevolutionaryRuleCo
var revsLost = CheckRevsLose(); var revsLost = CheckRevsLose();
var commandLost = CheckCommandLose(); var commandLost = CheckCommandLose();
// This is (revsLost, commandsLost) concatted together // This is (revsLost, commandsLost) concatted together
// (moony wrote this comment idk what it means) // (moony wrote this comment idk what it means)
var index = (commandLost ? 1 : 0) | (revsLost ? 2 : 0); var index = (commandLost ? 1 : 0) | (revsLost ? 2 : 0);
args.AddLine(Loc.GetString(Outcomes[index])); args.AddLine(Loc.GetString(Outcomes[index]));

View File

@@ -62,13 +62,14 @@ public sealed class DefibrillatorSystem : EntitySystem
// WD START // WD START
private void OnStaminaHitAttempt(Entity<DefibrillatorComponent> ent, ref StaminaDamageOnHitAttemptEvent args) private void OnStaminaHitAttempt(Entity<DefibrillatorComponent> ent, ref StaminaDamageOnHitAttemptEvent args)
{ {
var (uid, comp) = ent; if (ent.Comp.Enabled && _powerCell.TryUseActivatableCharge(ent))
if (comp.Enabled && _powerCell.TryUseActivatableCharge(uid))
{ {
if (!_powerCell.HasActivatableCharge(uid)) if (!_powerCell.HasActivatableCharge(ent))
TryDisable(uid, comp); TryDisable(ent);
comp.NextZapTime = _timing.CurTime + TimeSpan.FromSeconds(3);
_appearance.SetData(uid, DefibrillatorVisuals.Ready, false); ent.Comp.NextZapTime = _timing.CurTime + TimeSpan.FromSeconds(3);
_appearance.SetData(ent, DefibrillatorVisuals.Ready, false);
return; return;
} }
@@ -194,10 +195,11 @@ public sealed class DefibrillatorSystem : EntitySystem
return false; return false;
_audio.PlayPvs(component.ChargeSound, uid); _audio.PlayPvs(component.ChargeSound, uid);
return _doAfter.TryStartDoAfter(new DoAfterArgs(EntityManager, user, component.DoAfterDuration, new DefibrillatorZapDoAfterEvent(), return _doAfter.TryStartDoAfter(new DoAfterArgs(EntityManager, user, component.DoAfterDuration, new DefibrillatorZapDoAfterEvent(),
uid, target, uid) uid, target, uid)
{ {
BreakOnMove = user == target, // WD EDIT BreakOnMove = user != target, // WD EDIT
DuplicateCondition = DuplicateConditions.None, // WD EDIT DuplicateCondition = DuplicateConditions.None, // WD EDIT
BlockDuplicate = true, BlockDuplicate = true,
BreakOnHandChange = true, BreakOnHandChange = true,

View File

@@ -50,7 +50,9 @@ public sealed class SharedRevolutionarySystem : EntitySystem
{ {
var stunTime = TimeSpan.FromSeconds(4); var stunTime = TimeSpan.FromSeconds(4);
var name = Identity.Entity(uid, EntityManager); var name = Identity.Entity(uid, EntityManager);
RemComp<RevolutionaryComponent>(uid); RemComp<RevolutionaryComponent>(uid);
_sharedStun.TryParalyze(uid, stunTime, true); _sharedStun.TryParalyze(uid, stunTime, true);
_popupSystem.PopupEntity(Loc.GetString("rev-break-control", ("name", name)), uid); _popupSystem.PopupEntity(Loc.GetString("rev-break-control", ("name", name)), uid);
} }

View File

@@ -655,7 +655,7 @@
- CartridgeAmmo - CartridgeAmmo
- type: entity - type: entity
parent: ClothingBeltSecurity parent: ClothingBeltStorageBase
id: ClothingBeltSecurityWebbing id: ClothingBeltSecurityWebbing
name: security webbing name: security webbing
description: Unique and versatile chest rig, can hold security gear. description: Unique and versatile chest rig, can hold security gear.

View File

@@ -52,11 +52,12 @@
Blunt: 0.9 Blunt: 0.9
Slash: 0.9 Slash: 0.9
Piercing: 0.9 Piercing: 0.9
Heat: 0.8 Heat: 0.2
Radiation: 0.5 Radiation: 0.5
Caustic: 0.5
- type: ClothingSpeedModifier - type: ClothingSpeedModifier
walkModifier: 0.7 walkModifier: 0.75
sprintModifier: 0.7 sprintModifier: 0.75
- type: HeldSpeedModifier - type: HeldSpeedModifier
- type: ToggleableClothing - type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetHardsuitAtmos clothingPrototype: ClothingHeadHelmetHardsuitAtmos
@@ -75,6 +76,8 @@
- type: PressureProtection - type: PressureProtection
highPressureMultiplier: 0.04 highPressureMultiplier: 0.04
lowPressureMultiplier: 1000 lowPressureMultiplier: 1000
- type: TemperatureProtection
coefficient: 0.01
- type: ExplosionResistance - type: ExplosionResistance
damageCoefficient: 0.5 damageCoefficient: 0.5
- type: Armor - type: Armor
@@ -87,8 +90,8 @@
Caustic: 0.5 Caustic: 0.5
Radiation: 0.2 Radiation: 0.2
- type: ClothingSpeedModifier - type: ClothingSpeedModifier
walkModifier: 0.7 walkModifier: 0.85
sprintModifier: 0.7 sprintModifier: 0.85
- type: HeldSpeedModifier - type: HeldSpeedModifier
- type: ToggleableClothing - type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetHardsuitEngineering clothingPrototype: ClothingHeadHelmetHardsuitEngineering
@@ -117,7 +120,7 @@
Caustic: 0.8 Caustic: 0.8
- type: ClothingSpeedModifier - type: ClothingSpeedModifier
walkModifier: 0.9 walkModifier: 0.9
sprintModifier: 0.8 sprintModifier: 0.9
- type: HeldSpeedModifier - type: HeldSpeedModifier
- type: ToggleableClothing - type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetHardsuitSpatio clothingPrototype: ClothingHeadHelmetHardsuitSpatio
@@ -143,12 +146,13 @@
coefficients: coefficients:
Blunt: 0.7 Blunt: 0.7
Slash: 0.7 Slash: 0.7
Piercing: 0.5 Piercing: 0.7
Radiation: 0.3 Radiation: 0.3
Heat: 0.8
Caustic: 0.7 Caustic: 0.7
- type: ClothingSpeedModifier - type: ClothingSpeedModifier
walkModifier: 0.75 walkModifier: 0.85
sprintModifier: 0.75 sprintModifier: 0.85
- type: HeldSpeedModifier - type: HeldSpeedModifier
- type: ToggleableClothing - type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetHardsuitSalvage clothingPrototype: ClothingHeadHelmetHardsuitSalvage
@@ -175,8 +179,9 @@
Blunt: 0.6 Blunt: 0.6
Slash: 0.6 Slash: 0.6
Piercing: 0.5 Piercing: 0.5
Heat: 0.3 Heat: 0.5
Radiation: 0.1 Radiation: 0.1
Caustic: 0.5
- type: ExplosionResistance - type: ExplosionResistance
damageCoefficient: 0.2 damageCoefficient: 0.2
- type: TemperatureProtection - type: TemperatureProtection
@@ -207,16 +212,17 @@
Slash: 0.6 Slash: 0.6
Piercing: 0.6 Piercing: 0.6
Caustic: 0.7 Caustic: 0.7
Heat: 0.7
- type: ClothingSpeedModifier - type: ClothingSpeedModifier
walkModifier: 0.75 walkModifier: 0.85
sprintModifier: 0.75 sprintModifier: 0.85
- type: HeldSpeedModifier - type: HeldSpeedModifier
- type: ToggleableClothing - type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetHardsuitSecurity clothingPrototype: ClothingHeadHelmetHardsuitSecurity
#Brigmedic Hardsuit #Brigmedic Hardsuit
- type: entity - type: entity
parent: ClothingOuterHardsuitBase parent: ClothingOuterHardsuitSecurity
id: ClothingOuterHardsuitBrigmedic id: ClothingOuterHardsuitBrigmedic
name: brigmedic hardsuit name: brigmedic hardsuit
description: Special hardsuit of the guardian angel of the brig. It is the medical version of the security hardsuit. description: Special hardsuit of the guardian angel of the brig. It is the medical version of the security hardsuit.
@@ -225,25 +231,19 @@
sprite: Clothing/OuterClothing/Hardsuits/brigmedic.rsi sprite: Clothing/OuterClothing/Hardsuits/brigmedic.rsi
- type: Clothing - type: Clothing
sprite: Clothing/OuterClothing/Hardsuits/brigmedic.rsi sprite: Clothing/OuterClothing/Hardsuits/brigmedic.rsi
- type: PressureProtection
highPressureMultiplier: 0.3
lowPressureMultiplier: 1000
- type: Armor - type: Armor
modifiers: modifiers:
coefficients: coefficients:
Blunt: 0.8 Blunt: 0.8
Slash: 0.8 Slash: 0.8
Piercing: 0.7 Piercing: 0.7
- type: ClothingSpeedModifier Heat: 0.9
walkModifier: 0.65
sprintModifier: 0.65
- type: HeldSpeedModifier
- type: ToggleableClothing - type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetHardsuitBrigmedic clothingPrototype: ClothingHeadHelmetHardsuitBrigmedic
#Warden's Hardsuit #Warden's Hardsuit
- type: entity - type: entity
parent: ClothingOuterHardsuitBase parent: ClothingOuterHardsuitSecurity
id: ClothingOuterHardsuitWarden id: ClothingOuterHardsuitWarden
name: warden's hardsuit name: warden's hardsuit
description: A specialized riot suit geared to combat low pressure environments. description: A specialized riot suit geared to combat low pressure environments.
@@ -252,28 +252,20 @@
sprite: Clothing/OuterClothing/Hardsuits/security-warden.rsi sprite: Clothing/OuterClothing/Hardsuits/security-warden.rsi
- type: Clothing - type: Clothing
sprite: Clothing/OuterClothing/Hardsuits/security-warden.rsi sprite: Clothing/OuterClothing/Hardsuits/security-warden.rsi
- type: PressureProtection
highPressureMultiplier: 0.5
lowPressureMultiplier: 1000
- type: ExplosionResistance
damageCoefficient: 0.4
- type: Armor - type: Armor
modifiers: modifiers:
coefficients: coefficients:
Blunt: 0.5 Blunt: 0.55
Slash: 0.6 Slash: 0.55
Piercing: 0.6 Piercing: 0.55
Caustic: 0.7 Caustic: 0.65
- type: ClothingSpeedModifier Heat: 0.65
walkModifier: 0.7
sprintModifier: 0.7
- type: HeldSpeedModifier
- type: ToggleableClothing - type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetHardsuitWarden clothingPrototype: ClothingHeadHelmetHardsuitWarden
#Captain's Hardsuit #Captain's Hardsuit
- type: entity - type: entity
parent: ClothingOuterHardsuitBase parent: ClothingOuterHardsuitWarden
id: ClothingOuterHardsuitCap id: ClothingOuterHardsuitCap
name: captain's armored spacesuit name: captain's armored spacesuit
description: A formal armored spacesuit, made for the station's captain. description: A formal armored spacesuit, made for the station's captain.
@@ -285,13 +277,11 @@
- type: PressureProtection - type: PressureProtection
highPressureMultiplier: 0.02 highPressureMultiplier: 0.02
lowPressureMultiplier: 1000 lowPressureMultiplier: 1000
- type: ExplosionResistance
damageCoefficient: 0.5
- type: Armor - type: Armor
modifiers: modifiers:
coefficients: coefficients:
Blunt: 0.8 Blunt: 0.6
Slash: 0.8 Slash: 0.6
Piercing: 0.6 Piercing: 0.6
Heat: 0.5 Heat: 0.5
Radiation: 0.5 Radiation: 0.5
@@ -299,7 +289,6 @@
- type: ClothingSpeedModifier - type: ClothingSpeedModifier
walkModifier: 0.8 walkModifier: 0.8
sprintModifier: 0.8 sprintModifier: 0.8
- type: HeldSpeedModifier
- type: ToggleableClothing - type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetHardsuitCap clothingPrototype: ClothingHeadHelmetHardsuitCap
@@ -329,8 +318,8 @@
Radiation: 0.0 Radiation: 0.0
Caustic: 0.7 Caustic: 0.7
- type: ClothingSpeedModifier - type: ClothingSpeedModifier
walkModifier: 0.75 walkModifier: 0.85
sprintModifier: 0.8 sprintModifier: 0.85
- type: HeldSpeedModifier - type: HeldSpeedModifier
- type: ToggleableClothing - type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetHardsuitEngineeringWhite clothingPrototype: ClothingHeadHelmetHardsuitEngineeringWhite
@@ -365,7 +354,7 @@
parent: ClothingOuterHardsuitBase parent: ClothingOuterHardsuitBase
id: ClothingOuterHardsuitRd id: ClothingOuterHardsuitRd
name: experimental research hardsuit name: experimental research hardsuit
description: A special suit that protects against hazardous, low pressure environments. Has an additional layer of armor. description: A special suit that protects against hazardous, low pressure environments. Has an additional layer of armor. Able to be compressed to small sizes.
components: components:
- type: Sprite - type: Sprite
sprite: Clothing/OuterClothing/Hardsuits/rd.rsi sprite: Clothing/OuterClothing/Hardsuits/rd.rsi
@@ -386,15 +375,16 @@
- type: ExplosionResistance - type: ExplosionResistance
damageCoefficient: 0.1 damageCoefficient: 0.1
- type: ClothingSpeedModifier - type: ClothingSpeedModifier
walkModifier: 0.75 walkModifier: 0.8
sprintModifier: 0.75 sprintModifier: 0.8
- type: HeldSpeedModifier - type: HeldSpeedModifier
- type: Item - type: Item
size: Normal size: Huge
- type: Tag - type: Tag
tags: tags:
- WhitelistChameleon - WhitelistChameleon
- HighRiskItem - HighRiskItem
- Hardsuit
- type: ToggleableClothing - type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetHardsuitRd clothingPrototype: ClothingHeadHelmetHardsuitRd
- type: StaticPrice - type: StaticPrice
@@ -474,8 +464,6 @@
components: components:
- type: Sprite - type: Sprite
sprite: Clothing/OuterClothing/Hardsuits/syndicate.rsi sprite: Clothing/OuterClothing/Hardsuits/syndicate.rsi
- type: Item
size: Huge
- type: Clothing - type: Clothing
sprite: Clothing/OuterClothing/Hardsuits/syndicate.rsi sprite: Clothing/OuterClothing/Hardsuits/syndicate.rsi
- type: PressureProtection - type: PressureProtection
@@ -540,15 +528,13 @@
coefficient: 0.001 coefficient: 0.001
- type: ExplosionResistance - type: ExplosionResistance
damageCoefficient: 0.2 damageCoefficient: 0.2
- type: FireProtection
reduction: 0.8 # perfect protection like atmos firesuit for pyro tf2 ops
- type: Armor - type: Armor
modifiers: modifiers:
coefficients: coefficients:
Blunt: 0.6 Blunt: 0.5
Slash: 0.6 Slash: 0.5
Piercing: 0.6 Piercing: 0.5
Heat: 0.2 Heat: 0.4
Radiation: 0.01 Radiation: 0.01
Caustic: 0.5 Caustic: 0.5
- type: Item - type: Item
@@ -581,7 +567,7 @@
coefficients: coefficients:
Blunt: 0.4 Blunt: 0.4
Slash: 0.4 Slash: 0.4
Piercing: 0.3 Piercing: 0.4
Heat: 0.5 Heat: 0.5
Radiation: 0.25 Radiation: 0.25
Caustic: 0.4 Caustic: 0.4
@@ -614,12 +600,12 @@
Blunt: 0.2 Blunt: 0.2
Slash: 0.2 Slash: 0.2
Piercing: 0.2 Piercing: 0.2
Heat: 0.2 Heat: 0.4
Radiation: 0.2 Radiation: 0.2
Caustic: 0.2 Caustic: 0.2
- type: ClothingSpeedModifier - type: ClothingSpeedModifier
walkModifier: 0.9 walkModifier: 0.9
sprintModifier: 0.65 sprintModifier: 0.7
- type: HeldSpeedModifier - type: HeldSpeedModifier
- type: ToggleableClothing - type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetHardsuitCybersun clothingPrototype: ClothingHeadHelmetHardsuitCybersun
@@ -645,14 +631,10 @@
coefficients: coefficients:
Blunt: 0.6 Blunt: 0.6
Slash: 0.6 Slash: 0.6
Piercing: 0.4 Piercing: 0.6
Heat: 0.25 Heat: 0.6
Radiation: 0.25 Radiation: 0.25
Caustic: 0.75 Caustic: 0.25
- type: ClothingSpeedModifier
walkModifier: 0.8
sprintModifier: 0.8
- type: HeldSpeedModifier
- type: ToggleableClothing - type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetHardsuitWizard clothingPrototype: ClothingHeadHelmetHardsuitWizard
- type: ContainerContainer - type: ContainerContainer
@@ -676,6 +658,9 @@
canInteractUse: false canInteractUse: false
damageEnergyDraw: 15 damageEnergyDraw: 15
domePrototype: EnergyDomeSmallPink domePrototype: EnergyDomeSmallPink
- type: ClothingSpeedModifier
walkModifier: 0.9
sprintModifier: 0.9
- type: PowerCellDraw - type: PowerCellDraw
drawRate: 8 drawRate: 8
useRate: 0 useRate: 0
@@ -871,7 +856,7 @@
- type: entity - type: entity
parent: ClothingOuterHardsuitBase parent: ClothingOuterHardsuitBase
id: ClothingOuterHardsuitDeathsquad id: ClothingOuterHardsuitDeathsquad
name: death squad hardsuit name: deathsquad hardsuit
description: An advanced hardsuit favored by commandos for use in special operations. description: An advanced hardsuit favored by commandos for use in special operations.
components: components:
- type: Sprite - type: Sprite
@@ -881,25 +866,23 @@
- type: PressureProtection - type: PressureProtection
highPressureMultiplier: 0.02 highPressureMultiplier: 0.02
lowPressureMultiplier: 1000 lowPressureMultiplier: 1000
- type: TemperatureProtection
coefficient: 0.001
- type: ExplosionResistance
damageCoefficient: 0.2
- type: Armor
modifiers:
coefficients:
Blunt: 0.1 #best armor in the game
Slash: 0.1
Piercing: 0.1
Heat: 0.1
Radiation: 0.1
Caustic: 0.1
- type: ClothingSpeedModifier - type: ClothingSpeedModifier
walkModifier: 1.0 walkModifier: 1.0
sprintModifier: 1.0 sprintModifier: 1.0
- type: HeldSpeedModifier - type: Armor
modifiers:
coefficients:
Blunt: 0.2 #best armor in the game
Slash: 0.2
Piercing: 0.2
Heat: 0.2
Radiation: 0.2
Caustic: 0.2
- type: ExplosionResistance
damageCoefficient: 0.2
- type: ToggleableClothing - type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetHardsuitDeathsquad clothingPrototype: ClothingHeadHelmetHardsuitDeathsquad
- type: GiftIgnore
#CBURN Hardsuit #CBURN Hardsuit
- type: entity - type: entity

View File

@@ -184,6 +184,9 @@
mindComponents: mindComponents:
- type: RevolutionaryRole - type: RevolutionaryRole
prototype: HeadRev prototype: HeadRev
blacklist: # WD
components:
- CommandStaff
- type: entity - type: entity
id: Sandbox id: Sandbox

View File

@@ -406,14 +406,6 @@
materials: materials:
Steel: 300 Steel: 300
- type: latheRecipe # WD
id: MagazinePistolCaselessRifle
result: MagazinePistolCaselessRifle
category: Ammo
completetime: 5
materials:
Steel: 300
- type: latheRecipe - type: latheRecipe
id: ShellShotgunIncendiary id: ShellShotgunIncendiary
result: ShellShotgunIncendiary result: ShellShotgunIncendiary