Wizard Staff of Animation (#34649)
This commit is contained in:
70
Resources/Prototypes/Magic/animate_spell.yml
Normal file
70
Resources/Prototypes/Magic/animate_spell.yml
Normal file
@@ -0,0 +1,70 @@
|
||||
- type: entity
|
||||
id: ActionAnimateSpell
|
||||
name: Animate
|
||||
description: Bring an inanimate object to life!
|
||||
components:
|
||||
- type: EntityTargetAction
|
||||
useDelay: 0
|
||||
charges: 5
|
||||
itemIconStyle: BigAction
|
||||
whitelist:
|
||||
components:
|
||||
- Animateable # Currently on: SeatBase, TableBase, ClosetBase, BaseMachine, ConstructibleMachine, BaseComputer, BaseItem, CrateGeneric, StorageTank, GasCanister
|
||||
blacklist:
|
||||
components:
|
||||
- MindContainer
|
||||
- NukeDisk
|
||||
- GravityGenerator
|
||||
- AnomalyGenerator
|
||||
canTargetSelf: false
|
||||
interactOnMiss: false
|
||||
sound: !type:SoundPathSpecifier
|
||||
path: /Audio/Magic/staff_animation.ogg
|
||||
icon:
|
||||
sprite: Objects/Magic/magicactions.rsi
|
||||
state: spell_default
|
||||
event: !type:AnimateSpellEvent
|
||||
addComponents:
|
||||
- type: MindContainer
|
||||
- type: InputMover
|
||||
- type: MobMover
|
||||
- type: MovementSpeedModifier
|
||||
- type: HTN
|
||||
rootTask:
|
||||
task: SimpleHostileCompound
|
||||
- type: CombatMode
|
||||
- type: MeleeWeapon
|
||||
animation: WeaponArcPunch
|
||||
wideAnimation: WeaponArcPunch
|
||||
altDisarm: false
|
||||
soundHit: /Audio/Weapons/smash.ogg
|
||||
range: 1.2
|
||||
angle: 0.0
|
||||
damage:
|
||||
types:
|
||||
Blunt: 10
|
||||
- type: NpcFactionMember
|
||||
factions:
|
||||
- Wizard
|
||||
- type: NoSlip
|
||||
- type: MovementAlwaysTouching
|
||||
- type: CanMoveInAir
|
||||
- type: Damageable
|
||||
damageContainer: ManifestedSpirit
|
||||
damageModifierSet: ManifestedSpirit
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 100
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
collection: MetalBreak
|
||||
- type: Hands
|
||||
- type: CanEscapeInventory
|
||||
removeComponents:
|
||||
- RequireProjectileTarget
|
||||
speech: action-speech-spell-animate
|
||||
@@ -1,4 +1,4 @@
|
||||
# non-projectile / "gun" staves
|
||||
# non-projectile / "gun" staves
|
||||
|
||||
# wand that gives lights an RGB effect.
|
||||
- type: entity
|
||||
@@ -32,6 +32,30 @@
|
||||
enabled: true
|
||||
radius: 2
|
||||
|
||||
- type: entity
|
||||
id: AnimationStaff
|
||||
parent: BaseItem
|
||||
name: staff of animation
|
||||
description: Brings inanimate objects to life!
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Objects/Weapons/Guns/Basic/staves.rsi
|
||||
layers:
|
||||
- state: animation
|
||||
- type: ActionOnInteract
|
||||
actions:
|
||||
- ActionAnimateSpell
|
||||
- type: Item
|
||||
size: Normal
|
||||
inhandVisuals:
|
||||
left:
|
||||
- state: animation-inhand-left
|
||||
right:
|
||||
- state: animation-inhand-right
|
||||
- type: Tag
|
||||
tags:
|
||||
- WizardWand
|
||||
|
||||
- type: entity
|
||||
id: ActionRgbLight
|
||||
components:
|
||||
|
||||
Reference in New Issue
Block a user