mirror of
https://github.com/tonytins/citylimits.git
synced 2025-03-22 07:22:20 +00:00
FNN and Central Tower
If the Central Tower is present, change Pawprint Press to FNN.
This commit is contained in:
parent
9dc5956e89
commit
cc4747ab65
4 changed files with 25 additions and 4 deletions
|
@ -9,7 +9,7 @@
|
||||||
"text": "All Raccoons Cheat At Poker, Animal Researchers Say."
|
"text": "All Raccoons Cheat At Poker, Animal Researchers Say."
|
||||||
},
|
},
|
||||||
"4": {
|
"4": {
|
||||||
"text": "[outlet]. Always there."
|
"text": "[outlet]: Don't Blame Us If You're Not Paying Attention"
|
||||||
},
|
},
|
||||||
"5": {
|
"5": {
|
||||||
"text": "Cat Hijacks Municipal Bus; Riders Applaud Good Timing At Stops And Courteous Meows."
|
"text": "Cat Hijacks Municipal Bus; Riders Applaud Good Timing At Stops And Courteous Meows."
|
||||||
|
@ -40,5 +40,23 @@
|
||||||
},
|
},
|
||||||
"14": {
|
"14": {
|
||||||
"text": "This Space For Rent."
|
"text": "This Space For Rent."
|
||||||
|
},
|
||||||
|
"15": {
|
||||||
|
"text": "Crime Lord Spotted In [city]; Mayor Says \"No Comment\"."
|
||||||
|
},
|
||||||
|
"16": {
|
||||||
|
"text": "Cat Burglar Spotted, Mistaken For Dalmatian."
|
||||||
|
},
|
||||||
|
"17": {
|
||||||
|
"text": "[outlet]: Information With As Few Words As Possible."
|
||||||
|
},
|
||||||
|
"18": {
|
||||||
|
"text": "[city] Phonebooks Print All Wrong Numbers; Results In 15 New Marriages."
|
||||||
|
},
|
||||||
|
"19": {
|
||||||
|
"text": "[outlet]: Properly Spelled Words From Beginning To End."
|
||||||
|
},
|
||||||
|
"20": {
|
||||||
|
"text": "[outlet]: Not For The Faint Of Heart."
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -46,7 +46,7 @@ wait_time = 150.0
|
||||||
autostart = true
|
autostart = true
|
||||||
|
|
||||||
[node name="RotateNews" type="Timer" parent="."]
|
[node name="RotateNews" type="Timer" parent="."]
|
||||||
wait_time = 5.0
|
wait_time = 10.0
|
||||||
autostart = true
|
autostart = true
|
||||||
|
|
||||||
[node name="Map" parent="." instance=ExtResource( 1 )]
|
[node name="Map" parent="." instance=ExtResource( 1 )]
|
||||||
|
|
|
@ -9,6 +9,7 @@ var population: int = 0
|
||||||
var budget: int = 20000
|
var budget: int = 20000
|
||||||
var expenses: int
|
var expenses: int
|
||||||
var is_alert: bool = false
|
var is_alert: bool = false
|
||||||
|
var has_ctower: bool = false # Central Tower
|
||||||
|
|
||||||
const currency: String = "§"
|
const currency: String = "§"
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,8 @@ func _load_news():
|
||||||
return dialogue
|
return dialogue
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
|
SimData.city_name = SimData.city_name.capitalize()
|
||||||
|
SimData.mayor_name = SimData.mayor_name.capitalize()
|
||||||
SimEvents.connect("send_alert", self, "_start_alert")
|
SimEvents.connect("send_alert", self, "_start_alert")
|
||||||
SimEvents.connect("resume_news", self, "_resume_ticker")
|
SimEvents.connect("resume_news", self, "_resume_ticker")
|
||||||
_random_news("res://dialog/ticker.json")
|
_random_news("res://dialog/ticker.json")
|
||||||
|
@ -42,8 +44,8 @@ func _random_news(file):
|
||||||
var ticker_range = rng.randi_range(0, max_mange)
|
var ticker_range = rng.randi_range(0, max_mange)
|
||||||
var news = news_keys[ticker_range].text
|
var news = news_keys[ticker_range].text
|
||||||
|
|
||||||
if SimData.city_name == "Furtropolis" and "[outlet]" in news:
|
if SimData.has_ctower and "[outlet]" in news:
|
||||||
# FNN = Furtropolis News Network
|
# FNN = Furtropolis/Furry News Network
|
||||||
news = news.replace("[outlet]", "FNN")
|
news = news.replace("[outlet]", "FNN")
|
||||||
elif "[outlet]" in news:
|
elif "[outlet]" in news:
|
||||||
news = news.replace("[outlet]", "Pawprint Press")
|
news = news.replace("[outlet]", "Pawprint Press")
|
||||||
|
|
Loading…
Add table
Reference in a new issue