News outlet variable

Two possible news outlets: FNN (Furtropolis News Network) or Pawprint Press.
This commit is contained in:
Tony Bark 2021-05-26 03:48:50 -04:00
parent d1da70a099
commit 9dc5956e89
2 changed files with 7 additions and 1 deletions

View file

@ -9,7 +9,7 @@
"text": "All Raccoons Cheat At Poker, Animal Researchers Say."
},
"4": {
"text": "Pawprint News. Always there."
"text": "[outlet]. Always there."
},
"5": {
"text": "Cat Hijacks Municipal Bus; Riders Applaud Good Timing At Stops And Courteous Meows."

View file

@ -42,6 +42,12 @@ func _random_news(file):
var ticker_range = rng.randi_range(0, max_mange)
var news = news_keys[ticker_range].text
if SimData.city_name == "Furtropolis" and "[outlet]" in news:
# FNN = Furtropolis News Network
news = news.replace("[outlet]", "FNN")
elif "[outlet]" in news:
news = news.replace("[outlet]", "Pawprint Press")
if "[city]" in news:
news = news.replace("[city]", SimData.city_name)