Skip to content

Дубровин Алексей#10

Open
Griboedoff wants to merge 2 commits intourfu-2017:masterfrom
Griboedoff:master
Open

Дубровин Алексей#10
Griboedoff wants to merge 2 commits intourfu-2017:masterfrom
Griboedoff:master

Conversation

@Griboedoff
Copy link
Copy Markdown

No description provided.

@honest-hrundel honest-hrundel changed the title master Дубровин Алексей May 3, 2018
@honest-hrundel
Copy link
Copy Markdown

🍅 Не пройден линтинг или базовые тесты

@honest-hrundel
Copy link
Copy Markdown

🍏 Пройден линтинг и базовые тесты

@savichev-igor
Copy link
Copy Markdown

🍪

@honest-hrundel
Copy link
Copy Markdown

🍏 Пройден линтинг и базовые тесты

Copy link
Copy Markdown

@evgenymarkov evgenymarkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Круто, пофиксить пару моментов и готово)

Comment thread public/index.js

_save() {
const value = [this._energy, this._happiness, this._hunger, this._volumeLevel].join('|');
document.cookie = `state=${value}`;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это, конечно, работает. Но в будущем для таких вещей лучше использовать localStorage.

Comment thread public/index.js

sleep() {
this._sleepId = setInterval(() => {
this.energy++;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Бодрость накапливается после смерти

Comment thread public/index.js
hear() {
this._hearId = setInterval(() => {
this.happiness++;
if (this.happiness === 100) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Продолжает слушать при 100

@evgenymarkov evgenymarkov removed their assignment Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants