diff --git a/animations/loot/stone1.txt b/animations/loot/stone1.txt new file mode 100644 index 0000000..148497b --- /dev/null +++ b/animations/loot/stone1.txt @@ -0,0 +1,12 @@ +image=images/loot/small1.png + +[animarion] +frames=6 +duration=600ms +type=play_once +frame=0,0,0,32,32,32,32 +frame=1,0,0,32,32,32,32 +frame=2,0,0,32,32,32,32 +frame=3,0,0,32,32,32,32 +frame=4,0,0,32,32,32,32 +frame=5,0,0,32,32,32,32 diff --git a/animations/loot/stone2.txt b/animations/loot/stone2.txt new file mode 100644 index 0000000..6f12f05 --- /dev/null +++ b/animations/loot/stone2.txt @@ -0,0 +1,12 @@ +image=images/loot/small2.png + +[animarion] +frames=6 +duration=600ms +type=play_once +frame=0,0,0,32,32,32,32 +frame=1,0,0,32,32,32,32 +frame=2,0,0,32,32,32,32 +frame=3,0,0,32,32,32,32 +frame=4,0,0,32,32,32,32 +frame=5,0,0,32,32,32,32 diff --git a/animations/powers/axe.txt b/animations/powers/axe.txt new file mode 100644 index 0000000..d62ca34 --- /dev/null +++ b/animations/powers/axe.txt @@ -0,0 +1,17 @@ +image=images/powers/axe_female.png + +render_size=16,16 +render_offset=8,8 + +[power] +position=0 +frames=6 +duration=33ms +type=looped +active_frame=all +frame=0,0,0,0,37,26,20,34 +frame=1,1,32,0,30,32,14,40 +frame=2,2,64,0,13,34,2,42 +frame=3,3,96,0,29,32,6,40 +frame=4,4,128,0,36,26,8,34 +frame=5,5,160,0,29,34,6,35 diff --git a/animations/powers/pickaxe.txt b/animations/powers/pickaxe.txt new file mode 100644 index 0000000..d62ca34 --- /dev/null +++ b/animations/powers/pickaxe.txt @@ -0,0 +1,17 @@ +image=images/powers/axe_female.png + +render_size=16,16 +render_offset=8,8 + +[power] +position=0 +frames=6 +duration=33ms +type=looped +active_frame=all +frame=0,0,0,0,37,26,20,34 +frame=1,1,32,0,30,32,14,40 +frame=2,2,64,0,13,34,2,42 +frame=3,3,96,0,29,32,6,40 +frame=4,4,128,0,36,26,8,34 +frame=5,5,160,0,29,34,6,35 diff --git a/animations/rocks/large1.txt b/animations/rocks/large1.txt new file mode 100644 index 0000000..3769f57 --- /dev/null +++ b/animations/rocks/large1.txt @@ -0,0 +1,40 @@ +image=images/rocks/large1.png + +[stance] +frames=1 +duration=400ms +type=looped +frame=0,SW,0,0,160,150,80,190 +frame=0,W,0,0,160,150,80,190 +frame=0,NW,0,0,160,150,80,190 +frame=0,N,0,0,160,150,80,190 +frame=0,NE,0,0,160,150,80,190 +frame=0,E,0,0,160,150,80,190 +frame=0,SE,0,0,160,150,80,190 +frame=0,S,0,0,160,150,80,190 + +[run] +frames=1 +duration=400ms +type=looped +frame=0,SW,0,0,160,150,80,190 +frame=0,W,0,0,160,150,80,190 +frame=0,NW,0,0,160,150,80,190 +frame=0,N,0,0,160,150,80,190 +frame=0,NE,0,0,160,150,80,190 +frame=0,E,0,0,160,150,80,190 +frame=0,SE,0,0,160,150,80,190 +frame=0,S,0,0,160,150,80,190 + +[die] +frames=1 +duration=33ms +type=looped +frame=0,0,0,0,0,0,0,0 +frame=0,1,0,0,0,0,0,0 +frame=0,2,0,0,0,0,0,0 +frame=0,3,0,0,0,0,0,0 +frame=0,4,0,0,0,0,0,0 +frame=0,5,0,0,0,0,0,0 +frame=0,6,0,0,0,0,0,0 +frame=0,7,0,0,0,0,0,0 diff --git a/animations/rocks/large2.txt b/animations/rocks/large2.txt new file mode 100644 index 0000000..3e9386f --- /dev/null +++ b/animations/rocks/large2.txt @@ -0,0 +1,40 @@ +image=images/rocks/large2.png + +[stance] +frames=1 +duration=400ms +type=looped +frame=0,SW,0,0,160,150,80,190 +frame=0,W,0,0,160,150,80,190 +frame=0,NW,0,0,160,150,80,190 +frame=0,N,0,0,160,150,80,190 +frame=0,NE,0,0,160,150,80,190 +frame=0,E,0,0,160,150,80,190 +frame=0,SE,0,0,160,150,80,190 +frame=0,S,0,0,160,150,80,190 + +[run] +frames=1 +duration=400ms +type=looped +frame=0,SW,0,0,160,150,80,190 +frame=0,W,0,0,160,150,80,190 +frame=0,NW,0,0,160,150,80,190 +frame=0,N,0,0,160,150,80,190 +frame=0,NE,0,0,160,150,80,190 +frame=0,E,0,0,160,150,80,190 +frame=0,SE,0,0,160,150,80,190 +frame=0,S,0,0,160,150,80,190 + +[die] +frames=1 +duration=33ms +type=looped +frame=0,0,0,0,0,0,0,0 +frame=0,1,0,0,0,0,0,0 +frame=0,2,0,0,0,0,0,0 +frame=0,3,0,0,0,0,0,0 +frame=0,4,0,0,0,0,0,0 +frame=0,5,0,0,0,0,0,0 +frame=0,6,0,0,0,0,0,0 +frame=0,7,0,0,0,0,0,0 diff --git a/animations/rocks/large3.txt b/animations/rocks/large3.txt new file mode 100644 index 0000000..fb86e10 --- /dev/null +++ b/animations/rocks/large3.txt @@ -0,0 +1,40 @@ +image=images/rocks/large3.png + +[stance] +frames=1 +duration=400ms +type=looped +frame=0,SW,0,0,160,150,80,190 +frame=0,W,0,0,160,150,80,190 +frame=0,NW,0,0,160,150,80,190 +frame=0,N,0,0,160,150,80,190 +frame=0,NE,0,0,160,150,80,190 +frame=0,E,0,0,160,150,80,190 +frame=0,SE,0,0,160,150,80,190 +frame=0,S,0,0,160,150,80,190 + +[run] +frames=1 +duration=400ms +type=looped +frame=0,SW,0,0,160,150,80,190 +frame=0,W,0,0,160,150,80,190 +frame=0,NW,0,0,160,150,80,190 +frame=0,N,0,0,160,150,80,190 +frame=0,NE,0,0,160,150,80,190 +frame=0,E,0,0,160,150,80,190 +frame=0,SE,0,0,160,150,80,190 +frame=0,S,0,0,160,150,80,190 + +[die] +frames=1 +duration=33ms +type=looped +frame=0,0,0,0,0,0,0,0 +frame=0,1,0,0,0,0,0,0 +frame=0,2,0,0,0,0,0,0 +frame=0,3,0,0,0,0,0,0 +frame=0,4,0,0,0,0,0,0 +frame=0,5,0,0,0,0,0,0 +frame=0,6,0,0,0,0,0,0 +frame=0,7,0,0,0,0,0,0 diff --git a/animations/rocks/medium1.txt b/animations/rocks/medium1.txt new file mode 100644 index 0000000..19beb7d --- /dev/null +++ b/animations/rocks/medium1.txt @@ -0,0 +1,40 @@ +image=images/rocks/medium1.png + +[stance] +frames=1 +duration=400ms +type=looped +frame=0,SW,0,0,60,57,80,190 +frame=0,W,0,0,60,57,80,190 +frame=0,NW,0,0,60,57,80,190 +frame=0,N,0,0,60,57,80,190 +frame=0,NE,0,0,60,57,80,190 +frame=0,E,0,0,60,57,80,190 +frame=0,SE,0,0,60,57,80,190 +frame=0,S,0,0,60,57,80,190 + +[run] +frames=1 +duration=400ms +type=looped +frame=0,SW,0,0,60,57,80,190 +frame=0,W,0,0,60,57,80,190 +frame=0,NW,0,0,60,57,80,190 +frame=0,N,0,0,60,57,80,190 +frame=0,NE,0,0,60,57,80,190 +frame=0,E,0,0,60,57,80,190 +frame=0,SE,0,0,60,57,80,190 +frame=0,S,0,0,60,57,80,190 + +[die] +frames=1 +duration=33ms +type=looped +frame=0,0,0,0,0,0,0,0 +frame=0,1,0,0,0,0,0,0 +frame=0,2,0,0,0,0,0,0 +frame=0,3,0,0,0,0,0,0 +frame=0,4,0,0,0,0,0,0 +frame=0,5,0,0,0,0,0,0 +frame=0,6,0,0,0,0,0,0 +frame=0,7,0,0,0,0,0,0 diff --git a/animations/rocks/medium2.txt b/animations/rocks/medium2.txt new file mode 100644 index 0000000..0ddd0a3 --- /dev/null +++ b/animations/rocks/medium2.txt @@ -0,0 +1,40 @@ +image=images/rocks/medium2.png + +[stance] +frames=1 +duration=400ms +type=looped +frame=0,SW,0,0,60,57,80,190 +frame=0,W,0,0,60,57,80,190 +frame=0,NW,0,0,60,57,80,190 +frame=0,N,0,0,60,57,80,190 +frame=0,NE,0,0,60,57,80,190 +frame=0,E,0,0,60,57,80,190 +frame=0,SE,0,0,60,57,80,190 +frame=0,S,0,0,60,57,80,190 + +[run] +frames=1 +duration=400ms +type=looped +frame=0,SW,0,0,60,57,80,190 +frame=0,W,0,0,60,57,80,190 +frame=0,NW,0,0,60,57,80,190 +frame=0,N,0,0,60,57,80,190 +frame=0,NE,0,0,60,57,80,190 +frame=0,E,0,0,60,57,80,190 +frame=0,SE,0,0,60,57,80,190 +frame=0,S,0,0,60,57,80,190 + +[die] +frames=1 +duration=33ms +type=looped +frame=0,0,0,0,0,0,0,0 +frame=0,1,0,0,0,0,0,0 +frame=0,2,0,0,0,0,0,0 +frame=0,3,0,0,0,0,0,0 +frame=0,4,0,0,0,0,0,0 +frame=0,5,0,0,0,0,0,0 +frame=0,6,0,0,0,0,0,0 +frame=0,7,0,0,0,0,0,0 diff --git a/animations/rocks/medium3.txt b/animations/rocks/medium3.txt new file mode 100644 index 0000000..8d1ee0f --- /dev/null +++ b/animations/rocks/medium3.txt @@ -0,0 +1,40 @@ +image=images/rocks/medium3.png + +[stance] +frames=1 +duration=400ms +type=looped +frame=0,SW,0,0,60,57,80,190 +frame=0,W,0,0,60,57,80,190 +frame=0,NW,0,0,60,57,80,190 +frame=0,N,0,0,60,57,80,190 +frame=0,NE,0,0,60,57,80,190 +frame=0,E,0,0,60,57,80,190 +frame=0,SE,0,0,60,57,80,190 +frame=0,S,0,0,60,57,80,190 + +[run] +frames=1 +duration=400ms +type=looped +frame=0,SW,0,0,60,57,80,190 +frame=0,W,0,0,60,57,80,190 +frame=0,NW,0,0,60,57,80,190 +frame=0,N,0,0,60,57,80,190 +frame=0,NE,0,0,60,57,80,190 +frame=0,E,0,0,60,57,80,190 +frame=0,SE,0,0,60,57,80,190 +frame=0,S,0,0,60,57,80,190 + +[die] +frames=1 +duration=33ms +type=looped +frame=0,0,0,0,0,0,0,0 +frame=0,1,0,0,0,0,0,0 +frame=0,2,0,0,0,0,0,0 +frame=0,3,0,0,0,0,0,0 +frame=0,4,0,0,0,0,0,0 +frame=0,5,0,0,0,0,0,0 +frame=0,6,0,0,0,0,0,0 +frame=0,7,0,0,0,0,0,0 diff --git a/animations/rocks/small1.txt b/animations/rocks/small1.txt new file mode 100644 index 0000000..654a628 --- /dev/null +++ b/animations/rocks/small1.txt @@ -0,0 +1,40 @@ +image=images/rocks/small1.png + +[stance] +frames=1 +duration=400ms +type=looped +frame=0,SW,0,0,32,32,27,27 +frame=0,W,0,0,32,32,27,27 +frame=0,NW,0,0,32,32,27,27 +frame=0,N,0,0,32,32,27,27 +frame=0,NE,0,0,32,32,27,27 +frame=0,E,0,0,32,32,27,27 +frame=0,SE,0,0,32,32,27,27 +frame=0,S,0,0,32,32,27,27 + +[run] +frames=1 +duration=400ms +type=looped +frame=0,SW,0,0,32,32,27,27 +frame=0,W,0,0,32,32,27,27 +frame=0,NW,0,0,32,32,27,27 +frame=0,N,0,0,32,32,27,27 +frame=0,NE,0,0,32,32,27,27 +frame=0,E,0,0,32,32,27,27 +frame=0,SE,0,0,32,32,27,27 +frame=0,S,0,0,32,32,27,27 + +[die] +frames=1 +duration=33ms +type=looped +frame=0,0,0,0,0,0,0,0 +frame=0,1,0,0,0,0,0,0 +frame=0,2,0,0,0,0,0,0 +frame=0,3,0,0,0,0,0,0 +frame=0,4,0,0,0,0,0,0 +frame=0,5,0,0,0,0,0,0 +frame=0,6,0,0,0,0,0,0 +frame=0,7,0,0,0,0,0,0 diff --git a/animations/rocks/small2.txt b/animations/rocks/small2.txt new file mode 100644 index 0000000..51d3e24 --- /dev/null +++ b/animations/rocks/small2.txt @@ -0,0 +1,40 @@ +image=images/rocks/small2.png + +[stance] +frames=1 +duration=400ms +type=looped +frame=0,SW,0,0,32,32,32,32 +frame=0,W,0,0,32,32,32,32 +frame=0,NW,0,0,32,32,32,32 +frame=0,N,0,0,32,32,32,32 +frame=0,NE,0,0,32,32,32,32 +frame=0,E,0,0,32,32,32,32 +frame=0,SE,0,0,32,32,32,32 +frame=0,S,0,0,32,32,32,32 + +[run] +frames=1 +duration=400ms +type=looped +frame=0,SW,0,0,32,32,32,32 +frame=0,W,0,0,32,32,32,32 +frame=0,NW,0,0,32,32,32,32 +frame=0,N,0,0,32,32,32,32 +frame=0,NE,0,0,32,32,32,32 +frame=0,E,0,0,32,32,32,32 +frame=0,SE,0,0,32,32,32,32 +frame=0,S,0,0,32,32,32,32 + +[die] +frames=1 +duration=33ms +type=looped +frame=0,0,0,0,0,0,0,0 +frame=0,1,0,0,0,0,0,0 +frame=0,2,0,0,0,0,0,0 +frame=0,3,0,0,0,0,0,0 +frame=0,4,0,0,0,0,0,0 +frame=0,5,0,0,0,0,0,0 +frame=0,6,0,0,0,0,0,0 +frame=0,7,0,0,0,0,0,0 diff --git a/animations/tools/pickaxe.txt b/animations/tools/pickaxe.txt new file mode 100644 index 0000000..0803918 --- /dev/null +++ b/animations/tools/pickaxe.txt @@ -0,0 +1,13 @@ + +image=images/loot/battle_axe.png + +[animation] +frames=6 +duration=600ms +type=play_once +frame=0,0,45,54,46,39,15,51 +frame=1,0,45,0,48,54,16,74 +frame=2,0,0,0,45,75,13,105 +frame=3,0,93,0,31,66,4,84 +frame=4,0,91,66,29,35,11,33 +frame=5,0,0,75,31,17,17,8 diff --git a/changelog.md b/changelog.md index 1dc17e9..b312bb6 100644 --- a/changelog.md +++ b/changelog.md @@ -8,6 +8,7 @@ Alpha 0.06 * added tabs, in the skill menu (for now they are only for testing) - the skills menu is suspended pending fixing of a bug in the engine * added images of logs and rocks breakable by the player * added a file with the list of future NPCs +* added the pickaxe and the first stone breakable with the pickaxe ............................................ diff --git a/enemies/rock1.txt b/enemies/rock1.txt new file mode 100644 index 0000000..b80c659 --- /dev/null +++ b/enemies/rock1.txt @@ -0,0 +1,30 @@ +name=Rock +level=1 +categories=rock1,rock +rarity=common +xp=0 + +defeat_status=rock1 + +animations=animations/rocks/small1.txt + +suppress_hp=true + +loot=loot/rock-stone.txt + +# combat stats +stat=hp,1 +speed=0 +melee_range=1 +threat_range=16 +turn_delay=400ms +chance_pursue=5 +power=melee,2,100 +cooldown_hit=133ms + +stat=accuracy,100 +stat=avoidance,0 + +stat=dmg_melee_min,0 +stat=dmg_melee_max,0 +cooldown=1s diff --git a/engine/classes.txt b/engine/classes.txt index 4ec05ef..c9f9bb7 100644 --- a/engine/classes.txt +++ b/engine/classes.txt @@ -2,9 +2,9 @@ name=Standard description=The majority of this map is farming land, ideal for crops and animals. currency=500 -equipment=2,3,4 +equipment=2,3,4,9 powers=10001 -actionbar=10,11,0,0,0,0,0,0,0,0,0,0 +actionbar=10,11,12,0,0,0,0,0,0,0,0,0 hero_options=0,1 [class] diff --git a/images/icons/items.png b/images/icons/items.png index 10cd69c..35d29ae 100644 Binary files a/images/icons/items.png and b/images/icons/items.png differ diff --git a/images/loot/small1.png b/images/loot/small1.png new file mode 100644 index 0000000..faec5c7 Binary files /dev/null and b/images/loot/small1.png differ diff --git a/images/loot/small2.png b/images/loot/small2.png new file mode 100644 index 0000000..f31874b Binary files /dev/null and b/images/loot/small2.png differ diff --git a/items/items.txt b/items/items.txt index e664de6..ce490db 100644 --- a/items/items.txt +++ b/items/items.txt @@ -51,10 +51,59 @@ id=5 name=Woods icon=264 quality=normal -price=1 -price_sell=1 +price=10 +price_sell=5 max_quantity=500 #soundfx=soundfx/inventory/inventory_coins.ogg loot_animation=animations/loot/woods5.txt,0,1 loot_animation=animations/loot/woods25.txt,2,24 -loot_animation=animations/loot/woods100.txt,25,0 \ No newline at end of file +loot_animation=animations/loot/woods100.txt,25,0 + +[item] +id=6 +# from second year +name=Woods +icon=264 +quality=normal +price=50 +price_sell=5 +max_quantity=500 +#soundfx=soundfx/inventory/inventory_coins.ogg +loot_animation=animations/loot/woods5.txt,0,1 +loot_animation=animations/loot/woods25.txt,2,24 +loot_animation=animations/loot/woods100.txt,25,0 + +[item] +id=7 +name=Stones +icon=280 +quality=normal +price=20 +price_sell=10 +max_quantity=500 +#soundfx=soundfx/inventory/inventory_coins.ogg +loot_animation=animations/loot/stone1.txt + +[item] +id=8 +# from second year +name=stones +icon=288 +quality=normal +price=100 +price_sell=10 +max_quantity=500 +#soundfx=soundfx/inventory/inventory_coins.ogg +loot_animation=animations/loot/stone2.txt + +[item] +id=9 +name=Pickaxe +quality=low +item_type=tools +equip_flags=pickaxe +icon=259 +soundfx=soundfx/inventory/inventory_metal.ogg +gfx=battle_axe +loot_animation=animations/tools/pickaxe.txt +dmg=melee,1,1 \ No newline at end of file diff --git a/loot/rock-stone.txt b/loot/rock-stone.txt new file mode 100644 index 0000000..bbe099c --- /dev/null +++ b/loot/rock-stone.txt @@ -0,0 +1,4 @@ +[loot] +id=7 +chance=100 +quantity=1,3 \ No newline at end of file diff --git a/maps/spring-farm.txt b/maps/spring-farm.txt index d9d373d..97fd05f 100644 --- a/maps/spring-farm.txt +++ b/maps/spring-farm.txt @@ -2981,3 +2981,11 @@ requires_not_status=cut100-1 requires_status=cut100 spawn=stump100,28,47 +[event] +# rock1 +type=event +location=11,15,1,1 +activate=on_load +requires_not_status=rock1 +spawn=rock1,11,15 + diff --git a/powers/powers.txt b/powers/powers.txt index 2bb71df..1a07c8d 100644 --- a/powers/powers.txt +++ b/powers/powers.txt @@ -48,6 +48,27 @@ cooldown=1s requires_flags=axe target_categories=tree +[power] +id=12 +name=Pickaxe +type=fixed +icon=259 +new_state=instant +requires_mp=2 +face=true +use_hazard=true +aim_assist=true +base_damage=melee +lifespan=1s +speed=12 +radius=1.0 +starting_pos=melee +animation=animations/powers/pickaxe.txt +directional=false +cooldown=1s +requires_flags=axe +target_categories=rock + [power] id=2 #name=Slime Attack