For #7 : Townsfolk and guardsmen spawn with 'treasure'. AI with treasure will occasionally 'glint' playing an effect to show the player they have treasure.

This commit is contained in:
2014-06-28 17:38:50 -07:00
parent 301073110b
commit 830ebe2261
8 changed files with 271 additions and 1 deletions

View File

@@ -339,3 +339,10 @@ function awardPlayerScoreByState(state)
}
}
}
function getRandomTreasure()
{
var treasures = Object.keys(moonlightTreasures);
var treasure = treasures[game.rnd.integerInRange(0, treasures.length)];
return treasure;
}