Buckets:

download
raw
1.05 kB
import collections
from typing import Self
from randovania.game_description.resources.pickup_index import PickupIndex
from randovania.generator.hint_state import HintState
from randovania.graph.state import State
from randovania.resolver.logic import Logic
class ResolverHintState(HintState):
def __copy__(self) -> Self:
other = self.__class__(
self.configuration,
self.graph,
)
other.hint_initial_pickups = dict(self.hint_initial_pickups)
other.hint_seen_count = collections.defaultdict(int, self.hint_seen_count)
other.pickup_available_indices_when_collected = dict(self.pickup_available_indices_when_collected)
return other
def valid_available_locations_for_hint(self, state: State, logic: Logic) -> list[PickupIndex]:
collected = list(state.collected_pickup_indices(self.graph))
return [
node.pickup_index
for node in self.graph.nodes
if node.pickup_index is not None and node.pickup_index in collected
]

Xet Storage Details

Size:
1.05 kB
·
Xet hash:
d6866bdc7ebd9392c7f6428bfcde7d221945ed9c5c90e4a2602dcc000c854f3e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.