mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-02-16 09:31:43 +00:00
Add art and lore
This commit is contained in:
parent
b51e8dac9d
commit
332fadc7ee
4 changed files with 15 additions and 6 deletions
|
@ -19,6 +19,12 @@
|
||||||
class="scene-item"
|
class="scene-item"
|
||||||
style="left: 26%; bottom: 12%; width: 40px; height: 40px"
|
style="left: 26%; bottom: 12%; width: 40px; height: 40px"
|
||||||
/>
|
/>
|
||||||
|
<img
|
||||||
|
v-if="day >= 21"
|
||||||
|
:src="sleigh"
|
||||||
|
class="scene-item"
|
||||||
|
style="left: 10%; bottom: 56%; transform: rotate(24deg); width: 100px; height: 100px"
|
||||||
|
/>
|
||||||
<img
|
<img
|
||||||
v-if="day >= 12"
|
v-if="day >= 12"
|
||||||
:src="advManagement"
|
:src="advManagement"
|
||||||
|
@ -102,6 +108,7 @@ import factory from "./symbols/gears.png";
|
||||||
import advFactory from "./symbols/teddyBear.png";
|
import advFactory from "./symbols/teddyBear.png";
|
||||||
import presents from "./symbols/presents.png";
|
import presents from "./symbols/presents.png";
|
||||||
import reindeer from "./symbols/reindeer.png";
|
import reindeer from "./symbols/reindeer.png";
|
||||||
|
import sleigh from "./symbols/sleigh.png";
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
day: number;
|
day: number;
|
||||||
|
|
|
@ -74,6 +74,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
const computedMaxCooldown = computed(() => 10);
|
const computedMaxCooldown = computed(() => 10);
|
||||||
|
|
||||||
function focus() {
|
function focus() {
|
||||||
|
currCooldown.value = Decimal.fromValue(computedMaxCooldown.value).toNumber();
|
||||||
let targetsSelected = 0;
|
let targetsSelected = 0;
|
||||||
currTargets.value = {};
|
currTargets.value = {};
|
||||||
timeSinceFocus.value = 0;
|
timeSinceFocus.value = 0;
|
||||||
|
@ -141,7 +142,6 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
},
|
},
|
||||||
canClick: () => Decimal.eq(currCooldown.value, 0),
|
canClick: () => Decimal.eq(currCooldown.value, 0),
|
||||||
onClick() {
|
onClick() {
|
||||||
currCooldown.value = Decimal.fromValue(computedMaxCooldown.value).toNumber();
|
|
||||||
focus();
|
focus();
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
@ -488,7 +488,7 @@ const layer = createLayer(id, function (this: BaseLayer) {
|
||||||
let auto = false;
|
let auto = false;
|
||||||
if (upgrade7.bought.value) {
|
if (upgrade7.bought.value) {
|
||||||
timeSinceFocus.value += diff;
|
timeSinceFocus.value += diff;
|
||||||
if (timeSinceFocus.value > 10) {
|
if (timeSinceFocus.value > 20) {
|
||||||
auto = true;
|
auto = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,6 +59,7 @@ import treeSymbol from "./symbols/tree.png";
|
||||||
import toysSymbol from "./symbols/truck.png";
|
import toysSymbol from "./symbols/truck.png";
|
||||||
import advManagementSymbol from "./symbols/workshopMansion.png";
|
import advManagementSymbol from "./symbols/workshopMansion.png";
|
||||||
import wrappingPaperSymbol from "./symbols/wrappingPaper.png";
|
import wrappingPaperSymbol from "./symbols/wrappingPaper.png";
|
||||||
|
import sleighSymbol from "./symbols/sleigh.png";
|
||||||
|
|
||||||
export interface Day extends VueFeature {
|
export interface Day extends VueFeature {
|
||||||
day: number;
|
day: number;
|
||||||
|
@ -488,10 +489,11 @@ export const main = createLayer("main", function (this: BaseLayer) {
|
||||||
createDay(() => ({
|
createDay(() => ({
|
||||||
day: 22,
|
day: 22,
|
||||||
shouldNotify: false,
|
shouldNotify: false,
|
||||||
layer: "sleigh", // "sleigh"
|
layer: "sleigh",
|
||||||
symbol: "",
|
symbol: sleighSymbol,
|
||||||
story: "default body",
|
story: "You realize you haven't noticed a very important object since you've started working here. Where's the sleigh? You bring it up to Santa and he immediately becomes visibly stressed, mentioning it's been in disrepair and he completely forgot! You promise you'll get it back in shape in no time!",
|
||||||
completedStory: "",
|
completedStory:
|
||||||
|
"Crisis averted! The sleigh has been returned to it's full splendor. Santa is incredibly appreciative. Good Job!",
|
||||||
masteredStory: ""
|
masteredStory: ""
|
||||||
})),
|
})),
|
||||||
createDay(() => ({
|
createDay(() => ({
|
||||||
|
|
BIN
src/data/symbols/sleigh.png
Normal file
BIN
src/data/symbols/sleigh.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 67 KiB |
Loading…
Add table
Reference in a new issue