Skip to content

Commit

Permalink
fix: Hack.log に RPGObject を入れると例外をスローするバグ
Browse files Browse the repository at this point in the history
  • Loading branch information
teramotodaiki committed Jan 11, 2019
1 parent 47d39c2 commit f391a40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/hackforplay/object/object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1401,6 +1401,12 @@ export default class RPGObject extends enchant.Sprite implements N.INumbers {
await p; // await this.find() でみつけたときをループできるよう, 終了を待つ
}
}

toJSON() {
return {
name: this.name
};
}
}

function makeHpLabel(self: RPGObject) {
Expand Down

0 comments on commit f391a40

Please sign in to comment.