mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
MultiServer:
implement a hint recheck that triggers on get_save() Still torn if I want a single hint list per team and filter on demand, or have filtered lists and re_check on demand.
This commit is contained in:
@@ -244,7 +244,15 @@ class Context(Node):
|
||||
import atexit
|
||||
atexit.register(self._save, True) # make sure we save on exit too
|
||||
|
||||
def recheck_hints(self):
|
||||
for team, slot in self.hints:
|
||||
self.hints[team, slot] = {
|
||||
hint.re_check(self, team) for hint in
|
||||
self.hints[team, slot]
|
||||
}
|
||||
|
||||
def get_save(self) -> dict:
|
||||
self.recheck_hints()
|
||||
d = {
|
||||
"connect_names": self.connect_names,
|
||||
"received_items": self.received_items,
|
||||
|
Reference in New Issue
Block a user