All metrics
- empire.(id).energyStock : number
Effects
interface Effect {
affectedGlob: string;
operation: "add" | "mul";
// TODO: Make this actually a union
rate: string; // For add
amount: number; // For mul
timeStart: number;
duration: number | "indefinite";
}
Examples:
const alloyProductionUpkeep: Effect = {
affectedGlob: "$empire.alloyStock",
operation: "add",
rate: "1/s",
timeStart: <...>,
duration: "indefinite",
};