mirror of
https://github.com/tonytins/citylimits
synced 2025-06-25 17:34:43 -04:00
Rewrote news ticker
- Rewrote news ticker based on JSON web API tutorials - Simplified json files for news ticker as part of rewrite - Renamed /dialog to /json
This commit is contained in:
parent
b443ee61fe
commit
ef6b097ef2
20 changed files with 170 additions and 71 deletions
7
scripts/autoload/power_grid.gd
Normal file
7
scripts/autoload/power_grid.gd
Normal file
|
@ -0,0 +1,7 @@
|
|||
extends Node
|
||||
|
||||
var power_grid: int # Number of power stations in the area. Helps provide redundancies.
|
||||
var power_capacity: int
|
||||
var current_power_cap: int
|
||||
var prev_power_cap: int
|
||||
var has_power: bool
|
|
@ -14,18 +14,6 @@ var current_power_cap: int
|
|||
var prev_power_cap: int
|
||||
var has_power: bool
|
||||
|
||||
var res_tax: int = 1
|
||||
var comm_tax: int = 1
|
||||
var indust_tax: int = 1
|
||||
|
||||
var res_income: int
|
||||
var comm_income: int
|
||||
var ind_income: int
|
||||
|
||||
var fire_tax: int
|
||||
var police_tax: int
|
||||
var power_tax: int
|
||||
|
||||
var ticker_files: Array = [
|
||||
"adverts.json",
|
||||
"sammy.json"
|
||||
|
|
13
scripts/autoload/zone_data.gd
Normal file
13
scripts/autoload/zone_data.gd
Normal file
|
@ -0,0 +1,13 @@
|
|||
extends Node
|
||||
|
||||
var res_tax: int = 1
|
||||
var comm_tax: int = 1
|
||||
var indust_tax: int = 1
|
||||
|
||||
var res_income: int
|
||||
var comm_income: int
|
||||
var ind_income: int
|
||||
|
||||
var fire_tax: int
|
||||
var police_tax: int
|
||||
var power_tax: int
|
Loading…
Add table
Add a link
Reference in a new issue