Disposable turret balance changes (#18155)

* tweaked stats

* change comment
This commit is contained in:
Arendian
2023-07-20 04:16:09 +02:00
committed by GitHub
parent a91c184b83
commit 657d15751b
5 changed files with 43 additions and 12 deletions

View File

@@ -51,6 +51,13 @@ public sealed partial class BallisticAmmoProviderComponent : Component
[AutoNetworkedField]
public bool Cycled = true;
/// <summary>
/// Is the magazine allowed to be cycled
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("cycleable")]
[AutoNetworkedField]
public bool Cycleable = true;
/// <summary>
/// Is it okay for this entity to directly transfer its valid ammunition into another provider?
/// </summary>

View File

@@ -132,13 +132,13 @@ public abstract partial class SharedGunSystem
{
if (!args.CanAccess || !args.CanInteract || args.Hands == null)
return;
args.Verbs.Add(new Verb()
{
Text = Loc.GetString("gun-ballistic-cycle"),
Disabled = GetBallisticShots(component) == 0,
Act = () => ManualCycle(uid, component, Transform(uid).MapPosition, args.User),
});
if (component.Cycleable == true)
args.Verbs.Add(new Verb()
{
Text = Loc.GetString("gun-ballistic-cycle"),
Disabled = GetBallisticShots(component) == 0,
Act = () => ManualCycle(uid, component, Transform(uid).MapPosition, args.User),
});
}
private void OnBallisticExamine(EntityUid uid, BallisticAmmoProviderComponent component, ExaminedEvent args)

View File

@@ -910,7 +910,7 @@
description: uplink-disposable-turret-desc
productEntity: ToolboxElectricalTurretFilled
cost:
Telecrystal: 12
Telecrystal: 8
categories:
- UplinkJob
conditions:

View File

@@ -8,7 +8,7 @@
- type: InteractionOutline
- type: Sprite
sprite: Objects/Weapons/Guns/Turrets/turrets.rsi
drawdepth: WallMountedItems
drawdepth: Mobs
layers:
- state: syndie_broken
- type: Damageable
@@ -55,7 +55,7 @@
ballistic-ammo: !type:Container
- type: Sprite
sprite: Objects/Weapons/Guns/Turrets/turrets.rsi
drawdepth: WallMountedItems
drawdepth: Mobs
layers:
- state: syndie_lethal
- type: InteractionPopup
@@ -152,14 +152,22 @@
min: 1
max: 1
- type: Gun
fireRate: 2.5
fireRate: 2
selectedMode: FullAuto
availableModes:
- FullAuto
soundGunshot: /Audio/Weapons/Guns/Gunshots/gun_sentry.ogg
- type: BallisticAmmoProvider
proto: CartridgePistol
capacity: 125
capacity: 50
cycleable: false
- type: Construction
deconstructionTarget: null
graph: WeaponTurretSyndicateDisposable
node: disposableTurret
- type: Repairable
qualityNeeded: "Anchoring"
doAfterDelay: 3
- type: entity
parent: BaseWeaponTurret

View File

@@ -0,0 +1,16 @@
- type: constructionGraph
id: WeaponTurretSyndicateDisposable
start: disposableTurret
graph:
- node: disposableTurret
entity: WeaponTurretSyndicateDisposable
edges:
- to: disposableTurret
completed:
- !type:SpawnPrototype
prototype: ToolboxElectricalTurret
amount: 1
- !type:DeleteEntity {}
steps:
- tool: Screwing
doAfter: 10