Add feature decorator system #13
|
@ -1,5 +1,5 @@
|
|||
import AchievementComponent from "features/achievements/Achievement.vue";
|
||||
import { Decorator } from "features/decorators";
|
||||
import { Decorator } from "features/decorators/common";
|
||||
import {
|
||||
CoercableComponent,
|
||||
Component,
|
||||
|
|
|
@ -31,7 +31,7 @@ import { coerceComponent, isCoercableComponent, render } from "util/vue";
|
|||
import { computed, Ref, ref, unref } from "vue";
|
||||
import { BarOptions, createBar, GenericBar } from "./bars/bar";
|
||||
import { ClickableOptions } from "./clickables/clickable";
|
||||
import { Decorator } from "./decorators";
|
||||
import { Decorator } from "./decorators/common";
|
||||
|
||||
export const ActionType = Symbol("Action");
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import BarComponent from "features/bars/Bar.vue";
|
||||
import { Decorator } from "features/decorators";
|
||||
import { Decorator } from "features/decorators/common";
|
||||
import type {
|
||||
CoercableComponent,
|
||||
GenericComponent,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { isArray } from "@vue/shared";
|
||||
import Toggle from "components/fields/Toggle.vue";
|
||||
import ChallengeComponent from "features/challenges/Challenge.vue";
|
||||
import { Decorator } from "features/decorators";
|
||||
import { Decorator } from "features/decorators/common";
|
||||
import type { CoercableComponent, OptionsFunc, Replace, StyleValue } from "features/feature";
|
||||
import {
|
||||
Component,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import ClickableComponent from "features/clickables/Clickable.vue";
|
||||
import { Decorator } from "features/decorators";
|
||||
import { Decorator } from "features/decorators/common";
|
||||
import type {
|
||||
CoercableComponent,
|
||||
GenericComponent,
|
||||
|
|
|
@ -11,7 +11,7 @@ import { convertComputable, processComputable } from "util/computed";
|
|||
import { createLazyProxy } from "util/proxies";
|
||||
import type { Ref } from "vue";
|
||||
import { computed, unref } from "vue";
|
||||
import { Decorator } from "./decorators";
|
||||
import { Decorator } from "./decorators/common";
|
||||
|
||||
/** An object that configures a {@link Conversion}. */
|
||||
export interface ConversionOptions {
|
||||
|
|
|
@ -1,44 +1,9 @@
|
|||
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
import { Replace, OptionsObject } from "./feature";
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
import Decimal, { DecimalSource } from "util/bignum";
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
import { Computable, GetComputableType, processComputable, ProcessedComputable } from "util/computed";
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
import { Persistent, State } from "game/persistence";
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
import { computed, Ref, unref } from "vue";
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
import { Replace } from "features/feature";
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
import Decimal, { DecimalSource } from "lib/break_eternity";
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
import { Computable, GetComputableType, ProcessedComputable, processComputable } from "util/computed";
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
import { Ref, computed, unref } from "vue";
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
import { Decorator } from "./common";
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
|
||||
/*----====----*/
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
export type Decorator<FeatureOptions, BaseFeature = {}, GenericFeature = {}, S extends State = State> = {
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
getPersistentData?(): Record<string, Persistent<S>>;
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
preConstruct?(feature: OptionsObject<FeatureOptions,BaseFeature,GenericFeature>): void;
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
postConstruct?(feature: OptionsObject<FeatureOptions,BaseFeature,GenericFeature>): void;
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
getGatheredProps?(feature: OptionsObject<FeatureOptions,BaseFeature,GenericFeature>): Partial<OptionsObject<FeatureOptions,BaseFeature,GenericFeature>>
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
}
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
/*----====----*/
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
// #region Effect Decorator
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
export interface EffectFeatureOptions {
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
effect: Computable<any>;
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
}
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
export type EffectFeature<T extends EffectFeatureOptions> = Replace<
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
T, { effect: GetComputableType<T["effect"]>; }
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
>;
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
export type GenericEffectFeature = Replace<
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
EffectFeature<EffectFeatureOptions>,
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
{ effect: ProcessedComputable<any>; }
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
>;
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
export const effectDecorator: Decorator<EffectFeatureOptions, {}, GenericEffectFeature> = {
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
postConstruct(feature) {
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
processComputable(feature, "effect");
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
}
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
}
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
// #endregion
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
/*----====----*/
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
// #region Bonus Amount/Completions Decorator
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
export interface BonusAmountFeatureOptions {
|
||||
bonusAmount: Computable<DecimalSource>;
|
||||
}
|
||||
|
@ -77,6 +42,16 @@ export type GenericBonusCompletionsFeature = Replace<
|
|||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
}
|
||||
>;
|
||||
|
||||
/**
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
* Allows the addition of "bonus levels" to the decorated feature, with an accompanying "total amount".
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
* To function properly, the `createFeature()` function must have its generic type extended by {@linkcode BonusAmountFeatureOptions}.
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
* To allow access to the decorated values outside the `createFeature()` function, the output type must be extended by {@linkcode GenericBonusAmountFeature}.
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
* @example ```ts
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
* createRepeatable<RepeatableOptions & BonusAmountFeatureOptions>(() => ({
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
* bonusAmount: noPersist(otherRepeatable.amount),
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
* ...
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
* }), bonusAmountDecorator) as GenericRepeatable & GenericBonusAmountFeature
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
*/
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
export const bonusAmountDecorator: Decorator<BonusAmountFeatureOptions, BaseBonusAmountFeature, GenericBonusAmountFeature> = {
|
||||
postConstruct(feature) {
|
||||
processComputable(feature, "bonusAmount");
|
||||
|
@ -88,18 +63,25 @@ export const bonusAmountDecorator: Decorator<BonusAmountFeatureOptions, BaseBonu
|
|||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
}
|
||||
}
|
||||
}
|
||||
export const bonusCompletionsDecorator: Decorator<BonusAmountFeatureOptions, BaseBonusCompletionsFeature, GenericBonusCompletionsFeature> = {
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
/**
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
* Allows the addition of "bonus levels" to the decorated feature, with an accompanying "total amount".
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
* To function properly, the `createFeature()` function must have its generic type extended by {@linkcode BonusCompletionFeatureOptions}.
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
* To allow access to the decorated values outside the `createFeature()` function, the output type must be extended by {@linkcode GenericBonusCompletionFeature}.
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
* @example ```ts
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
* createChallenge<ChallengeOptions & BonusCompletionFeatureOptions>(() => ({
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
* bonusCompletions: noPersist(otherChallenge.completions),
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
* ...
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
* }), bonusCompletionDecorator) as GenericChallenge & GenericBonusCompletionFeature
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
*/
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
export const bonusCompletionsDecorator: Decorator<BonusCompletionsFeatureOptions, BaseBonusCompletionsFeature, GenericBonusCompletionsFeature> = {
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
postConstruct(feature) {
|
||||
processComputable(feature, "bonusAmount");
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
processComputable(feature, "bonusCompletions");
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
if (feature.totalCompletions === undefined) {
|
||||
feature.totalCompletions = computed(() => Decimal.add(
|
||||
unref(feature.completions ?? 0),
|
||||
unref(feature.bonusAmount as ProcessedComputable<DecimalSource>)
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
unref(feature.bonusCompletions as ProcessedComputable<DecimalSource>)
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
// #endregion
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
/*----====----*/
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
||||
|
||||
Please change this back to util/bignum Please change this back to util/bignum
Heh, guess that's what I get for just letting it mass-import everything Heh, guess that's what I get for just letting it mass-import everything
Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called Trust me, I've made this same mistake so many times. I wish I had a better way to hint to the IDE what the default export is expected to be called
|
49
src/features/decorators/common.ts
Normal file
|
@ -0,0 +1,49 @@
|
|||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
import { Replace, OptionsObject } from "../feature";
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
import { Computable, GetComputableType, processComputable, ProcessedComputable } from "util/computed";
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
import { Persistent, State } from "game/persistence";
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
/*----====----*/
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
export type Decorator<FeatureOptions, BaseFeature = {}, GenericFeature = {}, S extends State = State> = {
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
getPersistentData?(): Record<string, Persistent<S>>;
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
preConstruct?(feature: OptionsObject<FeatureOptions,BaseFeature,GenericFeature>): void;
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
postConstruct?(feature: OptionsObject<FeatureOptions,BaseFeature,GenericFeature>): void;
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
getGatheredProps?(feature: OptionsObject<FeatureOptions,BaseFeature,GenericFeature>): Partial<OptionsObject<FeatureOptions,BaseFeature,GenericFeature>>
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
}
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
/*----====----*/
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
// #region Effect Decorator
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
export interface EffectFeatureOptions {
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
effect: Computable<any>;
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
}
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
export type EffectFeature<T extends EffectFeatureOptions> = Replace<
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
T, { effect: GetComputableType<T["effect"]>; }
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
>;
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
export type GenericEffectFeature = Replace<
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
EffectFeature<EffectFeatureOptions>,
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
{ effect: ProcessedComputable<any>; }
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
>;
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
/**
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
* Allows the usage of an `effect` field in the decorated feature.
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
* To function properly, the `createFeature()` function must have its generic type extended by {@linkcode EffectFeatureOptions}.
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
* To allow access to the decorated values outside the `createFeature()` function, the output type must be extended by {@linkcode GenericEffectFeature}.
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
* @example ```ts
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
* createRepeatable<RepeatableOptions & EffectFeatureOptions>(() => ({
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
* effect() { return Decimal.pow(2, this.amount); },
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
* ...
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
* }), effectDecorator) as GenericUpgrade & GenericEffectFeature;
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
* ```
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
*/
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
export const effectDecorator: Decorator<EffectFeatureOptions, {}, GenericEffectFeature> = {
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
postConstruct(feature) {
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
processComputable(feature, "effect");
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
}
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
}
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
// #endregion
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
/*----====----*/
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
||||
|
||||
I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them I'm not a huge fan of adding these separators and #region comments since nowhere else in the project has them
|
|
@ -1,5 +1,5 @@
|
|||
import Select from "components/fields/Select.vue";
|
||||
import { Decorator } from "features/decorators";
|
||||
import { Decorator } from "features/decorators/common";
|
||||
import type {
|
||||
CoercableComponent,
|
||||
GenericComponent,
|
||||
|
|
|
@ -24,7 +24,7 @@ import { createLazyProxy } from "util/proxies";
|
|||
import { coerceComponent, isCoercableComponent } from "util/vue";
|
||||
import type { Ref } from "vue";
|
||||
import { computed, unref } from "vue";
|
||||
import { Decorator, GenericBonusAmountFeature } from "./decorators";
|
||||
import { Decorator } from "./decorators/common";
|
||||
|
||||
/** A symbol used to identify {@link Repeatable} features. */
|
||||
export const RepeatableType = Symbol("Repeatable");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Decorator } from "features/decorators";
|
||||
import { Decorator } from "features/decorators/common";
|
||||
import type { CoercableComponent, OptionsFunc, Replace, StyleValue } from "features/feature";
|
||||
import { Component, GatherProps, getUniqueID, setDefault, Visibility } from "features/feature";
|
||||
import type { Link } from "features/links/links";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { isArray } from "@vue/shared";
|
||||
import { Decorator } from "features/decorators";
|
||||
import { Decorator } from "features/decorators/common";
|
||||
import type {
|
||||
CoercableComponent,
|
||||
GenericComponent,
|
||||
|
@ -15,11 +15,13 @@ import {
|
|||
setDefault,
|
||||
Visibility
|
||||
} from "features/feature";
|
||||
import { createResource } from "features/resources/resource";
|
||||
import UpgradeComponent from "features/upgrades/Upgrade.vue";
|
||||
import type { GenericLayer } from "game/layers";
|
||||
import type { Persistent } from "game/persistence";
|
||||
import { persistent } from "game/persistence";
|
||||
import {
|
||||
createCostRequirement,
|
||||
createVisibilityRequirement,
|
||||
payRequirements,
|
||||
Requirements,
|
||||
|
|
Please change this back to util/bignum