mirror of
https://github.com/thepaperpilot/Super-Auto-Coots.git
synced 2024-11-22 00:21:33 +00:00
Add indicators for Yard members
This commit is contained in:
parent
e0865e870b
commit
8e7e738a05
6 changed files with 16 additions and 4 deletions
|
@ -84,6 +84,7 @@
|
||||||
<link rel="prefetch" href="shop_Switch1.png" />
|
<link rel="prefetch" href="shop_Switch1.png" />
|
||||||
<link rel="prefetch" href="Fire.png" />
|
<link rel="prefetch" href="Fire.png" />
|
||||||
<link rel="prefetch" href="bandaid.png" />
|
<link rel="prefetch" href="bandaid.png" />
|
||||||
|
<link rel="prefetch" href="yard_member.png" />
|
||||||
|
|
||||||
<title>Profectus</title>
|
<title>Profectus</title>
|
||||||
<meta name="description" content="A project made in Profectus"/>
|
<meta name="description" content="A project made in Profectus"/>
|
||||||
|
|
BIN
public/yard_member.png
Normal file
BIN
public/yard_member.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.3 KiB |
|
@ -111,6 +111,7 @@ import level2_2 from "../../public/Lvl 2_2.png";
|
||||||
import level3 from "../../public/Lvl 3.png";
|
import level3 from "../../public/Lvl 3.png";
|
||||||
import star from "../../public/presence_v2.png";
|
import star from "../../public/presence_v2.png";
|
||||||
import money_small from "../../public/money_small.png";
|
import money_small from "../../public/money_small.png";
|
||||||
|
import yard_member from "../../public/yard_member.png";
|
||||||
import { characters } from "./projEntry";
|
import { characters } from "./projEntry";
|
||||||
import { Character } from "./types";
|
import { Character } from "./types";
|
||||||
|
|
||||||
|
@ -154,7 +155,7 @@ watchEffect(() => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const Ability = coerceComponent(characters[props.character.type].abilityDescription(props.character));
|
const Ability = coerceComponent(characters[props.character.type].abilityDescription(props.character));
|
||||||
comp.value = jsx(() => (<><b>{characters[props.character!.type].nickname}</b><br /><Ability /></>));
|
comp.value = jsx(() => (<><b>{characters[props.character!.type].nickname}</b>{characters[props.character!.type].isYard ? <img src={yard_member} style="margin-left: 0.25em" /> : null}<br /><Ability /></>));
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -427,6 +427,7 @@
|
||||||
.tooltip img {
|
.tooltip img {
|
||||||
height: 1em;
|
height: 1em;
|
||||||
padding-right: 0.5em;
|
padding-right: 0.5em;
|
||||||
|
image-rendering: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes swing {
|
@keyframes swing {
|
||||||
|
|
|
@ -63,6 +63,7 @@ import vespa from "../../public/Vespa Coots.png";
|
||||||
import victoryButton from "../../public/Victory Button.png";
|
import victoryButton from "../../public/Victory Button.png";
|
||||||
import victoryFace from "../../public/win face.png";
|
import victoryFace from "../../public/win face.png";
|
||||||
import yard_small from "../../public/yard_small.png";
|
import yard_small from "../../public/yard_small.png";
|
||||||
|
import yard_member from "../../public/yard_member.png";
|
||||||
import CharacterSlot from "./CharacterSlot.vue";
|
import CharacterSlot from "./CharacterSlot.vue";
|
||||||
import "./common.css";
|
import "./common.css";
|
||||||
import healthParticles from "./health.json";
|
import healthParticles from "./health.json";
|
||||||
|
@ -130,6 +131,7 @@ export const characters: Record<string, CharacterInfo> = {
|
||||||
initialPresence: 1,
|
initialPresence: 1,
|
||||||
display: ludwig,
|
display: ludwig,
|
||||||
abilityType: "LivestreamJoined",
|
abilityType: "LivestreamJoined",
|
||||||
|
isYard: true,
|
||||||
abilityDescription: char =>
|
abilityDescription: char =>
|
||||||
jsx(() => (
|
jsx(() => (
|
||||||
<>
|
<>
|
||||||
|
@ -222,6 +224,7 @@ export const characters: Record<string, CharacterInfo> = {
|
||||||
initialRelevancy: 2,
|
initialRelevancy: 2,
|
||||||
display: aimen,
|
display: aimen,
|
||||||
abilityType: "Sold",
|
abilityType: "Sold",
|
||||||
|
isYard: true,
|
||||||
abilityDescription: char =>
|
abilityDescription: char =>
|
||||||
jsx(() => (
|
jsx(() => (
|
||||||
<>
|
<>
|
||||||
|
@ -248,6 +251,7 @@ export const characters: Record<string, CharacterInfo> = {
|
||||||
initialRelevancy: 1,
|
initialRelevancy: 1,
|
||||||
display: nick,
|
display: nick,
|
||||||
abilityType: "LivestreamEnded",
|
abilityType: "LivestreamEnded",
|
||||||
|
isYard: true,
|
||||||
abilityDescription: char =>
|
abilityDescription: char =>
|
||||||
jsx(() => (
|
jsx(() => (
|
||||||
<>
|
<>
|
||||||
|
@ -687,6 +691,7 @@ export const characters: Record<string, CharacterInfo> = {
|
||||||
initialPresence: 3,
|
initialPresence: 3,
|
||||||
display: slime,
|
display: slime,
|
||||||
abilityType: "LivestreamJoined",
|
abilityType: "LivestreamJoined",
|
||||||
|
isYard: true,
|
||||||
abilityDescription: char =>
|
abilityDescription: char =>
|
||||||
jsx(() => (
|
jsx(() => (
|
||||||
<>
|
<>
|
||||||
|
@ -1508,10 +1513,13 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
||||||
<Tooltip
|
<Tooltip
|
||||||
display={jsx(() => (
|
display={jsx(() => (
|
||||||
<>
|
<>
|
||||||
<i>Stream started</i>: All Yard Coots gain 1{" "}
|
<i>Stream started</i>: All <img src={yard_member} />
|
||||||
|
<span style="color: white">Yard</span> Coots gain 1{" "}
|
||||||
<img src={heart_small} />
|
<img src={heart_small} />
|
||||||
<span style="color: red">Relevancy</span> for every Yard Coots
|
<span style="color: red">Relevancy</span> for every{" "}
|
||||||
owned, for the rest of the battle
|
<img src={yard_member} />
|
||||||
|
<span style="color: white">Yard</span> Coots owned, for the rest
|
||||||
|
of the battle
|
||||||
</>
|
</>
|
||||||
))}
|
))}
|
||||||
>
|
>
|
||||||
|
|
1
src/data/types.d.ts
vendored
1
src/data/types.d.ts
vendored
|
@ -18,6 +18,7 @@ interface CharacterInfo {
|
||||||
initialPresence: number;
|
initialPresence: number;
|
||||||
display: string;
|
display: string;
|
||||||
abilityType: AbilityTypes;
|
abilityType: AbilityTypes;
|
||||||
|
isYard?: boolean;
|
||||||
abilityDescription: (char: Character) => CoercableComponent;
|
abilityDescription: (char: Character) => CoercableComponent;
|
||||||
performAbility: (char: Character) => void;
|
performAbility: (char: Character) => void;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue