Add more dakka (#307)
* Add more dakka Some slight codebase changes to facilitate more robust behaviour. * Update Content.Server/GameObjects/Components/Projectiles/ProjectileComponent.cs Co-Authored-By: Pieter-Jan Briers <pieterjan.briers@gmail.com> * Remix last stereo to mono hpistol + ltrifle
This commit is contained in:
committed by
Pieter-Jan Briers
parent
44fdf4022e
commit
9431011ba5
@@ -1,7 +1,9 @@
|
||||
using System;
|
||||
using Content.Shared.GameObjects.Components.Weapons.Ranged;
|
||||
using Content.Shared.Utility;
|
||||
using Robust.Client.GameObjects;
|
||||
using Robust.Client.Interfaces.GameObjects.Components;
|
||||
using Robust.Shared.Log;
|
||||
using Robust.Shared.Utility;
|
||||
using YamlDotNet.RepresentationModel;
|
||||
|
||||
@@ -37,8 +39,8 @@ namespace Content.Client.GameObjects.Components.Weapons.Ranged
|
||||
return;
|
||||
}
|
||||
|
||||
var step = ContentHelpers.RoundToLevels(current, capacity, _steps);
|
||||
|
||||
// capacity is - 1 as normally a bullet is chambered so max state is virtually never hit.
|
||||
var step = ContentHelpers.RoundToLevels(current, capacity - 1, _steps);
|
||||
sprite.LayerSetState(0, $"{_baseState}-{step}");
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user