mirror of
https://github.com/tonytins/citylimits.git
synced 2025-03-15 12:21:22 +00:00
News outlet variable
Two possible news outlets: FNN (Furtropolis News Network) or Pawprint Press.
This commit is contained in:
parent
d1da70a099
commit
9dc5956e89
2 changed files with 7 additions and 1 deletions
|
@ -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."
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue