Mods
This commit is contained in:
parent
6fb7d02bd5
commit
9882526a16
|
@ -22,16 +22,55 @@ from .settings import Settings
|
||||||
|
|
||||||
class Method:
|
class Method:
|
||||||
merge = 0
|
merge = 0
|
||||||
|
|
||||||
triumph = 1
|
triumph = 1
|
||||||
hit = 2
|
hit = 2
|
||||||
|
|
||||||
travel = 3
|
travel = 3
|
||||||
|
|
||||||
thinking_1 = 4
|
thinking_1 = 4
|
||||||
thinking_2 = 5
|
thinking_2 = 5
|
||||||
|
|
||||||
sentence_1 = 6
|
sentence_1 = 6
|
||||||
sentence_2 = 7
|
sentence_2 = 7
|
||||||
sentence_3 = 8
|
sentence_3 = 8
|
||||||
sentence_4 = 9
|
sentence_4 = 9
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def opts_all() -> list[int]:
|
||||||
|
return [
|
||||||
|
Method.triumph,
|
||||||
|
Method.hit,
|
||||||
|
Method.travel,
|
||||||
|
Method.thinking_1,
|
||||||
|
Method.thinking_2,
|
||||||
|
Method.sentence_1,
|
||||||
|
Method.sentence_2,
|
||||||
|
Method.sentence_3,
|
||||||
|
Method.sentence_4,
|
||||||
|
]
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def opts_score() -> list[int]:
|
||||||
|
return [Method.triumph, Method.hit]
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def opts_travel() -> list[int]:
|
||||||
|
return [Method.travel]
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def opts_thought() -> list[int]:
|
||||||
|
return [Method.thinking_1, Method.thinking_2]
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def opts_words() -> list[int]:
|
||||||
|
return [
|
||||||
|
Method.sentence_1,
|
||||||
|
Method.sentence_2,
|
||||||
|
Method.sentence_3,
|
||||||
|
Method.sentence_4,
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
class Game:
|
class Game:
|
||||||
timer: QTimer | None = None
|
timer: QTimer | None = None
|
||||||
|
@ -201,33 +240,19 @@ class Game:
|
||||||
opts: list[int]
|
opts: list[int]
|
||||||
|
|
||||||
if mode == "all":
|
if mode == "all":
|
||||||
opts = [
|
opts = Method.opts_all()
|
||||||
Method.triumph,
|
# Make sentence more probable
|
||||||
Method.hit,
|
opts.extend([101, 102])
|
||||||
Method.travel,
|
|
||||||
Method.thinking_1,
|
|
||||||
Method.thinking_2,
|
|
||||||
Method.sentence_1,
|
|
||||||
Method.sentence_2,
|
|
||||||
Method.sentence_3,
|
|
||||||
Method.sentence_4,
|
|
||||||
Method.sentence_4 + 1,
|
|
||||||
Method.sentence_4 + 2,
|
|
||||||
Method.sentence_4 + 3,
|
|
||||||
]
|
|
||||||
elif mode == "score":
|
elif mode == "score":
|
||||||
opts = [Method.triumph, Method.hit]
|
opts = Method.opts_score()
|
||||||
elif mode == "travel":
|
elif mode == "travel":
|
||||||
opts = [Method.travel]
|
opts = Method.opts_travel()
|
||||||
elif mode == "thought":
|
elif mode == "thought":
|
||||||
opts = [Method.thinking_1, Method.thinking_2]
|
opts = Method.opts_thought()
|
||||||
elif mode == "words":
|
elif mode == "words":
|
||||||
opts = [
|
opts = Method.opts_words()
|
||||||
Method.sentence_1,
|
else:
|
||||||
Method.sentence_2,
|
return
|
||||||
Method.sentence_3,
|
|
||||||
Method.sentence_4,
|
|
||||||
]
|
|
||||||
|
|
||||||
Game.merge_charge += 1
|
Game.merge_charge += 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue