Made a custom unit type for Jevyan's familiar,

...which is now a winged skull instead of a bat.
This commit is contained in:
Lari Nieminen 2010-11-05 15:35:20 +00:00
parent 14366637f8
commit a30cbb6169
13 changed files with 224 additions and 22 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -453,13 +453,13 @@
name=turn 4
[move_unit_fake]
type=Dread Bat
type=Familiar
side=5
x=45,44,43,42
y=22,22,23,23
[/move_unit_fake]
{LIVING_INTEL (Dread Bat) (Familiar) ( _ "Familiar") "portraits/familiar.png" 5 42 23}
{LIVING_INTEL (Familiar) (Familiar) ( _ "Familiar") "portraits/familiar.png" 5 42 23}
[+unit]
facing=sw
[/unit]
@ -535,7 +535,7 @@
[/kill]
[move_unit_fake]
type=Dread Bat
type=Familiar
side=5
x=42,43,44,45
y=23,23,22,22

View file

@ -277,18 +277,18 @@
message= _ "I dont find that thought very comforting."
[/message]
[move_unit_fake]
type=Dread Bat
type=Familiar
side=4
x=3,3,4
y=1,2,2
[/move_unit_fake]
{LIVING_INTEL (Dread Bat) (Familiar) ( _ "Familiar") "portraits/familiar.png" 4 4 2}
{LIVING_INTEL (Familiar) (Familiar) ( _ "Familiar") "portraits/familiar.png" 4 4 2}
# wmllint: recognize Familiar
# wmllint: directory spelling Neep
[message]
speaker=Familiar
message= _ "Neep! Neep!"
message= _ "<i>Clack</i>! <i>Clack!</i>"
[/message]
[kill]
@ -296,7 +296,7 @@
[/kill]
[move_unit_fake]
type=Dread Bat
type=Familiar
side=4
x=4,3,2,1
y=2,3,2,2

View file

@ -362,18 +362,18 @@
[/message]
[move_unit_fake]
type=Dread Bat
type=Familiar
side=4
x=1,2,3
y=25,25,26
[/move_unit_fake]
{LIVING_INTEL (Dread Bat) (Familiar) ( _ "Familiar") "portraits/familiar.png" 4 3 26}
{LIVING_INTEL (Familiar) (Familiar) ( _ "Familiar") "portraits/familiar.png" 4 3 26}
# wmllint: recognize Familiar
[message]
speaker=Familiar
message= _ "Neep! Neep!"
message= _ "<i>Clack</i>! <i>Clack!</i>"
[/message]
[kill]
@ -381,7 +381,7 @@
[/kill]
[move_unit_fake]
type=Dread Bat
type=Familiar
side=4
x=3,3,2,1
y=26,27,27,28

View file

@ -272,20 +272,20 @@
[/message]
[move_unit_fake]
type=Dread Bat
type=Familiar
side=4
x=1,2,3
y=15,15,15
[/move_unit_fake]
{LIVING_INTEL (Dread Bat) (Familiar) ( _ "Familiar") "portraits/familiar.png" 4 3 15}
{LIVING_INTEL (Familiar) (Familiar) ( _ "Familiar") "portraits/familiar.png" 4 3 15}
[kill]
id=Familiar
[/kill]
[move_unit_fake]
type=Dread Bat
type=Familiar
side=4
x=3,3,2,1
y=15,14,13,13

View file

@ -256,13 +256,13 @@
name=turn 5
[move_unit_fake]
type=Dread Bat
type=Familiar
side=2
x=29,28,28
y=1,1,2
[/move_unit_fake]
{LIVING_INTEL (Dread Bat) (Familiar) ( _ "Familiar") "portraits/familiar.png" 2 28 2}
{LIVING_INTEL (Familiar) (Familiar) ( _ "Familiar") "portraits/familiar.png" 2 28 2}
# wmllint: recognize Familiar
[move_unit_fake]
@ -315,7 +315,7 @@
[message]
speaker=Familiar
message= _ "Neep! Neep!"
message= _ "<i>Clack</i>! <i>Clack!</i>"
[/message]
[kill]
@ -323,7 +323,7 @@
[/kill]
[move_unit_fake]
type=Dread Bat
type=Familiar
side=2
x=28,28,29
y=2,1,1

View file

@ -262,7 +262,7 @@
image=misc/treaty-icon.png
[/unit_overlay]
{LIVING_INTEL (Dread Bat) (Familiar) ( _ "Familiar") "portraits/familiar.png" 2 40 39}
{LIVING_INTEL (Familiar) (Familiar) ( _ "Familiar") "portraits/familiar.png" 2 40 39}
# wmllint: recognize Familiar
[objectives]
@ -376,7 +376,7 @@
[/message]
[message]
speaker=Familiar
message= _ "Neep! Neep!"
message= _ "<i>Clack</i>! <i>Clack!</i>"
[/message]
[message]
speaker=Prince Haldric
@ -479,7 +479,7 @@
[/filter]
[message]
speaker=Familiar
message= _ "Neep! Neep!"
message= _ "<i>Clack</i>! <i>Clack!</i>"
[/message]
[/event]
@ -1346,7 +1346,7 @@
[/filter]
[message]
speaker=Familiar
message= _ "Neep! <i>Splat</i>!" # wmllint: no spellcheck
message= _ "<i>Clack</i>! <i>Splat</i>!" # wmllint: no spellcheck
[/message]
[/event]

View file

@ -0,0 +1,202 @@
#textdomain wesnoth-trow
[unit_type]
id=Familiar
name= _ "Familiar"
race=undead
image="units/familiar-3.png"
hitpoints=36
movement_type=smallfly
movement=8
experience=150
level=2
alignment=chaotic
advances_to=null
{AMLA_DEFAULT}
cost=40
usage=scout
description= _ "Powerful liches sometimes assemble a unique familiar to act as a personal spy or messenger."
die_sound=bat-flapping.wav
# Use undeadfoot resistances despite the smallfly movement values
[resistance]
blade=90
pierce=70
impact=110
fire=120
cold=40
arcane=150
[/resistance]
[attack]
name=bite
description= _"bite"
icon=attacks/fangs-animal.png
type=blade
range=melee
damage=5
number=5
[/attack]
[defend]
[if]
hits=miss
offset=0.0~-0.15,-0.15~0.0
[/if]
start_time=-126
[frame]
duration=1
image="units/familiar-3.png"
[/frame]
[frame]
duration=50
image="units/familiar-4.png"
[/frame]
[if]
hits=hit
[frame]
duration=200
image="units/familiar-4.png"
sound=familiar-teeth.ogg
[/frame]
[/if]
[else]
hits=miss,kill
[frame]
duration=200
image="units/familiar-4.png"
[/frame]
[/else]
[frame]
duration=1
image="units/familiar-3.png"
[/frame]
[/defend]
[standing_anim]
layer=60
start_time=0
[frame]
duration=50
image="units/familiar-3.png"
[/frame]
[frame]
duration=60
image="units/familiar-2.png"
[/frame]
[frame]
duration=80
image="units/familiar-1.png"
[/frame]
[frame]
duration=60
image="units/familiar-2.png"
[/frame]
[frame]
duration=50
image="units/familiar-3.png"
[/frame]
[frame]
duration=60
image="units/familiar-4.png"
[/frame]
[frame]
duration=80
image="units/familiar-5.png"
[/frame]
[frame]
duration=60
image="units/familiar-4.png"
[/frame]
[/standing_anim]
[movement_anim]
start_time=0
[frame]
duration=50
image="units/familiar-3.png"
[/frame]
[frame]
duration=60
image="units/familiar-2.png"
[/frame]
[frame]
duration=80
image="units/familiar-1.png"
[/frame]
[frame]
duration=60
image="units/familiar-2.png"
[/frame]
[frame]
duration=50
image="units/familiar-3.png"
[/frame]
[frame]
duration=60
image="units/familiar-4.png"
[/frame]
[frame]
duration=80
image="units/familiar-5.png"
[/frame]
[frame]
duration=60
image="units/familiar-4.png"
[/frame]
[/movement_anim]
[attack_anim]
[filter_attack]
name=bite
[/filter_attack]
offset=0.0~0.9:200,0.9~0.0:160
start_time=-200
[frame]
duration=30
image="units/familiar-3.png"
[/frame]
[frame]
duration=30
image="units/familiar-2.png"
[/frame]
[frame]
duration=30
image="units/familiar-1.png"
sound=bat-flapping.wav
[/frame]
[frame]
duration=30
image="units/familiar-2.png"
[/frame]
[frame]
duration=30
image="units/familiar-3.png"
[/frame]
[if]
hits=yes
[frame]
duration=70
image="units/familiar-4.png"
sound=bite-small.ogg
[/frame]
[/if]
[else]
hits=no
[frame]
duration=70
image="units/familiar-4.png"
sound={SOUND_LIST:MISS}
[/frame]
[/else]
[frame]
duration=50
image="units/familiar-3.png"
[/frame]
[frame]
duration=50
image="units/familiar-2.png"
[/frame]
[frame]
duration=40
image="units/familiar-3.png"
[/frame]
[/attack_anim]
[/unit_type]