Add slash animation to trip skill
This commit is contained in:
parent
87b2b9d2c9
commit
dc6b816a4a
2
.vimrc
2
.vimrc
|
@ -5,5 +5,5 @@ nnoremap <F4> :ter ++close env LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./ ./_build/debu
|
|||
|
||||
packadd termdebug
|
||||
let g:termdebug_wide = 1
|
||||
let g:syntastic_c_include_dirs = [ '_build', '/usr/include/SDL2', 'steamworks_c_wrapper/src' ]
|
||||
let g:syntastic_c_include_dirs = [ '_build/debug', '/usr/include/SDL2', 'steamworks_c_wrapper/src' ]
|
||||
let g:syntastic_cpp_include_dirs = [ 'steamworks_c_wrapper/sdk/public/steam' ]
|
||||
|
|
|
@ -378,6 +378,7 @@ skill_trip(Skill *skill, SkillData *data)
|
|||
|
||||
RoomSpace *space = &data->matrix->spaces[targetPos.x][targetPos.y];
|
||||
mixer_play_effect(SWING0 + get_random(2));
|
||||
animation_run(data->player->swordAnimation);
|
||||
if (space->monster) {
|
||||
mixer_play_effect(SWORD_HIT);
|
||||
int dmg = stats_fight(&data->player->stats, &space->monster->stats);
|
||||
|
|
Loading…
Reference in New Issue