HowTo: Create a new technology - SmilieGames/stone-age-reloaded GitHub Wiki
Go to components/moves/TechMoves.js
and append the new technology to the technologies hash.
e.g.
export const technologies = {
newTech: {
label: 'New Technology',
description: 'Adds a super awesome new perk',
active: false,
cost: 10000,
requirements: ['plants'],
enhancement: (G) => { G.fruits.foodProductionPerCitizen = 100 }
},
Then head over to components/screens/TechTree.js
and add your new technology to a <Tile/>
.
<Tile><Tech {...data} tech="newTech"/></Tile>
Et voila, it should now show up. Try it out!