Make turnbased combat work
This commit is contained in:
parent
ea7a3c83d7
commit
f70fd64478
7 changed files with 139 additions and 60 deletions
|
|
@ -128,6 +128,7 @@ class ExtendedLoopingCall(LoopingCall):
|
|||
if self.running and self.interval > 0:
|
||||
total_runtime = self.clock.seconds() - self.starttime
|
||||
interval = self.start_delay or self.interval
|
||||
print("next_call_time:", total_runtime, interval, self.clock.seconds(), self.starttime)
|
||||
return max(0, interval - (total_runtime % self.interval))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue