Reduce default metabolism rate from 1 to 0.5 (#5445)
This commit is contained in:
@@ -21,7 +21,7 @@ namespace Content.Server.Chemistry.ReagentEffects
|
|||||||
|
|
||||||
public override void Effect(ReagentEffectArgs args)
|
public override void Effect(ReagentEffectArgs args)
|
||||||
{
|
{
|
||||||
EntitySystem.Get<DamageableSystem>().TryChangeDamage(args.SolutionEntity, Damage * args.Quantity, true);
|
EntitySystem.Get<DamageableSystem>().TryChangeDamage(args.SolutionEntity, Damage, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ namespace Content.Server.Chemistry.ReagentEffects
|
|||||||
status.WalkSpeedModifier = WalkSpeedModifier;
|
status.WalkSpeedModifier = WalkSpeedModifier;
|
||||||
status.SprintSpeedModifier = SprintSpeedModifier;
|
status.SprintSpeedModifier = SprintSpeedModifier;
|
||||||
|
|
||||||
IncreaseTimer(status, StatusLifetime * args.Quantity.Float());
|
IncreaseTimer(status, StatusLifetime);
|
||||||
|
|
||||||
if (modified)
|
if (modified)
|
||||||
EntitySystem.Get<MovementSpeedModifierSystem>().RefreshMovementSpeedModifiers(args.SolutionEntity);
|
EntitySystem.Get<MovementSpeedModifierSystem>().RefreshMovementSpeedModifiers(args.SolutionEntity);
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ namespace Content.Server.Chemistry.ReagentEffects
|
|||||||
public override void Effect(ReagentEffectArgs args)
|
public override void Effect(ReagentEffectArgs args)
|
||||||
{
|
{
|
||||||
if (args.EntityManager.TryGetComponent(args.SolutionEntity, out ThirstComponent? thirst))
|
if (args.EntityManager.TryGetComponent(args.SolutionEntity, out ThirstComponent? thirst))
|
||||||
thirst.UpdateThirst(HydrationFactor * (float) args.Quantity);
|
thirst.UpdateThirst(HydrationFactor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ namespace Content.Shared.Chemistry.Reagent
|
|||||||
/// Amount of reagent to metabolize, per metabolism cycle.
|
/// Amount of reagent to metabolize, per metabolism cycle.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("metabolismRate")]
|
[DataField("metabolismRate")]
|
||||||
public FixedPoint2 MetabolismRate = FixedPoint2.New(1.0f);
|
public FixedPoint2 MetabolismRate = FixedPoint2.New(0.5f);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A list of effects to apply when these reagents are metabolized.
|
/// A list of effects to apply when these reagents are metabolized.
|
||||||
|
|||||||
Reference in New Issue
Block a user