forked from BibliothecaDAO/loot-survivor
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add vitality and charisma item swap warnings
- add swap warning when in a beast battle
- Loading branch information
1 parent
ca73455
commit aed15a5
Showing
5 changed files
with
163 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Button } from "@/app/components/buttons/Button"; | ||
|
||
interface BeastSwapWarningProps { | ||
handleConfirmAction: () => void; | ||
} | ||
|
||
export const BeastSwapWarning = ({ | ||
handleConfirmAction, | ||
}: BeastSwapWarningProps) => { | ||
return ( | ||
<div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"> | ||
<div className="bg-terminal-black border border-terminal-green p-4 max-w-md w-full"> | ||
<div className="mb-4"> | ||
<h1 className="text-xl font-bold uppercase">Beast Attack Warming</h1> | ||
</div> | ||
<p className="mb-2"> | ||
Swapping an item during a beast battle will result in a beast counter | ||
attack. | ||
</p> | ||
<p className="mb-2 uppercase"> | ||
Swap multiple items together to avoid multiple attacks. | ||
</p> | ||
<div className="flex justify-end gap-2"> | ||
<Button onClick={handleConfirmAction}>Confirm</Button> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { Button } from "@/app/components/buttons/Button"; | ||
|
||
interface StatRemovalWarningProps { | ||
statWarning: "charisma" | "vitality"; | ||
handleConfirmAction: () => void; | ||
} | ||
|
||
export const StatRemovalWarning = ({ | ||
statWarning, | ||
handleConfirmAction, | ||
}: StatRemovalWarningProps) => { | ||
return ( | ||
<div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50"> | ||
<div className="bg-terminal-black border border-terminal-green p-4 max-w-md w-full"> | ||
<div className="mb-4"> | ||
<h1 className="text-xl font-bold uppercase"> | ||
{statWarning} Removal Warning | ||
</h1> | ||
</div> | ||
{statWarning === "vitality" ? ( | ||
<> | ||
<p className="mb-2"> | ||
Removing vitality will reduce your max health by 15hp per vitality | ||
removed. | ||
</p> | ||
<p className="mb-2 uppercase"> | ||
If your current health is larger than the new calculated max | ||
health, it will be lost and cannot be recovered. | ||
</p> | ||
</> | ||
) : ( | ||
<p className="mb-2"> | ||
Removing charisma will reduce your max health by 15hp per vitality | ||
removed. | ||
</p> | ||
)} | ||
<div className="flex justify-end gap-2"> | ||
<Button onClick={handleConfirmAction}>Confirm</Button> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters