Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Spatison committed Aug 31, 2024
1 parent a502eea commit 9b3ae4e
Show file tree
Hide file tree
Showing 26 changed files with 36 additions and 63 deletions.
9 changes: 7 additions & 2 deletions Content.Shared/Weapons/Melee/MeleeWeaponComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public sealed partial class MeleeWeaponComponent : Component
/// Weapon damage is multiplied by this amount for heavy swings
/// </summary>
[DataField, AutoNetworkedField]
public float HeavyDamageBaseModifier = 1.2f;
public float HeavyDamageBaseModifier = 0.6f; // WD EDIT

/// <summary>
/// Total width of the angle for wide attacks.
Expand All @@ -117,6 +117,11 @@ public sealed partial class MeleeWeaponComponent : Component
[DataField, AutoNetworkedField]
public EntProtoId WideAnimation = "WeaponArcSlash";

// WD EDIT START
[ViewVariables(VVAccess.ReadWrite), DataField, AutoNetworkedField]
public EntProtoId DisarmAnimation = "WeaponArcDisarm";
// WD EDIT END

/// <summary>
/// Rotation of the animation.
/// 0 degrees means the top faces the attacker.
Expand All @@ -128,7 +133,7 @@ public sealed partial class MeleeWeaponComponent : Component
public bool SwingLeft;

[DataField, AutoNetworkedField]
public float HeavyStaminaCost = 20f;
public float HeavyStaminaCost = 12f; // WD EDIT

[DataField, AutoNetworkedField]
public int MaxTargets = 5;
Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/Weapons/Melee/SharedMeleeWeaponSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ private bool AttemptAttack(EntityUid user, EntityUid weaponUid, MeleeWeaponCompo
if (!DoDisarm(user, disarm, weaponUid, weapon, session))
return false;

animation = weapon.Animation;
animation = weapon.DisarmAnimation; // WD EDIT
break;
case HeavyAttackEvent heavy:
if (!DoHeavyAttack(user, heavy, weaponUid, weapon, session))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
Shock: 1
bluntStaminaDamageFactor: 1.5
heavyRateModifier: 0.75
heavyDamageBaseModifier: 1.2
heavyStaminaCost: 10
angle: 75
- type: Item
size: Normal
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/Entities/Objects/Misc/briefcases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
Blunt: 3.5
heavyRateModifier: 0.8
heavyRangeModifier: 0.8
heavyDamageBaseModifier: 2
heavyStaminaCost: 5
heavyDamageBaseModifier: 1 # WD EDIT
heavyStaminaCost: 15 # WD EDIT
maxTargets: 8
- type: Tag
tags:
Expand Down
2 changes: 0 additions & 2 deletions Resources/Prototypes/Entities/Objects/Misc/broken_bottle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
Slash: 4
heavyRateModifier: 0.8
heavyRangeModifier: 0.8
heavyDamageBaseModifier: 1.5
heavyStaminaCost: 5
maxTargets: 3
angle: 75
soundHit:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
types:
Blunt: 8
heavyRateModifier: 0.8
heavyDamageBaseModifier: 2
heavyStaminaCost: 15
heavyDamageBaseModifier: 1.2
heavyStaminaCost: 20 # WD EDIT
maxTargets: 8
soundHit:
path: /Audio/Weapons/smash.ogg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@
Blunt: 4
Holy: 20
heavyRateModifier: 0.8
heavyDamageBaseModifier: 1
heavyStaminaCost: 5
maxTargets: 3
- type: Tag
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
Blunt: 3
heavyRateModifier: 1
heavyRangeModifier: 1
heavyDamageBaseModifier: 1.2
heavyDamageBaseModifier: 1 # WD EDIT
heavyStaminaCost: 5
maxTargets: 5
angle: 100
Expand All @@ -47,8 +47,8 @@
Pierce: 7
heavyRateModifier: 0.9
heavyRangeModifier: 1.25
heavyDamageBaseModifier: 1.2
heavyStaminaCost: 5
heavyDamageBaseModifier: 1 # WD EDIT
heavyStaminaCost: 15 # WD EDIT
maxTargets: 1
angle: 20
- type: Item
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
bluntStaminaDamageFactor: 3
heavyRateModifier: 0.8
heavyRangeModifier: 1.25
heavyDamageBaseModifier: 1.25
heavyStaminaCost: 10
heavyDamageBaseModifier: 1 # WD EDIT
heavyStaminaCost: 15 # WD EDIT
maxTargets: 2
angle: 180
soundHit:
Expand Down Expand Up @@ -63,7 +63,7 @@
bluntStaminaDamageFactor: 3
heavyRateModifier: 0.8
heavyRangeModifier: 1.25
heavyDamageBaseModifier: 1.25
heavyDamageBaseModifier: 1 # WD EDIT
heavyStaminaCost: 10
maxTargets: 2
angle: 180
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@
damage:
types:
Piercing: 8
heavyDamageBaseModifier: 1.5
heavyStaminaCost: 5
maxTargets: 1
angle: 20
soundHit:
Expand Down Expand Up @@ -92,8 +90,6 @@
types:
Slash: 7.5
heavyRateModifier: 0.8
heavyDamageBaseModifier: 1.25
heavyStaminaCost: 5
maxTargets: 1
angle: 20
soundHit:
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/Entities/Objects/Tools/gas_tanks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
Blunt: 8
bluntStaminaDamageFactor: 2.5
heavyRateModifier: 0.8
heavyDamageBaseModifier: 1.5
heavyStaminaCost: 15
heavyDamageBaseModifier: 1 # WD EDIT
heavyStaminaCost: 15 # WD EDIT
maxTargets: 1
angle: 140
- type: PhysicalComposition
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/Entities/Objects/Tools/jaws_of_life.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
Slash: 2
bluntStaminaDamageFactor: 2.0
heavyRateModifier: 0.8
heavyDamageBaseModifier: 1.5
heavyStaminaCost: 10
heavyDamageBaseModifier: 1 # WD EDIT
heavyStaminaCost: 20 # WD EDIT
maxTargets: 1
angle: 20
soundHit:
Expand Down
4 changes: 0 additions & 4 deletions Resources/Prototypes/Entities/Objects/Tools/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
types:
Blunt: 6.5
heavyRateModifier: 0.9
heavyDamageBaseModifier: 1.2
heavyStaminaCost: 5
maxTargets: 4
angle: 60
soundHit:
Expand Down Expand Up @@ -102,8 +100,6 @@
types:
Piercing: 6
heavyRateModifier: 0.75
heavyDamageBaseModifier: 1.5
heavyStaminaCost: 5
maxTargets: 1
angle: 20
soundHit:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
Structural: 5
bluntStaminaDamageFactor: 2.0
heavyRateModifier: 0.5
heavyDamageBaseModifier: 1.75
heavyStaminaCost: 15
heavyDamageBaseModifier: 0.8 # WD EDIT
heavyStaminaCost: 15 # WD EDIT
maxTargets: 2
angle: 120
soundHit:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
Blunt: 2
Structural: 4
heavyRateModifier: 0.5
heavyDamageBaseModifier: 1.0
heavyStaminaCost: 15
maxTargets: 20
angle: 160
soundHit:
Expand Down
3 changes: 0 additions & 3 deletions Resources/Prototypes/Entities/Objects/Weapons/Melee/cult.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
types:
Slash: 8
heavyRateModifier: 0.9
heavyDamageBaseModifier: 1.2
heavyStaminaCost: 5
- type: Item
size: Normal
Expand All @@ -43,8 +42,6 @@
damage:
types:
Slash: 12
heavyDamageBaseModifier: 1.2
heavyStaminaCost: 10
maxTargets: 6
angle: 90
- type: Item
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
Blunt: 4
Slash: 6
Structural: 10
heavyDamageBaseModifier: 1.0
heavyStaminaCost: 10
angle: 100
soundHit:
Expand All @@ -30,8 +29,8 @@
- type: IncreaseDamageOnWield
damage:
types:
Blunt: 2
Slash: 5
Blunt: 2.5 # WD EDIT
Slash: 7.5 # WD EDIT
Structural: 40
- type: Item
size: Ginormous
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
Blunt: 11
bluntStaminaDamageFactor: 2.0
heavyRateModifier: 0.5
heavyDamageBaseModifier: 1.75
heavyStaminaCost: 25
heavyDamageBaseModifier: 0.8 # WD EDIT
heavyStaminaCost: 15 # WD EDIT
maxTargets: 2
angle: 120
soundHit:
Expand Down
2 changes: 0 additions & 2 deletions Resources/Prototypes/Entities/Objects/Weapons/Melee/knife.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
types:
Slash: 8
heavyRateModifier: 0.8
heavyDamageBaseModifier: 1.2
heavyStaminaCost: 5
maxTargets: 3
angle: 40
soundHit:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@
Slash: 4
bluntStaminaDamageFactor: 2.0
heavyRateModifier: 0.75
heavyDamageBaseModifier: 1.2
heavyStaminaCost: 10
angle: 120
soundHit:
collection: MetalThud
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
Blunt: 6
Pierce: 3
bluntStaminaDamageFactor: 2.0
heavyDamageBaseModifier: 1.75
heavyStaminaCost: 5
maxTargets: 2
angle: 60
- type: Wieldable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
Structural: 10
bluntStaminaDamageFactor: 2.0
heavyRateModifier: 0.75
heavyDamageBaseModifier: 1.75
heavyStaminaCost: 15
heavyDamageBaseModifier: 1 # WD EDIT
heavyStaminaCost: 20 # WD EDIT
maxTargets: 10
angle: 120
soundHit:
Expand Down
4 changes: 2 additions & 2 deletions Resources/Prototypes/Entities/Objects/Weapons/Melee/spear.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
Slash: 1
heavyRateModifier: 0.75
heavyRangeModifier: 1.25
heavyDamageBaseModifier: 1.0
heavyStaminaCost: 5
heavyDamageBaseModifier: 1
heavyStaminaCost: 20 # WD EDIT
maxTargets: 3
angle: 20
animation: WeaponArcThrust
Expand Down
4 changes: 0 additions & 4 deletions Resources/Prototypes/Entities/Objects/Weapons/Melee/sword.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
Slash: 17 #cmon, it has to be at least BETTER than the rest.
heavyRateModifier: 0.8
heavyRangeModifier: 1
heavyDamageBaseModifier: 1
heavyStaminaCost: 5
maxTargets: 7
angle: 80
- type: Reflect
Expand Down Expand Up @@ -58,8 +56,6 @@
Slash: 12
heavyRateModifier: 0.5
heavyRangeModifier: 3 #Superior Japanese folded steel
heavyDamageBaseModifier: 1.25
heavyStaminaCost: 10
maxTargets: 1
angle: 20
- type: Item
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
bluntStaminaDamageFactor: 2.5
heavyRateModifier: 0.5
heavyRangeModifier: 1.75
heavyDamageBaseModifier: 1.2
heavyStaminaCost: 0
heavyDamageBaseModifier: 1 # WD EDIT
heavyStaminaCost: 20 # WD EDIT
maxTargets: 1
angle: 20
- type: Wieldable
Expand Down
6 changes: 2 additions & 4 deletions Resources/Prototypes/Entities/Objects/Weapons/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
Blunt: 7
bluntStaminaDamageFactor: 2.0
heavyRateModifier: 0.75
heavyDamageBaseModifier: 1.75
heavyStaminaCost: 5
maxTargets: 3
angle: 60
animation: WeaponArcSlash
Expand Down Expand Up @@ -105,8 +103,8 @@
collection: MetalThud
bluntStaminaDamageFactor: 2
heavyRateModifier: 1
heavyDamageBaseModifier: 1.2
heavyStaminaCost: 10
heavyDamageBaseModifier: 0.8 # WD EDIT
heavyStaminaCost: 15 # WD EDIT
- type: Item
size: Normal
- type: Clothing
Expand Down

0 comments on commit 9b3ae4e

Please sign in to comment.