Skip to content

Commit

Permalink
move cost enchantment value
Browse files Browse the repository at this point in the history
  • Loading branch information
KorGgenT committed Sep 26, 2019
1 parent c5b8bc7 commit 9f098d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/player.cpp
Expand Up @@ -1677,8 +1677,9 @@ int player::run_cost( int base_cost, bool diag ) const
if( move_mode == PMM_CROUCH ) {
stamina_modifier *= 0.5;
}
movecost /= stamina_modifier;

movecost = calculate_by_enchantment( movecost, enchantment::mod::MOVE_COST );
movecost /= stamina_modifier;
}

if( diag ) {
Expand Down Expand Up @@ -3568,6 +3569,7 @@ void player::update_body( const time_point &from, const time_point &to )
{
update_stamina( to_turns<int>( to - from ) );
update_stomach( from, to );
recalculate_enchantment_cache();
if( ticks_between( from, to, 3_minutes ) > 0 ) {
magic.update_mana( *this, to_turns<float>( 3_minutes ) );
}
Expand Down

0 comments on commit 9f098d2

Please sign in to comment.