Skip to content

Commit

Permalink
using WEAPON_SPECIAL_ARCANE in mainline
Browse files Browse the repository at this point in the history
  • Loading branch information
newfrenchy83 committed Oct 11, 2023
1 parent c8993a4 commit cf0797b
Show file tree
Hide file tree
Showing 16 changed files with 74 additions and 31 deletions.
5 changes: 4 additions & 1 deletion data/campaigns/Dead_Water/scenarios/08_Talking_to_Tyegea.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,10 @@
[effect]
apply_to=attack
range=melee
set_type=arcane
[set_specials]
mode=append
{WEAPON_SPECIAL_ARCANE}
[/set_specials]
[/effect]
[effect]
apply_to=overlay
Expand Down
6 changes: 3 additions & 3 deletions data/campaigns/Delfadors_Memoirs/scenarios/14_Shadows.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@
[/gold_carryover]
[/objectives]

{OBJ_POTION_HOLY 16 5 shadows_holywater1}
{OBJ_POTION_HOLY 32 5 shadows_holywater2}
{OBJ_POTION_HOLY 20 10 shadows_holywater3}
{OBJ_POTION_HOLY_ALT 16 5 shadows_holywater1}
{OBJ_POTION_HOLY_ALT 32 5 shadows_holywater2}
{OBJ_POTION_HOLY_ALT 20 10 shadows_holywater3}
[/event]

[event]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@
[/note]
[/objectives]

{OBJ_POTION_HOLY 26 19 showdown_holywater1}
{OBJ_POTION_HOLY 30 20 showdown_holywater2}
{OBJ_POTION_HOLY 29 20 showdown_holywater3}
{OBJ_POTION_HOLY_ALT 26 19 showdown_holywater1}
{OBJ_POTION_HOLY_ALT 30 20 showdown_holywater2}
{OBJ_POTION_HOLY_ALT 29 20 showdown_holywater3}

[remove_shroud]
side=1,2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
{TURNS_RUN_OUT}
{IS_LAST_SCENARIO}
[/objectives]
{OBJ_POTION_HOLY 23 3 object7_holywater}
{OBJ_POTION_HOLY_ALT 23 3 object7_holywater}
[/event]

[event]
Expand Down
10 changes: 8 additions & 2 deletions data/campaigns/Eastern_Invasion/utils/items.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ crystal_quiver #enddef
[effect]
apply_to=attack
range=ranged
set_type=arcane
[set_specials]
mode=append
{WEAPON_SPECIAL_ARCANE}
[/set_specials]
name=bow,crossbow,composite bow
[/effect]
[effect]
Expand Down Expand Up @@ -196,7 +199,10 @@ holy_amulet_3 #enddef
(
[effect]
apply_to=attack
set_type=arcane
[set_specials]
mode=append
{WEAPON_SPECIAL_ARCANE}
[/set_specials]
[/effect]
[effect]
apply_to=overlay
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,10 @@
set_name=holy sword
set_description=_ "holy sword"
set_icon=attacks/sword-holy.png
set_type=arcane
[set_specials]
mode=append
{WEAPON_SPECIAL_ARCANE}
[/set_specials]
increase_damage=1
increase_attacks=2
[/effect]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@

{STARTING_VILLAGES 4 6}

{OBJ_POTION_HOLY 5 23 object7_holywater}
{OBJ_POTION_HOLY 31 43 object7_holywater2}
{OBJ_POTION_HOLY_ALT 5 23 object7_holywater}
{OBJ_POTION_HOLY_ALT 31 43 object7_holywater2}

[event]
name=prestart
Expand Down Expand Up @@ -270,7 +270,10 @@
set_name=holy sword
set_description=_ "holy sword"
set_icon=attacks/sword-holy.png
set_type=arcane
[set_specials]
mode=append
{WEAPON_SPECIAL_ARCANE}
[/set_specials]
increase_damage=1
increase_attacks=2
[/effect]
Expand Down
10 changes: 5 additions & 5 deletions data/campaigns/Northern_Rebirth/scenarios/05a_01_The_Pursuit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,11 @@
{PLACE_IMAGE items/bonestack.png 34 6}

# Place holy water - uses core macro to set up required pickup event as well
{OBJ_POTION_HOLY 34 26 object7_holywater}
{OBJ_POTION_HOLY 33 27 object7_holywater2}
{OBJ_POTION_HOLY 33 28 object7_holywater3}
{OBJ_POTION_HOLY 32 26 object7_holywater4}
{OBJ_POTION_HOLY 32 27 object7_holywater5}
{OBJ_POTION_HOLY_ALT 34 26 object7_holywater}
{OBJ_POTION_HOLY_ALT 33 27 object7_holywater2}
{OBJ_POTION_HOLY_ALT 33 28 object7_holywater3}
{OBJ_POTION_HOLY_ALT 32 26 object7_holywater4}
{OBJ_POTION_HOLY_ALT 32 27 object7_holywater5}

[event]
name=prestart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
{PLACE_IMAGE (items/dragonstatue.png) 12 1}
{PLACE_IMAGE "items/dragonstatue.png~FL(horiz)" 14 1}

{OBJ_POTION_HOLY 13 19 (holy_helper)}
{OBJ_POTION_HOLY_ALT 13 19 (holy_helper)}

[recall]
id=Burin the Lost
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
{PLACE_IMAGE (scenery/temple1.png) 10 17}
{PLACE_IMAGE (scenery/temple1.png) 9 15}

{OBJ_POTION_HOLY 29 24 (holy_water1)}
{OBJ_POTION_HOLY_ALT 29 24 (holy_water1)}

[set_variable]
name=queen_awake
Expand Down Expand Up @@ -276,7 +276,7 @@
{CLEAR_VARIABLE random}

#ifdef EASY
{OBJ_POTION_HOLY 28 26 (holy_water2)}
{OBJ_POTION_HOLY_ALT 28 26 (holy_water2)}
#endif

[objectives]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1555,10 +1555,7 @@
range=melee
[set_specials]
mode=append
[damage]
id=arcane_damage
added_type=arcane
[/damage]
{WEAPON_SPECIAL_ARCANE}
[/set_specials]
[/effect]
[/object]
Expand Down
5 changes: 4 additions & 1 deletion data/campaigns/World_Conquest/resources/data/artifacts.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,10 @@
[effect]
apply_to=attack
range=melee
set_type=arcane
[set_specials]
mode=append
{WEAPON_SPECIAL_ARCANE}
[/set_specials]
increase_damage=25%
[/effect]
[effect]
Expand Down
5 changes: 4 additions & 1 deletion data/campaigns/World_Conquest/resources/data/training.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,10 @@
[effect]
apply_to=attack
range={WC_STR_ID_{RANGE}}
set_type=arcane
[set_specials]
mode=append
{WEAPON_SPECIAL_ARCANE}
[/set_specials]
increase_damage=25%
[/effect]
[/chance]
Expand Down
19 changes: 17 additions & 2 deletions data/core/macros/items.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
[/event]
#enddef

#define OBJ_POTION_HOLY X Y ID
#define OBJ_POTION_HOLY_COMMON X Y ID ARCANE
# Places holy water that turns the unit's melee attacks into arcane attacks. It can only be used once.
{PICKUPPABLE_ITEM {ID} {X} {Y} (
side=1
Expand All @@ -290,7 +290,7 @@
[effect]
apply_to=attack
range=melee
set_type=arcane
{ARCANE}
[/effect]
[/object]
[sound]
Expand All @@ -299,6 +299,21 @@
)}
#enddef

#define OBJ_POTION_HOLY X Y ID
{OBJ_POTION_HOLY_COMMON {X} {Y} {ID} (set_type=arcane)}
#enddef

#define SET_WEAPON_ARCANE
[set_specials]
mode=append
{WEAPON_SPECIAL_ARCANE}
[/set_specials]
#enddef

#define OBJ_POTION_HOLY_ALT X Y ID
{OBJ_POTION_HOLY_COMMON {X} {Y} {ID} {SET_WEAPON_ARCANE}}
#enddef

#define OBJ_POTION_STRONG X Y ID
# Places a potion of strength that increases the unit's damage by 1 per strike on melee attacks. It can only be used once.
[item]
Expand Down
10 changes: 10 additions & 0 deletions data/core/macros/weapon_specials.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -201,3 +201,13 @@
special_note=_ "This unit is able to stun its enemies, disrupting their zones of control."
[/stun]
#enddef

#define WEAPON_SPECIAL_ARCANE
[damage]
id=arcane_damage
name= _ "arcane"
description= _ "This attack combines the arcane type with the type of weapon used so that resistance to the arcane type does not penalize the user."
special_note=_ "This unit can use the arcane type when the opponent is particularly sensitive to it in relation to the weapon on which it is applied."
added_type=arcane
[/damage]
#enddef
2 changes: 1 addition & 1 deletion data/test/scenarios/manual_tests/scenario-test.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2745,7 +2745,7 @@ For game purposes, the races group into factions; for example, orcs often cooper
{OBJ_RING_SLOW 11 4 OBJ2}
{OBJ_POTION_HEALING 12 4 OBJ3}
{OBJ_POTION_POISON 13 5 OBJ4}
{OBJ_POTION_HOLY 14 4 OBJ5}
{OBJ_POTION_HOLY_ALT 14 4 OBJ5}
{OBJ_POTION_STRONG 15 4 OBJ6}
{OBJ_POTION_DECAY 11 5 OBJ7}
{OBJ_TRIDENT_STORM 12 5 OBJ8}
Expand Down

0 comments on commit cf0797b

Please sign in to comment.