Skip to content

Commit

Permalink
Fixed issue with faction loyalty test.
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKyle committed Jan 17, 2024
1 parent 91c0ce3 commit 32ff68a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 1 addition & 4 deletions app/Game/Factions/FactionLoyalty/Concerns/FactionLoyalty.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ public function showCraftForNpcButton(Character $character, string $craftingType
return false;
}


return ollect(optional($character->factionLoyalties()->where('is_pledged', true)->first())
->factionLoyaltyNpcs()->where('currently_helping', true)->first()
->factionLoyaltyNpcTasks->fame_tasks)->contains('type', $craftingType);
return collect($assistingNpc->factionLoyaltyNpcTasks->fame_tasks)->contains('type', $craftingType);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import clsx from "clsx";
import UsableItemsDetails from "../../../../lib/game/character-sheet/types/inventory/usable-items-details";
import InventoryUseManyItems from "../modals/inventory-use-many-items";
import { GemBagTable } from "./inventory-tabs/gem-bag-table";
import OrangeButton from "../../../../components/ui/buttons/orange-button";
import WarningAlert from "../../../../components/ui/alerts/simple-alerts/warning-alert";

export default class InventoryTabSection extends React.Component<
Expand Down Expand Up @@ -294,9 +293,6 @@ export default class InventoryTabSection extends React.Component<
disabled={this.props.is_dead}
/>
</div>
<div className={"ml-2"}>
<OrangeButton button_label={'Equip Best'} on_click={this.handleEquipBest.bind(this)} />
</div>
<div className="sm:ml-4 md:ml-0 my-4 md:my-0 md:absolute md:right-[10px]">
<input
type="text"
Expand Down

0 comments on commit 32ff68a

Please sign in to comment.