Word bubbles

This commit is contained in:
2014-06-11 22:30:48 -07:00
parent b6bef335cf
commit e03763d26e

View File

@@ -274,6 +274,7 @@ var AISprite = function(game, x, y, spritetype) {
aistate = this.state & ( STATE_UNAWARE | STATE_CONCERNED | STATE_ALERTED | STATE_LOSTHIM );
console.log(this.sprite_group);
console.log(aistate);
console.log(moonlightDialog);
var mylines = moonlightDialog['status'][this.sprite_group][aistate];
var text = mylines[game.rnd.integerInRange(0, mylines.length)];
var style = {font: '12px Arial Bold', fill: '#ffffff', align: 'center'}