mirror of
https://github.com/thepaperpilot/Super-Auto-Coots.git
synced 2024-11-22 00:21:33 +00:00
Don't perform actions if Coots has fainted
This commit is contained in:
parent
6f2534bec1
commit
91d6aeeca0
2 changed files with 5 additions and 2 deletions
|
@ -65,7 +65,7 @@ const tutorialTabs = createTabFamily({
|
|||
glowColor(): string {
|
||||
return tutorialTabs.activeTab.value === this.tab ? "var(--foreground)" : ""
|
||||
},
|
||||
tab: jsx(() => <div>In a livestream battle, your goal is to get more views than your opponent. Each team will add their Coots to their livestreams together, one at a time. Abilities will also activate throughout the stream as appropriate.<br/><br/>Each Coots has two stats- <img src={heart} /><span style="color: red">Relevancy</span> and <img src={star} /><span style="color: gold">Presence</span>. The view count is based on the product of those two stats, and then summed between each Coots on the stream. Be careful if either stat becomes 0 or lower, that streamer won't contribute to your view count.<br/><br/>You can press play to perform a single action and see what the next will be, or select autoplay to automatically perform the whole match. If this is your first time playing, I'd suggest leaving autoplay off.</div>)
|
||||
tab: jsx(() => <div>In a livestream battle, your goal is to get more views than your opponent. Each team will add their Coots to their livestreams together, one at a time. Abilities will also activate throughout the stream so long as both their stats are above 0.<br/><br/>Each Coots has two stats- <img src={heart} /><span style="color: red">Relevancy</span> and <img src={star} /><span style="color: gold">Presence</span>. The view count is based on the product of those two stats, and then summed between each Coots on the stream. Be careful if either stat becomes 0 or lower, that streamer won't contribute to your view count.<br/><br/>You can press play to perform a single action and see what the next will be, or select autoplay to automatically perform the whole match. If this is your first time playing, I'd suggest leaving autoplay off.</div>)
|
||||
}),
|
||||
multiplayer: () => ({
|
||||
display: "Multiplayer",
|
||||
|
|
|
@ -382,7 +382,7 @@ export const characters: Record<string, CharacterInfo> = {
|
|||
jsx(() => (
|
||||
<>
|
||||
<i>Either stat hits 0</i>: Summon a lv{" "}
|
||||
{char.exp >= 6 ? 3 : char.exp >= 3 ? 2 : 1} Mogul Mail Coots with this Coots'
|
||||
{char.exp >= 6 ? 3 : char.exp >= 3 ? 2 : 1} Mogul Mail Coots with this Coots'{" "}
|
||||
<img src={heart_small} />
|
||||
<span style="color: red">Relevancy</span> and <img src={star_small} />
|
||||
<span style="color: gold">Presence</span>
|
||||
|
@ -830,6 +830,9 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
|||
console.error("Invalid action", action);
|
||||
break;
|
||||
}
|
||||
if (action.target.presence <= 0 || action.target.relevancy <= 0) {
|
||||
break;
|
||||
}
|
||||
characters[action.target.type].performAbility(action.target);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue