소스 검색

Add population counter

mass-vore
Fen Dweller 7 년 전
부모
커밋
340a2097f5
1개의 변경된 파일과 12개의 추가작업 그리고 0개의 파일을 삭제
  1. +12
    -0
      stories/mass-vore.js

+ 12
- 0
stories/mass-vore.js 파일 보기

@@ -4,6 +4,7 @@
function devour(state, count) { function devour(state, count) {
state.player.stats.stomach.value += count; state.player.stats.stomach.value += count;
state.player.stats.eaten.value += count; state.player.stats.eaten.value += count;
state.info.population.value -= count;
playRandomSfx("swallow"); playRandomSfx("swallow");
} }


@@ -129,6 +130,17 @@
] ]
}, state); }, state);

state.info.population = {
id: "population",
name: "Population",
type: "counter",
min: 0,
max: 5000000,
value: 5000000,
get render() {return this.value},
color: "rgb(255,255,255)"
};
}, },
intro: state => { intro: state => {
print(["Munch time"]); print(["Munch time"]);


불러오는 중...
취소
저장