From 83da60fecb742c32e04bfaa06caeffb0786d6b69 Mon Sep 17 00:00:00 2001 From: Tahsin Jahin Khalid Date: Wed, 5 Feb 2025 16:33:29 +0600 Subject: [PATCH] Fire mage line (#247) --------- Co-authored-by: Tahsin Jahin Khalid <5283677+knyghtmare@users.noreply.github.com> --- macros/weapon-specials.cfg | 19 ++++ units/human-mages/Flame_Initiate.cfg | 158 +++++++++++++++++++++++++++ units/human-mages/Mage_Ember.cfg | 103 +++++++++++++++++ units/human-mages/Mage_Firestorm.cfg | 107 ++++++++++++++++++ 4 files changed, 387 insertions(+) create mode 100644 units/human-mages/Flame_Initiate.cfg create mode 100644 units/human-mages/Mage_Ember.cfg create mode 100644 units/human-mages/Mage_Firestorm.cfg diff --git a/macros/weapon-specials.cfg b/macros/weapon-specials.cfg index ecca5f839..f2785025d 100644 --- a/macros/weapon-specials.cfg +++ b/macros/weapon-specials.cfg @@ -173,3 +173,22 @@ special_note={INTERNAL:SPECIAL_NOTES_DRAIN} [/drains] #enddef + +#define WEAPON_SPECIAL_ENERGY + [damage_type] + id=energy_damage + name= _ "energized" + description= _ "This attack can deal either fire or energy damage, depending on which would be more effective." + special_note=_ "This attack can deal either fire or energy damage, depending on which would be more effective." + alternative_type=energy + [/damage_type] +#enddef + +#define WEAPON_SPECIAL_DEGRADE + [degrade] + id="degrade" + name=_"degrade" + description=_"This attack can temporarily corrode armor, lowering physical resistances by 10% for a turn. This can be stacked." + special_note=_"This attack can temporarily corrode armor, lowering physical resistances by 10% for a turn. This can be stacked." + [/degrade] +#enddef diff --git a/units/human-mages/Flame_Initiate.cfg b/units/human-mages/Flame_Initiate.cfg new file mode 100644 index 000000000..17bc26235 --- /dev/null +++ b/units/human-mages/Flame_Initiate.cfg @@ -0,0 +1,158 @@ +#textdomain wesnoth-War_of_Legends +[unit_type] + id="Flame Initiate" + name= _ "Flame Initiate" + # wmllint: general spelling mage mages magery magecraft + race=human + gender=male + image="units/human-magi/mage.png" + profile="portraits/humans/mage.webp" + hitpoints=25 + movement_type=smallfoot + movement=5 + experience=48 + level=1 + alignment=lawful + advances_to=Ember Mage + cost=20 + usage=archer + description= _ "TODO" + die_sound={SOUND_LIST:HUMAN_DIE} + {DEFENSE_ANIM "units/human-magi/mage-defend.png" "units/human-magi/mage.png" {SOUND_LIST:HUMAN_OLD_HIT} } + + [resistance] + fire=90 + [/resistance] + + [attack] + name=staff + description=_"staff" + icon=attacks/staff-magic.png + type=impact + range=melee + damage=5 + number=1 + [/attack] + [attack] + name=fireball + description=_"fireball" + icon=attacks/fireball.png + type=fire + range=ranged + [specials] + {WEAPON_SPECIAL_MAGICAL} + [/specials] + damage=6 + number=4 + [/attack] + + [death] + start_time=0 + [frame] + duration=60 + image="units/human-magi/mage-die-1.png" + [/frame] + [frame] + duration=50 + image="units/human-magi/mage-die-2.png" + [/frame] + [frame] + duration=50 + image="units/human-magi/mage-die-3.png" + [/frame] + [frame] + duration=50 + image="units/human-magi/mage-die-4.png" + [/frame] + [frame] + duration=50 + image="units/human-magi/mage-die-5.png" + [/frame] + [frame] + duration=40 + image="units/human-magi/mage-die-6.png" + [/frame] + [frame] + duration=40 + image="units/human-magi/mage-die-7.png" + [/frame] + [frame] + duration=50 + image="units/human-magi/mage-die-8.png" + [/frame] + [frame] + duration=50 + image="units/human-magi/mage-die-9.png" + [/frame] + [frame] + duration=110 + image="units/human-magi/mage-die-10.png" + [/frame] + [frame] + duration=200 + image="units/human-magi/mage-die-11.png" + [/frame] + [frame] + duration=100 + image="units/human-magi/mage-die-12.png" + [/frame] + [frame] + duration=90 + image="units/human-magi/mage-die-13.png" + [/frame] + [frame] + duration=80 + image="units/human-magi/mage-die-14.png" + [/frame] + [frame] + duration=50 + image="units/human-magi/mage-die-15.png" + [/frame] + [frame] + duration=300 + image="units/human-magi/mage-die-16.png" + [/frame] + [/death] + + [attack_anim] + [filter_attack] + name=fireball + [/filter_attack] + {MISSILE_FRAME_FIREBALL_XY 11 -20} + + start_time=-575 + [frame] + image="units/human-magi/mage.png:50" + [/frame] + [frame] + image="units/human-magi/mage-attack-magic1.png:100" + [/frame] + [frame] + image="units/human-magi/mage-attack-magic[2,1].png:[150,75]" + sound=fire.wav + [/frame] + [frame] + image="units/human-magi/mage.png:75" + [/frame] + [/attack_anim] + + [attack_anim] + [filter_attack] + name=staff + [/filter_attack] + start_time=-250 + [frame] + image="units/human-magi/mage.png:50" + [/frame] + [frame] + image="units/human-magi/mage-attack-staff[1~2].png:[100,200]" + [/frame] + {SOUND:HIT_AND_MISS staff.ogg staff-miss.ogg -125} + [frame] + image="units/human-magi/mage-attack-magic1.png:50" + [/frame] + [frame] + image="units/human-magi/mage.png:50" + [/frame] + [/attack_anim] +[/unit_type] \ No newline at end of file diff --git a/units/human-mages/Mage_Ember.cfg b/units/human-mages/Mage_Ember.cfg new file mode 100644 index 000000000..17493f87c --- /dev/null +++ b/units/human-mages/Mage_Ember.cfg @@ -0,0 +1,103 @@ +#textdomain wesnoth-War_of_Legends +[unit_type] + id="Ember Mage" + name= _ "Ember Mage" + race=human + gender=male + image="units/human-magi/red-mage.png" + profile="portraits/humans/mage-red.webp" + hitpoints=44 + movement_type=smallfoot + movement=5 + experience=83 + level=2 + alignment=neutral + advances_to="Mage of Firestorms" + cost=35 + usage=archer + description= _ "TODO" + + die_sound={SOUND_LIST:HUMAN_DIE} + {DEFENSE_ANIM "units/human-magi/red-mage-defend.png" "units/human-magi/red-mage.png" {SOUND_LIST:HUMAN_OLD_HIT} } + [resistance] + fire=70 + [/resistance] + [attack] + name=staff + description=_"staff" + icon=attacks/staff-magic.png + type=impact + range=melee + damage=6 + number=2 + [/attack] + [attack] + name=fireball + description=_"fireball" + icon=attacks/fireball.png + type=fire + range=ranged + [specials] + {WEAPON_SPECIAL_MAGICAL} + {WEAPON_SPECIAL_ENERGY} + [/specials] + damage=7 + number=5 + [/attack] + [attack] + name=fireball + description=_"intensified fire" + icon=attacks/fireball.png + type=fire + range=ranged + [specials] + {WEAPON_SPECIAL_ENCHANTED} + {WEAPON_SPECIAL_DEGRADE} + {WEAPON_SPECIAL_ATTACK_ONLY} + [/specials] + damage=6 + number=3 + [/attack] + + [attack_anim] + [filter_attack] + name=fireball + [/filter_attack] + {MISSILE_FRAME_FIREBALL_XY 11 -20} + + start_time=-575 + [frame] + image="units/human-magi/red-mage.png:50" + [/frame] + [frame] + image="units/human-magi/red-mage-attack-magic-1.png:100" + [/frame] + [frame] + image="units/human-magi/red-mage-attack-magic-[2,1].png:[150,75]" + sound=fire.wav + [/frame] + [frame] + image="units/human-magi/red-mage.png:75" + [/frame] + [/attack_anim] + [attack_anim] + [filter_attack] + name=staff + [/filter_attack] + + start_time=-250 + [frame] + image="units/human-magi/red-mage.png:50" + [/frame] + [frame] + image="units/human-magi/red-mage-attack-staff-[1~2].png:[100,200]" + [/frame] + {SOUND:HIT_AND_MISS staff.ogg staff-miss.ogg -125} + [frame] + image="units/human-magi/red-mage-attack-magic-1.png:75" + [/frame] + [frame] + image="units/human-magi/red-mage.png:75" + [/frame] + [/attack_anim] +[/unit_type] \ No newline at end of file diff --git a/units/human-mages/Mage_Firestorm.cfg b/units/human-mages/Mage_Firestorm.cfg new file mode 100644 index 000000000..dfa93d5ff --- /dev/null +++ b/units/human-mages/Mage_Firestorm.cfg @@ -0,0 +1,107 @@ +#textdomain wesnoth-War_of_Legends +[unit_type] + id="Mage of Firestorms" + name= _ "Mage of Firestorms" + race=human + gender=male + image="units/human-magi/silver-mage.png" + profile="portraits/humans/mage-silver.webp" + hitpoints=53 + movement_type=smallfoot + movement=5 + experience=150 + level=3 + alignment=neutral + advances_to=null + {AMLA_DEFAULT} + cost=59 + usage=archer + description= _ "TODO" + die_sound={SOUND_LIST:HUMAN_DIE} + [resistance] + fire=50 + [/resistance] + + {DEFENSE_ANIM "units/human-magi/silver-mage-defend.png" "units/human-magi/silver-mage.png" {SOUND_LIST:HUMAN_OLD_HIT} } + [attack] + name=staff + description=_"staff" + icon=attacks/staff-magic.png + type=impact + range=melee + damage=7 + number=2 + [/attack] + [attack] + name=fireball + description=_"fireball" + icon=attacks/fireball.png + type=fire + range=ranged + [specials] + {WEAPON_SPECIAL_MAGICAL} + {WEAPON_SPECIAL_ENERGY} + [/specials] + damage=10 + number=5 + [/attack] + [attack] + name=fireball + description=_"intensified fire" + icon=attacks/fireball.png + type=fire + range=ranged + [specials] + {WEAPON_SPECIAL_ENCHANTED} + {WEAPON_SPECIAL_DEGRADE} + {WEAPON_SPECIAL_ATTACK_ONLY} + [/specials] + damage=8 + number=3 + [/attack] + + [attack_anim] + [filter_attack] + name=fireball + [/filter_attack] + {MISSILE_FRAME_FIREBALL_XY 11 -20} + + start_time=-575 + [frame] + image="units/human-magi/silver-mage.png:50" + [/frame] + [frame] + image="units/human-magi/silver-mage-attack-magic1.png:100" + [/frame] + [frame] + image="units/human-magi/silver-mage-attack-magic2.png:150" + sound=fire.wav + [/frame] + [frame] + image="units/human-magi/silver-mage-attack-magic1.png:75" + [/frame] + [frame] + image="units/human-magi/silver-mage.png:75" + [/frame] + [/attack_anim] + + [attack_anim] + [filter_attack] + name=staff + [/filter_attack] + start_time=-250 + [frame] + image="units/human-magi/silver-mage.png:50" + [/frame] + [frame] + image="units/human-magi/silver-mage-attack-staff[1~2].png:[100,200]" + [/frame] + {SOUND:HIT_AND_MISS staff.ogg staff-miss.ogg -125} + [frame] + image="units/human-magi/silver-mage-attack-magic1.png:75" + [/frame] + [frame] + image="units/human-magi/silver-mage.png:75" + [/frame] + [/attack_anim] +[/unit_type] \ No newline at end of file