Skip to content

Commit

Permalink
get_armor_acid
Browse files Browse the repository at this point in the history
  • Loading branch information
Fris0uman committed Apr 27, 2020
1 parent fb8c5fe commit 6557fb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7187,9 +7187,9 @@ int Character::get_env_resist( bodypart_id bp ) const
return ret;
}

int Character::get_armor_acid( body_part bp ) const
int Character::get_armor_acid( bodypart_id bp ) const
{
return get_armor_type( DT_ACID, convert_bp( bp ).id() );
return get_armor_type( DT_ACID, bp );
}

int Character::get_stim() const
Expand Down
2 changes: 1 addition & 1 deletion src/character.h
Original file line number Diff line number Diff line change
Expand Up @@ -1733,7 +1733,7 @@ class Character : public Creature, public visitable<Character>
/** Returns overall env_resist on a body_part */
int get_env_resist( bodypart_id bp ) const override;
/** Returns overall acid resistance for the body part */
int get_armor_acid( body_part bp ) const;
int get_armor_acid( bodypart_id bp ) const;
/** Returns overall resistance to given type on the bod part */
int get_armor_type( damage_type dt, bodypart_id bp ) const override;

Expand Down

0 comments on commit 6557fb1

Please sign in to comment.