Bladeren bron

Allow news lines to use current belongings.

tags/v0.0.4
Fen Dweller 5 jaren geleden
bovenliggende
commit
234c837a05
2 gewijzigde bestanden met toevoegingen van 19 en 1 verwijderingen
  1. +17
    -0
      constants.js
  2. +2
    -1
      gorge.js

+ 17
- 0
constants.js Bestand weergeven

@@ -1008,6 +1008,7 @@ const clickVictimUpgradeText = {
// state.ownedUpgrades == ownedUpgrades
// state.resources == resources
// state.currentProductivity == currentProductivity
// state.belongings == belongings

const news = [
{
@@ -1027,5 +1028,21 @@ const news = [
lines: [
state => "You have at least 100 food. Wow!"
]
},
{
condition: state => {
return state.currentProductivity.food > 100;
},
lines: [
state => "You're eating more than 100 food per second. Wow!"
]
},
{
condition: state => {
return state.belongings.micro.count >= 50;
},
lines: [
state => "You have at least 50 micros. Wow!"
]
}
]

+ 2
- 1
gorge.js Bestand weergeven

@@ -650,7 +650,8 @@ function doNews() {
const state = {
ownedUpgrades: ownedUpgrades,
resources: resources,
currentProductivity: currentProductivity
currentProductivity: currentProductivity,
belongings: belongings
};

let options = [];


Laden…
Annuleren
Opslaan