1 Metrics
Michael Zhang edited this page 2023-12-08 15:31:15 -06:00

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",
};