This commit is contained in:
2026-02-26 22:59:30 +01:00
parent 59e74df0a9
commit acb2ea5fdd
2 changed files with 56 additions and 35 deletions

View File

@@ -4,17 +4,22 @@
["Andromedes",0], ["Andromedes",0],
["Argyn",0], ["Argyn",0],
["Aslak",0], ["Aslak",0],
["Basil",0],
["Butterswick",0], ["Butterswick",0],
["Celiestra",0], ["Celiestra",0],
["Cynthia",0], ["Cynthia",0],
["Darkwood",0], ["Darkwood",0],
["Dragonsbane",0],
["Edgar",0], ["Edgar",0],
["Eggert",0], ["Eggert",0],
["Enkelton",0], ["Enkelton",0],
["Farrow",0],
["Farvol",0],
["Galinndan",0], ["Galinndan",0],
["Goldenleaf",0], ["Goldenleaf",0],
["Gyro",0], ["Gyro",0],
["Half-ear",0], ["Half-ear",0],
["Haron",0],
["Marigold",0], ["Marigold",0],
["McGalloway",0], ["McGalloway",0],
["Moklus",0], ["Moklus",0],
@@ -25,6 +30,7 @@
["Sam",0], ["Sam",0],
["Silvan",0], ["Silvan",0],
["Silvertongue",0], ["Silvertongue",0],
["Sunder",0],
["Tymna",0], ["Tymna",0],
["Valeria",0], ["Valeria",0],
["Valindis",0], ["Valindis",0],
@@ -32,9 +38,12 @@
["Volynthia",0], ["Volynthia",0],
["bandit", 1], ["bandit", 1],
["castle", 1],
["centaur", 1],
["changeling", 1], ["changeling", 1],
["diplomat", 1], ["diplomat", 1],
["dragon", 1], ["dragon", 1],
["dragonborn", 1],
["dwarf", 1], ["dwarf", 1],
["elf", 1], ["elf", 1],
["fight", 1], ["fight", 1],
@@ -53,39 +62,52 @@
["trainee", 1], ["trainee", 1],
["war", 1], ["war", 1],
["black",2], ["Aeron's Hill",2],
["blue",2], ["Dragonsong",2],
["green",2], ["Farstone",2],
["purple",2], ["Faerûn",2],
["red",2], ["Giant's Heart",2],
["Hammerhome",2],
["Ildrazil",2],
["The Empire",2],
["The Feywilds",2],
["The Westerlands",2],
["Umberstrong",2],
["Volantis",2],
["attack",3], ["attack",3],
["capture",3], ["capture",3],
["crawled",3],
["deserted",3], ["deserted",3],
["disguised",3], ["disguised",3],
["eating",3], ["eating",3],
["escape",3], ["escape",3],
["exploding",3],
["fail",3],
["gathering",3], ["gathering",3],
["kidnapped",3], ["kidnapped",3],
["kill",3], ["kill",3],
["save",3], ["save",3],
["slipped",3],
["terrorizing",3], ["terrorizing",3],
["trade",3],
["trick",3], ["trick",3],
["flying",3], ["flying",3],
["half",4], ["half",4],
["high",4], ["high",4],
["wood",4],
["Dragonsong",5], ["Captain", 5],
["Giant's Heart",5], ["Lady", 5],
["Hammerhome",5], ["Lord", 5],
["The Empire",5],
["The Feywilds",5],
["The Westerlands",5],
["Volantis",5],
["Lady", 6], ["black",6],
["Lord", 6], ["blue",6],
["green",6],
["purple",6],
["red",6],
["white",6],
["artificer",7], ["artificer",7],
["barbarian",7], ["barbarian",7],
@@ -98,38 +120,37 @@
["ranger",7], ["ranger",7],
["rogue",7], ["rogue",7],
["sorcerer",7], ["sorcerer",7],
["warlock",7],
["wizard",7] ["wizard",7]
], ],
"pages": [ "pages": [
[ [
"The Party (Before Session)", "The Party (Before Session)",
"- [Adrian/0+6] [Goldenleaf/0], a [high/4] [elf/1] [rogue/7] from [Volantis/5] and owner of the [Goldenleaf/0] [inn/1].", "- [Adrian/0+5] [Goldenleaf/0], a [high/4] [elf/1] [rogue/7] from [Volantis/2] and owner of the [Goldenleaf/0] [inn/1].",
"- [Andromedes/0+6] [Moklus+Nuts/0], a [dwarf/1] [artificer/7] from [Hammerhome/5] and [diplomat/1] in [Dragonsong/5].", "- [Andromedes/0+5] [Moklus+Nuts/0], a [dwarf/1] [artificer/7] from [Hammerhome/2] and [diplomat/1] in [Dragonsong/2].",
"- [Aslak/0], an [orc/1] [barbarian/7]/[monk/7] from [The%Westerlands/5] and [trainee/1] of [Nix/0+6] [McGalloway/0].", "- [Aslak/0], an [orc/1] [barbarian/7]/[monk/7] from [The%Westerlands/2] and [trainee/1] of [Nix/0+5] [McGalloway/0].",
"- [Marigold/0+6] [Sagemonger/0], a [high/4] [elf/1] [wizard/7] from [The%Empire/5] and owner of [Sagemonger/0]'s.", "- [Marigold/0+5] [Sagemonger/0], a [high/4] [elf/1] [wizard/7] from [The%Empire/2] and owner of [Sagemonger/0]'s.",
"- [Nix/0+6] [McGalloway/0], a [changeling/1] [monk/7] from [The%Westerlands/5] and owner of the [flying/3] [pegasus/1].", "- [Nix/0+5] [McGalloway/0], a [changeling/1] [monk/7] from [The%Westerlands/2] and owner of the [flying/3] [pegasus/1].",
"- [Sam/0], a [satyr/1] [cleric/7] from [The%Feywilds/5].", "- [Sam/0], a [satyr/1] [cleric/7] from [The%Feywilds/2].",
"- [Silvan/0], a [human/1] [fighter/7] from [The%Empire/5] and formerly a [trainee/1] of [Paterius/0+6] [Enkelton/0]." "- [Silvan/0], a [human/1] [fighter/7] from [The%Empire/2] and formerly a [trainee/1] of [Paterius/0+5] [Enkelton/0]."
], ],
[ [
"Present Threats", "Present Threats",
"- [Lord+Edgar/0+6] [Darkwood/0] is [gathering/3] [power/1] in his [tower/1], far away from civilization.", "- [Lord+Edgar/0+5] [Darkwood/0] is [gathering/3] [power/1] in his [tower/1], far away from civilization.",
"- [Volynthia/0], a [green/2] [dragon/1], is trying to [escape/3] from [The%Feywilds/5], helped by a group of [orc/1]s.", "- [Volynthia/0], a [green/6] [dragon/1], is trying to [escape/3] from [The%Feywilds/2], helped by a group of [orc/1]s.",
"- A [war/1] is raging between [Lady+Valeria/0+6] [Argyn/0] and the [giant/1]s, for control of [Giant's%Heart/5]." "- A [war/1] is raging between [Lady+Valeria/0+5] [Argyn/0] and the [giant/1]s, for control of [Giant's%Heart/2]."
], ],
[ [
"Before the Session", "Before the Session",
"The [purple/2] [rose/1], also known as the [soup/1] [bandit/1]s, have been [terrorizing/3] the citizens of [Dragonsong/5] by [eating/3] all of their [soup/1]. They also [kidnapped/3] [Galinndan/0], friend of [Adrian/0+6] [Goldenleaf/0] and chef of the [Goldenleaf/0] [inn/1]. They are lead by [Valindis/0+6] [Half-ear/0] and are headquartered in the [Dragonsong/5] [sewers/1]." "The [purple/6] [rose/1], also known as the [soup/1] [bandit/1]s, have been [terrorizing/3] the citizens of [Dragonsong/2] by [eating/3] all of their [soup/1]. They also [kidnapped/3] [Galinndan/0], friend of [Adrian/0+5] [Goldenleaf/0] and chef of the [Goldenleaf/0] [inn/1]. They are lead by [Valindis/0+5] [Half-ear/0] and are headquartered in the [Dragonsong/2] [sewers/1]."
], ],
[ [
"Into the Dark", "Into the Dark",
"The party head into the [Dragonsong/5] [sewers/1] to [attack/3] the [purple/2] [rose/1] and [save/3] [Galinndan/0]. They meet and join up with [Cynthia/0], a [human/1] [rogue/7] who has [deserted/3] the [purple/2] [rose/1]. They then [kill/3] the 2 [guard/1]s outside the door." "The party head into the [Dragonsong/2] [sewers/1] to [attack/3] the [purple/6] [rose/1] and [save/3] [Galinndan/0]. They meet and join up with [Cynthia/0], a [human/1] [rogue/7] who has [deserted/3] the [purple/6] [rose/1]. They then [kill/3] the 2 [guard/1]s outside the door."
], ],
[ [
"The Plan", "The Plan",
"The party [trick/3] [Valindis/0+6] [Half-ear/0] by having [Cynthia/0] \"[capture/3]\" [Nix/0+6] [McGalloway/0] [disguised/3] as [Adrian/0+6] [Goldenleaf/0].", "The party [trick/3] [Valindis/0+5] [Half-ear/0] by having [Cynthia/0] \"[capture/3]\" [Nix/0+5] [McGalloway/0] [disguised/3] as [Adrian/0+5] [Goldenleaf/0].",
"A [fight/1] starts, and they [kill/3] every member of the [purple/2] [rose/1]." "A [fight/1] starts, and they [kill/3] every member of the [purple/6] [rose/1]."
] ]
] ]
} }

12
main.py
View File

@@ -69,22 +69,22 @@ INDICATOR_POS = Vector2(TEXT_PAGE_WIDTH-(INDICATOR_SIZE+INDICATOR_MARGIN),TEXT_P
class WordColor(Enum): class WordColor(Enum):
Red = 0 # Names Red = 0 # Names
Green = 1 # Nouns Green = 1 # Nouns
Lime = 2 # Numbers and such Lime = 6 # Numbers and such
Blue = 3 # Verbs Blue = 3 # Verbs
Grey = 4 # Other Grey = 4 # Other
Purple = 5 # Places Purple = 2 # Places
Yellow = 6 # Titles Yellow = 5 # Titles
Orange = 7 # Classes Orange = 7 # Classes
def color(self): def color(self):
return [ return [
"#b03334", "#b03334",
"#6a5f31", "#6a5f31",
"#62a032", "#623a75",
"#297cb7", "#297cb7",
"#767978", "#767978",
"#623a75",
"#bda627", "#bda627",
"#62a032",
"#b76c2d", "#b76c2d",
][self.value] ][self.value]
@@ -242,7 +242,7 @@ def draw_word_slot(word_slot: WordSlot, screen: pygame.surface.Surface):
pos.x + WORD_BORDER_WIDTH + WORD_WIDTH//4, pos.x + WORD_BORDER_WIDTH + WORD_WIDTH//4,
pos.y + WORD_BORDER_WIDTH, pos.y + WORD_BORDER_WIDTH,
(WORD_WIDTH*3)//4 - WORD_BORDER_WIDTH*2+1, (WORD_WIDTH*3)//4 - WORD_BORDER_WIDTH*2+1,
WORD_HEIGHT - WORD_BORDER_WIDTH*2+1 WORD_HEIGHT - WORD_BORDER_WIDTH*2
), ),
border_radius=WORD_BORDER_RADIUS border_radius=WORD_BORDER_RADIUS
) )