fix disarm action (#7411)
This commit is contained in:
@@ -30,22 +30,7 @@ namespace Content.Shared.CombatMode
|
|||||||
// These are chonky default definitions for combat actions. But its a pain to add a yaml version of this for
|
// These are chonky default definitions for combat actions. But its a pain to add a yaml version of this for
|
||||||
// every entity that wants combat mode, especially given that they're currently all identical... so ummm.. yeah.
|
// every entity that wants combat mode, especially given that they're currently all identical... so ummm.. yeah.
|
||||||
[DataField("disarmAction")]
|
[DataField("disarmAction")]
|
||||||
public readonly EntityTargetAction DisarmAction = new()
|
public readonly EntityTargetAction DisarmAction = new();
|
||||||
{
|
|
||||||
Icon = new SpriteSpecifier.Texture(new ResourcePath("Interface/Actions/disarmOff.png")),
|
|
||||||
IconOn = new SpriteSpecifier.Texture(new ResourcePath("Interface/Actions/disarm.png")),
|
|
||||||
Name = "action-name-disarm",
|
|
||||||
Description = "action-description-disarm",
|
|
||||||
Repeat = true,
|
|
||||||
UseDelay = TimeSpan.FromSeconds(1.5f),
|
|
||||||
InteractOnMiss = true,
|
|
||||||
Event = new DisarmActionEvent(),
|
|
||||||
CanTargetSelf = false,
|
|
||||||
Whitelist = new()
|
|
||||||
{
|
|
||||||
Components = new[] { "Hands", "StatusEffects" },
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
[DataField("combatToggleAction")]
|
[DataField("combatToggleAction")]
|
||||||
public readonly InstantAction CombatToggleAction = new()
|
public readonly InstantAction CombatToggleAction = new()
|
||||||
|
|||||||
@@ -95,6 +95,20 @@
|
|||||||
100: !type:DeadMobState {}
|
100: !type:DeadMobState {}
|
||||||
- type: HeatResistance
|
- type: HeatResistance
|
||||||
- type: CombatMode
|
- type: CombatMode
|
||||||
|
disarmAction:
|
||||||
|
name: action-name-disarm
|
||||||
|
description: action-description-disarm
|
||||||
|
icon: Interface/Actions/disarmOff.png
|
||||||
|
iconOn: Interface/Actions/disarm.png
|
||||||
|
repeat: true
|
||||||
|
useDelay: 1.5
|
||||||
|
interactOnMiss: true
|
||||||
|
event: !type:DisarmActionEvent
|
||||||
|
canTargetSelf: false
|
||||||
|
whitelist:
|
||||||
|
components:
|
||||||
|
- Hands
|
||||||
|
- StatusEffects
|
||||||
- type: Internals
|
- type: Internals
|
||||||
- type: StatusEffects
|
- type: StatusEffects
|
||||||
allowed:
|
allowed:
|
||||||
|
|||||||
@@ -12,6 +12,20 @@
|
|||||||
- type: Hands
|
- type: Hands
|
||||||
- type: DoAfter
|
- type: DoAfter
|
||||||
- type: CombatMode
|
- type: CombatMode
|
||||||
|
disarmAction:
|
||||||
|
name: action-name-disarm
|
||||||
|
description: action-description-disarm
|
||||||
|
icon: Interface/Actions/disarmOff.png
|
||||||
|
iconOn: Interface/Actions/disarm.png
|
||||||
|
repeat: true
|
||||||
|
useDelay: 1.5
|
||||||
|
interactOnMiss: true
|
||||||
|
event: !type:DisarmActionEvent
|
||||||
|
canTargetSelf: false
|
||||||
|
whitelist:
|
||||||
|
components:
|
||||||
|
- Hands
|
||||||
|
- StatusEffects
|
||||||
- type: Actions
|
- type: Actions
|
||||||
- type: PlayerInputMover
|
- type: PlayerInputMover
|
||||||
- type: MovementSpeedModifier
|
- type: MovementSpeedModifier
|
||||||
|
|||||||
@@ -53,6 +53,20 @@
|
|||||||
0: !type:NormalMobState {}
|
0: !type:NormalMobState {}
|
||||||
- type: HeatResistance
|
- type: HeatResistance
|
||||||
- type: CombatMode
|
- type: CombatMode
|
||||||
|
disarmAction:
|
||||||
|
name: action-name-disarm
|
||||||
|
description: action-description-disarm
|
||||||
|
icon: Interface/Actions/disarmOff.png
|
||||||
|
iconOn: Interface/Actions/disarm.png
|
||||||
|
repeat: true
|
||||||
|
useDelay: 1.5
|
||||||
|
interactOnMiss: true
|
||||||
|
event: !type:DisarmActionEvent
|
||||||
|
canTargetSelf: false
|
||||||
|
whitelist:
|
||||||
|
components:
|
||||||
|
- Hands
|
||||||
|
- StatusEffects
|
||||||
- type: Internals
|
- type: Internals
|
||||||
- type: Examiner
|
- type: Examiner
|
||||||
- type: Speech
|
- type: Speech
|
||||||
|
|||||||
@@ -225,3 +225,17 @@
|
|||||||
normal: onestar_boss
|
normal: onestar_boss
|
||||||
dead: onestar_boss_wrecked
|
dead: onestar_boss_wrecked
|
||||||
- type: CombatMode
|
- type: CombatMode
|
||||||
|
disarmAction:
|
||||||
|
name: action-name-disarm
|
||||||
|
description: action-description-disarm
|
||||||
|
icon: Interface/Actions/disarmOff.png
|
||||||
|
iconOn: Interface/Actions/disarm.png
|
||||||
|
repeat: true
|
||||||
|
useDelay: 1.5
|
||||||
|
interactOnMiss: true
|
||||||
|
event: !type:DisarmActionEvent
|
||||||
|
canTargetSelf: false
|
||||||
|
whitelist:
|
||||||
|
components:
|
||||||
|
- Hands
|
||||||
|
- StatusEffects
|
||||||
|
|||||||
@@ -258,6 +258,20 @@
|
|||||||
Burn:
|
Burn:
|
||||||
sprite: Mobs/Effects/burn_damage.rsi
|
sprite: Mobs/Effects/burn_damage.rsi
|
||||||
- type: CombatMode
|
- type: CombatMode
|
||||||
|
disarmAction:
|
||||||
|
name: action-name-disarm
|
||||||
|
description: action-description-disarm
|
||||||
|
icon: Interface/Actions/disarmOff.png
|
||||||
|
iconOn: Interface/Actions/disarm.png
|
||||||
|
repeat: true
|
||||||
|
useDelay: 1.5
|
||||||
|
interactOnMiss: true
|
||||||
|
event: !type:DisarmActionEvent
|
||||||
|
canTargetSelf: false
|
||||||
|
whitelist:
|
||||||
|
components:
|
||||||
|
- Hands
|
||||||
|
- StatusEffects
|
||||||
- type: Climbing
|
- type: Climbing
|
||||||
- type: Cuffable
|
- type: Cuffable
|
||||||
- type: CharacterInfo
|
- type: CharacterInfo
|
||||||
|
|||||||
Reference in New Issue
Block a user