Convert CRYSTAL_QUIVER to ability for consistency and move overlay and halo to abilities

I don't know if a bow  attack is added in the objects but in any case I prefer to transfer the special oar in abilities in the same way as for the amulet
This commit is contained in:
newfrenchy83 2024-04-14 18:11:26 +02:00 committed by Gunter Labes
parent 929d62e7f6
commit 51e568ff1c
2 changed files with 21 additions and 22 deletions

View file

@ -536,5 +536,24 @@ When an enemy unit of lower level within a 2 hex radius engages in combat, its a
special_note=_ "This unit's weapons are treated as arcane instead of the declared damage type if that would increase the damage."
alternative_type=arcane
affect_self=yes
overlay_image="misc/arcane-icon.png"
[/damage_type]
#enddef
#define ABILITY_ARCANE_RANGED
[damage_type]
id=arcane_damage_ranged_blessing
name= _ "arcane blessing"
description= _ "All bow or crossbow attacks combine the arcane type with the type of the weapon used, so that resistance to arcane does not penalize the user."
special_note=_ "This unit's bow or crossbow attacks are treated as arcane instead of the declared damage type if that would increase the damage."
alternative_type=arcane
affect_self=yes
overlay_image="misc/crystal-quiver-icon.png"
[filter_student]
[filter_weapon]
range=ranged
name=bow,crossbow,composite bow
[/filter_weapon]
[/filter_student]
[/damage_type]
#enddef

View file

@ -139,29 +139,13 @@ crystal_quiver #enddef
{NOTE_REUSEABLE}
""
(
[effect]
apply_to=attack
range=ranged
[set_specials]
mode=append
{WEAPON_SPECIAL_ARCANE}
[/set_specials]
name=bow,crossbow,composite bow
[/effect]
[effect]
apply_to=new_ability
[abilities]
{ABILITY_ILLUMINATES}
{ABILITY_ILLUMINATES HALO="halo/illuminates-aura.png"}
{ABILITY_ARCANE_RANGED}
[/abilities]
[/effect]
[effect]
apply_to=halo
halo=halo/illuminates-aura.png
[/effect]
[effect]
apply_to=overlay
add=misc/crystal-quiver-icon.png
[/effect]
)
()
}
@ -203,10 +187,6 @@ holy_amulet_3 #enddef
{ABILITY_ARCANE}
[/abilities]
[/effect]
[effect]
apply_to=overlay
add=misc/arcane-icon.png
[/effect]
)
()
}