fix: 完善
This commit is contained in:
@@ -9,11 +9,13 @@ class Fission:
|
||||
|
||||
def __init__(self, atom: pt.Atom, phase=PhaserState.RECOGNITION):
|
||||
self.atom = atom
|
||||
#print(f"{phase.value}")
|
||||
self.orbital_schedule = atom.registry["orbital"]["schedule"][phase.value] # type: ignore
|
||||
self.orbital_puzzles = atom.registry["orbital"]["puzzles"]
|
||||
# print(self.orbital_schedule)
|
||||
self.puzzles = list()
|
||||
for item, possibility in self.orbital_schedule: # type: ignore
|
||||
print(f"ad:{item}")
|
||||
if not isinstance(possibility, float):
|
||||
possibility = float(possibility)
|
||||
while possibility > 1:
|
||||
@@ -31,6 +33,8 @@ class Fission:
|
||||
"alia": item,
|
||||
}
|
||||
)
|
||||
print(f"ok:{item}")
|
||||
|
||||
|
||||
def generate(self):
|
||||
yield from self.puzzles
|
||||
|
||||
@@ -21,10 +21,11 @@ class Procession:
|
||||
else:
|
||||
self.state = ProcessionState.RUNNING
|
||||
try:
|
||||
print(self.cursor)
|
||||
self.current_atom = self.queue[self.cursor]
|
||||
return 1 # 成功
|
||||
except IndexError as e:
|
||||
print(f"{e}")
|
||||
#print(f"{e}")
|
||||
self.state = ProcessionState.FINISHED
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user