Skip to content

Commit

Permalink
Fire mage line (#247)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Tahsin Jahin Khalid <[email protected]>
  • Loading branch information
knyghtmare and knyghtmare authored Feb 5, 2025
1 parent c2260e6 commit 83da60f
Show file tree
Hide file tree
Showing 4 changed files with 387 additions and 0 deletions.
19 changes: 19 additions & 0 deletions macros/weapon-specials.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
158 changes: 158 additions & 0 deletions units/human-mages/Flame_Initiate.cfg
Original file line number Diff line number Diff line change
@@ -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]
103 changes: 103 additions & 0 deletions units/human-mages/Mage_Ember.cfg
Original file line number Diff line number Diff line change
@@ -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]
107 changes: 107 additions & 0 deletions units/human-mages/Mage_Firestorm.cfg
Original file line number Diff line number Diff line change
@@ -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]

0 comments on commit 83da60f

Please sign in to comment.