forked from interstellar_development/freeftf
Computer Fixing
This commit is contained in:
parent
10551189f9
commit
89ccda1523
3 changed files with 25 additions and 10 deletions
|
|
@ -11,7 +11,9 @@ func _ready():
|
|||
Game.computers += 1
|
||||
|
||||
func _on_computer_tick_timeout():
|
||||
current += (pc_occupied[0] + pc_occupied[1] + pc_occupied[2])
|
||||
if multiplayer.is_server():
|
||||
current += (pc_occupied[0] + pc_occupied[1] + pc_occupied[2])
|
||||
Server.sync_computers.rpc(name, current)
|
||||
if current >= TARGET:
|
||||
current = "Complete"
|
||||
$computer_tick.stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue