Temporarily destroy the world, instead of copying it.

Not pretty, but faster. Unfortunately can't be threaded alongside rom/multidata creation, as otherwise locations may be empty at certain times.
This commit is contained in:
Fabian Dill
2021-03-17 10:53:40 +01:00
parent 275ac5be2b
commit 01ef29568a
3 changed files with 21 additions and 23 deletions

View File

@@ -141,10 +141,6 @@ class MultiWorld():
#for i in range(players):
# self.worlds.append(worlds.alttp.ALTTPWorld({}, i))
def copy(self) -> MultiWorld:
import copy
return copy.deepcopy(self)
def secure(self):
self.random = secrets.SystemRandom()