Cleanup related to setActiveClass boolean removal.

This commit is contained in:
MobiusDevelopment
2019-11-07 17:59:23 +00:00
parent df4a4e1321
commit 975cb74d11
10 changed files with 11 additions and 26 deletions

View File

@@ -10335,13 +10335,12 @@ public class PlayerInstance extends Playable
* An index of zero specifies the character's original (base) class, while indexes 1-3 specifies the character's sub-classes respectively.<br>
* <font color="00FF00"/>WARNING: Use only on subclase change</font>
* @param classIndex
* @return
*/
public boolean setActiveClass(int classIndex)
public void setActiveClass(int classIndex)
{
if (!_subclassLock.tryLock())
{
return false;
return;
}
try
@@ -10349,7 +10348,7 @@ public class PlayerInstance extends Playable
// Cannot switch or change subclasses while transformed
if (_transformation != null)
{
return false;
return;
}
// Remove active item skills before saving char to database
@@ -10399,7 +10398,7 @@ public class PlayerInstance extends Playable
catch (Exception e)
{
LOGGER.log(Level.WARNING, "Could not switch " + getName() + "'s sub class to class index " + classIndex + ": " + e.getMessage(), e);
return false;
return;
}
}
_classIndex = classIndex;
@@ -10495,7 +10494,6 @@ public class PlayerInstance extends Playable
ClassMasterInstance.showQuestionMark(this);
}
}
return true;
}
finally
{