Skip to content

Commit

Permalink
Make sure tacoma doctor still works
Browse files Browse the repository at this point in the history
  • Loading branch information
Fris0uman committed May 8, 2020
1 parent ec0e676 commit b06c168
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/bionics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2290,7 +2290,7 @@ bool Character::uninstall_bionic( const bionic &target_cbm, monster &installer,
return false;
}

bool Character::can_install_bionics( const itype &type, player &installer, bool autodoc,
bool Character::can_install_bionics( const itype &type, Character &installer, bool autodoc,
int skill_level )
{
if( !type.bionic ) {
Expand All @@ -2306,7 +2306,7 @@ bool Character::can_install_bionics( const itype &type, player &installer, bool
float adjusted_skill;

// if we're doing self install
if( !autodoc ) {
if( !autodoc && installer.is_avatar() ) {
return installer.has_enough_anesth( type ) &&
installer.has_installation_requirment( bioid );
}
Expand Down Expand Up @@ -2393,7 +2393,6 @@ bool Character::install_bionics( const itype &type, player &installer, bool auto
const int difficulty = type.bionic->difficulty;
float adjusted_skill;
int pl_skill;

if( autodoc ) {
adjusted_skill = installer.bionics_adjusted_skill( skill_firstaid,
skill_computer,
Expand Down
2 changes: 1 addition & 1 deletion src/character.h
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ class Character : public Creature, public visitable<Character>
const skill_id &least_important_skill,
int skill_level = -1 );
/**Is the installation possible*/
bool can_install_bionics( const itype &type, player &installer, bool autodoc = false,
bool can_install_bionics( const itype &type, Character &installer, bool autodoc = false,
int skill_level = -1 );
std::map<body_part, int> bionic_installation_issues( const bionic_id &bioid );
/** Initialize all the values needed to start the operation player_activity */
Expand Down

0 comments on commit b06c168

Please sign in to comment.