[Tweak] Баланс да (#39)

* tweak: hardsuits size ginormous -> huge

* tweak: made common hardsuits slow less

* tweak: materails&coils are smaller

* tweak: AME parts in crate 9 ->18

* tweak: increase ame efficiency 10x

* Revert "tweak: increase ame efficiency 10x"

This reverts commit add91b3b42db78efd37c9a9099911803c72caf71.

* tweak: increased ame injection amount

* tweak: static storage disabled by default

* tweak: show loco above head disabled by default

* tweak: melee attacks system changed

* add: removed alt attack from stunbaton

* add: stamina damage on heavy attack

* tweak: reduced changeling gamerule chance

* tweak: reduced total armblade damage 40 -> 34. Added structural damage

* tweak: limited tentacle gun range

* fix: fixed windoors damagegroups

* fix: fix functions localization
This commit is contained in:
Remuchi
2024-02-11 21:16:07 +07:00
committed by GitHub
parent 3fee07c317
commit a38166ed0f
21 changed files with 144 additions and 105 deletions

View File

@@ -1,6 +1,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Numerics;
using Content.Server.Stunnable.Components;
using Content.Shared.ActionBlocker;
using Content.Shared.Administration.Logs;
using Content.Shared.CombatMode;
@@ -217,6 +218,13 @@ public abstract class SharedMeleeWeaponSystem : EntitySystem
return;
}
// WD EDIT START
if (TryComp<StunbatonComponent>(weaponUid, out _))
{
return;
}
// WD EDIT END
AttemptAttack(args.SenderSession.AttachedEntity.Value, weaponUid, weapon, msg, args.SenderSession);
}
@@ -385,6 +393,12 @@ public abstract class SharedMeleeWeaponSystem : EntitySystem
// Windup time checked elsewhere.
var fireRate = TimeSpan.FromSeconds(1f / GetAttackRate(weaponUid, user, weapon));
if (attack is LightAttackEvent _)
{
fireRate *= 0.8f;
}
var swings = 0;
// TODO: If we get autoattacks then probably need a shotcounter like guns so we can do timing properly.
@@ -561,9 +575,13 @@ public abstract class SharedMeleeWeaponSystem : EntitySystem
var direction = targetMap.Position - userPos;
var distance = Math.Min(component.Range, direction.Length());
var damage = GetDamage(meleeUid, user, component);
var damage = GetDamage(meleeUid, user, component) * 0.70f;
var entities = GetEntityList(ev.Entities);
// WD EDIT
_stamina.TakeStaminaDamage(user, 7);
// WD EDIT END
if (entities.Count == 0)
{
if (meleeUid == user)