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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user