|
|
|
@@ -55,6 +55,10 @@ function initGamePostSetup(state) { |
|
|
|
createStatDisplays(state.player.stats, "player"); |
|
|
|
} |
|
|
|
|
|
|
|
function getStat(stat, state) { |
|
|
|
return state.palyer.stats[stat].value; |
|
|
|
} |
|
|
|
|
|
|
|
function changeStat(stat, amount, state) { |
|
|
|
let value = state.player.stats[stat].value; |
|
|
|
value += amount; |
|
|
|
|