Beispiel #1
0
 public string getTip()
 {
     if (shouldTeachLocation())
     {
         randomLocationToReveal = mySceneCatalogue.revealRandomUnknownLocation();
         return(locationReveals[new System.Random().Next(0, locationReveals.Count)].Replace("%location%", randomLocationToReveal.locationName).Replace("%verb%", randomLocationToReveal.getVerb()));
     }
     else
     {
         return(tips[new System.Random().Next(0, tips.Count)]);
     }
 }