@kitten-science/kitten-scientists 2.0.0-beta.11-dev.20250606105247 → 2.0.0-beta.11-dev.20250607203148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5447,10 +5447,16 @@
5447
5447
 
5448
5448
  class UpgradeSettingsItem extends SettingTrigger {
5449
5449
  #upgrade;
5450
- $upgrade;
5450
+ #$upgrade;
5451
5451
  get upgrade() {
5452
5452
  return this.#upgrade;
5453
5453
  }
5454
+ get $upgrade() {
5455
+ return this.#$upgrade;
5456
+ }
5457
+ set $upgrade(value) {
5458
+ this.#$upgrade = value;
5459
+ }
5454
5460
  constructor(upgrade, enabled = false) {
5455
5461
  super(enabled, -1);
5456
5462
  this.#upgrade = upgrade;
@@ -5762,25 +5768,6 @@
5762
5768
  this._host.engine.printOutput("ks-activity type_ks-craft", "#e65C00", message);
5763
5769
  }
5764
5770
  }
5765
- _canCraft(name, amount) {
5766
- if (!this._host.game.workshopTab.visible && name !== "wood") {
5767
- return false;
5768
- }
5769
- const craft = this.getCraft(name);
5770
- const enabled = mustExist(this.settings.resources[name]).enabled;
5771
- let result = false;
5772
- if (craft.unlocked && enabled) {
5773
- result = true;
5774
- const prices = this._host.game.workshop.getCraftPrice(craft);
5775
- for (const price of prices) {
5776
- const value = this.getValueAvailable(price.name);
5777
- if (value < price.val * amount) {
5778
- result = false;
5779
- }
5780
- }
5781
- }
5782
- return result;
5783
- }
5784
5771
  /**
5785
5772
  * Retrieve the resource information object from the game.
5786
5773
  *