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] [AutoNetworkedField]
public bool Cycled = true; public bool Cycled = true;
/// <summary>
/// Is the magazine allowed to be cycled
/// </summary>
[ViewVariables(VVAccess.ReadWrite), DataField("cycleable")]
[AutoNetworkedField]
public bool Cycleable = true;
/// <summary> /// <summary>
/// Is it okay for this entity to directly transfer its valid ammunition into another provider? /// Is it okay for this entity to directly transfer its valid ammunition into another provider?
/// </summary> /// </summary>

View File

@@ -132,7 +132,7 @@ public abstract partial class SharedGunSystem
{ {
if (!args.CanAccess || !args.CanInteract || args.Hands == null) if (!args.CanAccess || !args.CanInteract || args.Hands == null)
return; return;
if (component.Cycleable == true)
args.Verbs.Add(new Verb() args.Verbs.Add(new Verb()
{ {
Text = Loc.GetString("gun-ballistic-cycle"), Text = Loc.GetString("gun-ballistic-cycle"),

View File

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

View File

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