Skip to content

Commit

Permalink
Fix logic error in SlaveJob
Browse files Browse the repository at this point in the history
Fix the player being unable to assign the maximum number of slaves to certain jobs.
  • Loading branch information
SquishyPandaDev committed Dec 15, 2024
1 parent 3dd114a commit c21aeaf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ public float getAffectionGain(GameCharacter slave) {
public boolean isAvailable(int hour, GameCharacter character) {
return !character.getHomeLocationPlace().getPlaceType().equals(PlaceType.SLAVER_ALLEY_SLAVERY_ADMINISTRATION)
&& !character.getHomeWorldLocation().equals(WorldType.getWorldTypeFromId("innoxia_dominion_sex_shop"))
&& Main.game.getOccupancyUtil().getCharactersWorkingJob(hour, SlaveJob.MILKING)<getSlaveLimit();
&& Main.game.getOccupancyUtil().getCharactersWorkingJob(hour, SlaveJob.MILKING)<=getSlaveLimit();
}
@Override
public String getAvailabilityText(int hour, GameCharacter character) {
Expand Down Expand Up @@ -1395,7 +1395,7 @@ public boolean isAvailable(int hour, GameCharacter character) {
return character.getSlaveJob(hour)==this
|| (!character.getHomeLocationPlace().getPlaceType().equals(PlaceType.SLAVER_ALLEY_SLAVERY_ADMINISTRATION)
&& !character.getHomeWorldLocation().equals(WorldType.getWorldTypeFromId("innoxia_dominion_sex_shop"))
&& Main.game.getOccupancyUtil().getCharactersWorkingJob(hour, this)<this.getSlaveLimit());
&& Main.game.getOccupancyUtil().getCharactersWorkingJob(hour, this)<=this.getSlaveLimit());
}

/**
Expand Down

0 comments on commit c21aeaf

Please sign in to comment.