fix Board initialization errors that caused crashes and not displaying cards when loading a save due to StringName and naming errors

This commit is contained in:
betalars 2025-05-16 23:50:19 +02:00
parent c5ea8fd620
commit 37b06927dd
11 changed files with 98 additions and 81 deletions

View File

@ -2,24 +2,24 @@ class_name HardCards extends Node2D
static var source_dicts: Array[Dictionary] = [ static var source_dicts: Array[Dictionary] = [
{ {
"out_of_world": ["unique", "few_friends", []], "c_out_of_world": ["p_unique", "p_few_friends", []],
"rejection": ["finding_friends", "laughed_at", []], "c_rejection": ["p_finding_friends", "p_laughed_at", []],
"confusion": ["inner_conflict", "outer_conflict", []] "c_confusion": ["p_inner_conflict", "p_outer_conflict", []]
}, },
{ {
"homework": ["good_grades", "upset_peers", []], "c_homework": ["p_good_grades", "p_upset_peers", []],
"teachers": ["volunteering", "becoming_teacher", []], "c_teachers": ["p_volunteering", "p_becoming_teacher", []],
"joy": ["worried_mother", "thomas_gifted", []] "c_joy": ["p_worried_mother", "p_thomas_gifted", []]
}, },
{ {
"comic_heroes": ["effort", "agent_q", []], "c_comic_heroes": ["p_effort", "p_agent_q", []],
"boy_stuff": ["pretending", "girls", []], "c_boy_stuff": ["p_pretending", "girls", []],
"teasing": ["stubborn", "good_intended", ["thomas_gifted"]] "c_teasing": ["p_stubborn", "p_good_intended", ["p_thomas_gifted"]]
}, },
{ {
"jui_jutsu": ["body", "girly", []], "c_jui_jutsu": ["p_body", "p_girly", []],
"void": ["wet", "stop", []], "c_void": ["p_wet", "p_stop", []],
"hit": ["confidence", "vent", ["becoming_teacher"]] "c_hit": ["p_confidence", "p_vent", ["p_becoming_teacher"]]
}, },
] ]

View File

@ -93,6 +93,19 @@ func read_save_file():
if dict[key].begins_with("("): if dict[key].begins_with("("):
dict[key] = parse_vec_from_string(dict[key]) dict[key] = parse_vec_from_string(dict[key])
var cards: Dictionary[StringName, Variant]
var stickies: Dictionary[StringName, Variant]
for cardname:String in board_state["cards"]:
cards[StringName(cardname)] = board_state["cards"][cardname]
for sticky_name:String in board_state["stickies"]:
stickies[StringName(sticky_name)] = board_state["stickies"][sticky_name]
board_state = {
"cards": cards,
"stickies": stickies
}
is_valid = are_types_valid \ is_valid = are_types_valid \
and current_room >= 0 \ and current_room >= 0 \
and current_room < State.rooms.keys().size() \ and current_room < State.rooms.keys().size() \

View File

@ -162,43 +162,43 @@ Exploring social service year.,Exploring social service year.,Während des FSJ.,
Transitioning to university.,Transitioning to university.,Übergang zur Universität.,,, Transitioning to university.,Transitioning to university.,Übergang zur Universität.,,,
Exploring dorm room.,Exploring dorm room.,Während des Studiums.,,, Exploring dorm room.,Exploring dorm room.,Während des Studiums.,,,
Ending,Ending,Ende,,, Ending,Ending,Ende,,,
homework,"I never put in much effort for homework, ","Ich habe mir nie Mühe bei Hausaufgaben gegeben, ",,, c_homework,"I never put in much effort for homework, ","Ich habe mir nie Mühe bei Hausaufgaben gegeben, ",,,
good_grades,but at least I get good grades.,aber zumindest waren meine Noten gut.,,, p_good_grades,but at least I get good grades.,aber zumindest waren meine Noten gut.,,,
upset_peers,my peers were upset about that.,meine Klasse war deswegen sauer.,,, p_upset_peers,my peers were upset about that.,meine Klasse war deswegen sauer.,,,
teachers,"I like my teachers more than my classmates, ","Ich komm mit meinen Lehrern besser klar, als mit meiner Klasse, ",,, c_teachers,"I like my teachers more than my classmates, ","Ich komm mit meinen Lehrern besser klar, als mit meiner Klasse, ",,,
volunteering,doing voluntary social service at my school would be great.,vielleicht sollte ich ein FSJ vor dem Studium machen.,,, p_volunteering,doing voluntary social service at my school would be great.,vielleicht sollte ich ein FSJ vor dem Studium machen.,,,
becoming_teacher,Maybe I want to become a teacher.,vielleicht sollte ich Lehrerin werden.,,, p_becoming_teacher,Maybe I want to become a teacher.,vielleicht sollte ich Lehrerin werden.,,,
joy,"I can put ages into things I enjoy, ","Ich versinke in Dingen, die mir Freude machen,",,, c_joy,"I can put ages into things I enjoy, ","Ich versinke in Dingen, die mir Freude machen,",,,
worried_mother,my mother would be worried about that.,meiner Mutter macht das Sorgen.,,, p_worried_mother,my mother would be worried about that.,meiner Mutter macht das Sorgen.,,,
thomas_gifted,Mr. Thomas thinks that makes me gifted.,Herr Thomas denkt das macht mich begabt.,,, p_thomas_gifted,Mr. Thomas thinks that makes me gifted.,Herr Thomas denkt das macht mich begabt.,,,
comic_heroes,"Comic heroes are my role models, ","Comic Helden sind meine Vorbilder,",,, c_comic_heroes,"Comic heroes are my role models, ","Comic Helden sind meine Vorbilder,",,,
effort,"when I put in the effort, I can make the world a better place!","wenn ich mich nur anstrenge, kann ich die Welt verbessern!",,, p_effort,"when I put in the effort, I can make the world a better place!","wenn ich mich nur anstrenge, kann ich die Welt verbessern!",,,
agent_q,and I want to be like Agent Q!,"Ich will so sein, wie Agent Q!",,, p_agent_q,and I want to be like Agent Q!,"Ich will so sein, wie Agent Q!",,,
boy_stuff,"I like boy stuff, ","Ich mag Jungs Kram,",,, c_boy_stuff,"I like boy stuff, ","Ich mag Jungs Kram,",,,
pretending,yet they think I'm just pretending.,aber die denken ich tu einfach nur so.,,, p_pretending,yet they think I'm just pretending.,aber die denken ich tu einfach nur so.,,,
girls,and girls don't get that.,und Mädchen verstehen das einfach nicht!,,, p_girls,and girls don't get that.,und Mädchen verstehen das einfach nicht!,,,
teasing,"When Jojo got bullied for trying, I pretty much exploded","Ich bin ausgerastet, weil Jojo für ihre Mühe gemobbt wurde,",,, c_teasing,"When Jojo got bullied for trying, I pretty much exploded","Ich bin ausgerastet, weil Jojo für ihre Mühe gemobbt wurde,",,,
stubborn,"I wouldn't have it any other way, even if it was for my own good.","das würde ich nicht aufgeben, selbst wenn es mir helfen würde.",,, p_stubborn,"I wouldn't have it any other way, even if it was for my own good.","das würde ich nicht aufgeben, selbst wenn es mir helfen würde.",,,
good_intended,I will always stand up for the good intended!,"ich werde immer für Menschen einstehen, die das Richtige wollen!",,, p_good_intended,I will always stand up for the good intended!,"ich werde immer für Menschen einstehen, die das Richtige wollen!",,,
jui_jutsu,"I stopped doing jiu-jitsu, ","Ich habe mit Jiu Jitsu aufgehört,",,, c_jui_jutsu,"I stopped doing jiu-jitsu, ","Ich habe mit Jiu Jitsu aufgehört,",,,
body,my body just didn't feel right.,mein Körper hat sich falsch anfefühlt.,,, p_body,my body just didn't feel right.,mein Körper hat sich falsch anfefühlt.,,,
girly,I just hate being treated like a girl.,ich hasse es wie ein Mädchen behandelt zu werden.,,, p_girly,I just hate being treated like a girl.,ich hasse es wie ein Mädchen behandelt zu werden.,,,
hit,"I know how to properly hit people, ","Ich weiß, wie man ordentlich zuschlägt, ",,, c_hit,"I know how to properly hit people, ","Ich weiß, wie man ordentlich zuschlägt, ",,,
confidence,that gives me a lot of confidence.,das gibt mir viel Selbstvertrauen.,,, p_confidence,that gives me a lot of confidence.,das gibt mir viel Selbstvertrauen.,,,
vent,and that's a great vent.,ich kann da gut Frust ablassen.,,, p_vent,and that's a great vent.,ich kann da gut Frust ablassen.,,,
"Lukas did not ask for consent, he didn't explain a thing, I didnt even move! Yet he dared to assume, that ","Lukas did not ask for consent, he didn't explain a thing, I didnt even move! Yet he dared to assume, that ","Lukas hat mich nicht gefragt, er hat nichts erklärt und trotzdem wagte er es zu glauben:",,,It is very crucial that this sentence and the next line form a complete sentence "Lukas did not ask for consent, he didn't explain a thing, I didnt even move! Yet he dared to assume, that ","Lukas did not ask for consent, he didn't explain a thing, I didnt even move! Yet he dared to assume, that ","Lukas hat mich nicht gefragt, er hat nichts erklärt und trotzdem wagte er es zu glauben:",,,It is very crucial that this sentence and the next line form a complete sentence
wet,"I was wet, so I must have been into it?","Ich war feucht, also hab ich es wohl gewollt?",,,This line on itself should seem like a intrusive thought on its own without the contect above. p_wet,"I was wet, so I must have been into it?","Ich war feucht, also hab ich es wohl gewollt?",,,This line on itself should seem like a intrusive thought on its own without the contect above.
"Lukas jumped me, he didn't even explain a thing or ask consent. I was confused and paralised, so ","Lukas jumped me, he didn't even explain a thing or ask consent. I was confused and paralised, so ","Lukas hat mich überrumpelt, er hat nichts erklärt oder überhaupt gefragt, was ich wollte. Ich war im Moment nicht mehr ich selbst und",,,It is very crucial that this sentence and the next line form a complete sentence "Lukas jumped me, he didn't even explain a thing or ask consent. I was confused and paralised, so ","Lukas jumped me, he didn't even explain a thing or ask consent. I was confused and paralised, so ","Lukas hat mich überrumpelt, er hat nichts erklärt oder überhaupt gefragt, was ich wollte. Ich war im Moment nicht mehr ich selbst und",,,It is very crucial that this sentence and the next line form a complete sentence
stop,I didnt say stop.,Ich habe nicht Stopp gesagt.,,,This line on itself should seem like a intrusive thought on its own without the contect above. p_stop,I didnt say stop.,Ich habe nicht Stopp gesagt.,,,This line on itself should seem like a intrusive thought on its own without the contect above.
out_of_world,I feel like I am not from of this world,Ich fühl mich wie von einer anderen Welt,,, c_out_of_world,I feel like I am not from of this world,Ich fühl mich wie von einer anderen Welt,,,
unique,I like being unique like that,ich mag es so besonders zu sein.,,, p_unique,I like being unique like that,ich mag es so besonders zu sein.,,,
few_friends,I am thankful for the few friends that get me,"gut, dass ich ein paar Freunde habe, die das verstehen.",,, p_few_friends,I am thankful for the few friends that get me,"gut, dass ich ein paar Freunde habe, die das verstehen.",,,
rejection,I fear being rejected,"Ich habe Angst, ausgeschlossen zu werden",,, c_rejection,I fear being rejected,"Ich habe Angst, ausgeschlossen zu werden",,,
finding_friends,that makes it hard to find friends,darum fällt mir Freunde finden schwer.,,, p_finding_friends,that makes it hard to find friends,darum fällt mir Freunde finden schwer.,,,
laughed_at,I'm afraid I will just get laughed at,"was, wenn ich deswegen ausgelacht werde?",,, p_laughed_at,I'm afraid I will just get laughed at,"was, wenn ich deswegen ausgelacht werde?",,,
confusion,I am just too many things at once,Ich bin zu viel gleichzeitig.,,, c_confusion,I am just too many things at once,Ich bin zu viel gleichzeitig.,,,
inner_conflict,it is just so overwhealming for me,das ist einfach überfordernd für mich.,,, p_inner_conflict,it is just so overwhealming for me,das ist einfach überfordernd für mich.,,,
outer_conflict,this is just too much for others,das ist einfach überfordernd für andere.,,, p_outer_conflict,this is just too much for others,das ist einfach überfordernd für andere.,,,
"[p]Oh, my old mask. I have so many good memories about theatre club. ","[p]Oh, my old mask. I have so many good memories about theatre club.","[p]Nahw, meine gute alte Maske. Ich habe so schöne Erinnerungen an die Theater-AG. ",,, "[p]Oh, my old mask. I have so many good memories about theatre club. ","[p]Oh, my old mask. I have so many good memories about theatre club.","[p]Nahw, meine gute alte Maske. Ich habe so schöne Erinnerungen an die Theater-AG. ",,,
"I would stand on my bed for entire afternoons, weeks on end, practicing my lines. Pretending to be on the big stage ... ","I would stand on my bed for entire afternoons, weeks on end, practicing my lines. Pretending to be on the big stage ... ","Ich hab den ganzen Nachmittag geübt, wochenlang. Mein Bett eine große Bühne. ",,, "I would stand on my bed for entire afternoons, weeks on end, practicing my lines. Pretending to be on the big stage ... ","I would stand on my bed for entire afternoons, weeks on end, practicing my lines. Pretending to be on the big stage ... ","Ich hab den ganzen Nachmittag geübt, wochenlang. Mein Bett eine große Bühne. ",,,
"my mom would get mad at me, when she had to call me three or four times for dinner. ","my mom would get mad at me, when she had to call me three or four times for dinner. [/p]","Es gab so oft Zoff, weil mich meine Mutter immer wieder zum Essen rufen musste.[/p]",,, "my mom would get mad at me, when she had to call me three or four times for dinner. ","my mom would get mad at me, when she had to call me three or four times for dinner. [/p]","Es gab so oft Zoff, weil mich meine Mutter immer wieder zum Essen rufen musste.[/p]",,,

1 keys en de es ja notes
162 my mom would get mad at me, when she had to call me three or four times for dinner. my mom would get mad at me, when she had to call me three or four times for dinner. [/p] Es gab so oft Zoff, weil mich meine Mutter immer wieder zum Essen rufen musste.[/p]
163 I just … didn't like the interruptions. We both were often mad at each other. [p]I just … didn't like the interruptions. We both were often mad at each other.[/p] [p]Ich konnte die Unterbrechungen einfach nicht ab. Wir haben uns so oft deswegen gestritten.[/p]
164 Dinner was difficult. [p]Dinner was difficult. [p]Abendbrot war die Hölle.
165 I just couldn't bring myself to eat, because I couldn't deal with the bread and my mom. I just couldn't bring myself to eat, because I couldn't deal with the bread and my mom.[/p] Ich weiß nicht, was mich mehr gestört hat: das Brot oder Mom.[/p]
166 She was always so worried. [p]She was always so worried: [p]Sie war immer besorgt.
167 ‘Lisa, you forgot your homework, Lisa why won't you play with the other girls," ‘Lisa, you forgot your homework, Lisa why won't you play with the other girls, “Lisa, deine Hausaufgaben!, Lisa, warum warst du heute nicht bei den Mädels draußen?,
168 "Lisa why didn't Steffi invite you to her birthday, Lisa this, Lisa that.’ Lisa why didn't Steffi invite you to her birthday, Lisa this, Lisa that.’[/p] Lisa, warum hat dich Steffi nicht eingeladen?, Lisa dies, Lisa das.”[/p]
169 But I was fine! She just wouldn't listen. [p]But I was fine! She just wouldn't listen.[/p] [p]Mir ging gut, okay? Als ob sie das je interessiert hätte.[/p]
170 Yes, I didn't do homework, but my teachers didn't mind it as much with me [p]Yes, I didn't do homework, but my teachers didn't mind it as much with me [p]Natürlich habe ich keine Hausaufgaben gemacht, aber das hat in der Schule bei mir auch niemand' interessiert,
171 - which the other kids wouldn't shut up about. But like … , which the other kids wouldn't shut up about. But like … außer meine Klasse vielleicht, aber wer interessiert sich schon für die?
172 they also made fun of me reading school books and talking to my teachers during breaks. they also made fun of me reading school books and talking to my teachers during breaks. Vielleicht hätten die auch mal ein Buch in die Hand nehmen sollen statt sich darüber zu zerreißen, dass ich in der Pause lieber mit den Erwachsenen geredet habe.
173 But at least I could fucking talk to teachers and they had stuff to say. But at least I could fucking talk to teachers and they had stuff to say.[/p] Immerhin konnte man mit denen reden und die haben auch was erzählt.[/p]
174 Mr Thomas probably even understood me better than my own mom. [p]Mr Thomas probably even understood me better than my own mom.[/p] [p]Herr Thomas hat mich vermutlich besser verstanden, als meine eigene Mutter.[/p]
175 He said I was gifted. He said I just didn't need homework for good grades. [p]He said I was gifted. He said I just didn't need homework for good grades.[/p] [p]Er hat immer gesagt ich bin begabt, weil ich gute Noten auch ohne Hausaufgaben geschafft habe.[/p]
176 And he also made sure to always include extra credits. So my silly slip-ups wouldn't get me a B. [p]And he also made sure to always include extra credits. So my silly slip-ups wouldn't get me a B.[/p] [p]Und er hat immer Fleißaufgaben gehabt, damit ich auch mit Schusselfehlern eine Eins bekomme.[/p]
177 Moonlight trickled down through clouds and twigs as Dräven tapped through the night. [p]Moonlight trickled down through clouds and twigs as Dräven tapped through the night. [p]Das Mondlicht spielte mit Wolken und Geäst, da lief Dräven durch die Nacht.
178 He had been searching for a while and he knew a special someone must be hiding in the thicket. He had been searching for a while and he knew a special someone must be hiding in the thicket.[/p] Lang schon suchte er vergeblich, doch war er sich heute gewiss: jemand ganz besonderes hält sich zwischen Farnen und Gestrüpp versteckt.[/p]
179 When a familiar smell first led him to a few bronce hairs as fluffy as his tail, he didn't think much of it. [p]When a familiar smell first led him to a few bronce hairs as fluffy as his tail, he didn't think much of it. [p]Er dachte sich nichts dabei, als ihn neulich ein vertrauter Geruch zu einem Büschel Haare führte: Bronzen und so weich, wie sein eig'ner Schweif.
180 But then he saw paw-prints, that matched his own where he had not been. Would he finally find someone of his kind? But then he saw paw-prints, that matched his own where he had not been. Would he finally find someone of his kind?[/p] Doch dann Spuren, die den seinen glichen, wo er noch nicht gewesen war. Würde er endlich seinesgleichen finden?[/p]
181 He was sure of it, as the familiar scent has never been stronger than tonight. [p]He was sure of it, as the familiar scent has never been stronger than tonight.[/p] [p]Bestimmt, denn der vertraute Duft war heute Nacht so stark, wie nie..[/p]
182 When suddenly: Was that chatter? [p]When suddenly: Was that chatter?[/p] [p]Plötzlich: war das Keckern?[/p]
183 His wings rustled with joy over the familiar voice and Dräven decided to get a better look. [p]His wings rustled with joy over the familiar voice and Dräven decided to get a better look. [p]Seine Flügel raschelten vor Freude über die vertraute Stimme und Drävens Neugier war geweckt.
184 A few flaps and leaps brought him up a tree, to get a glimpse of his soon to be friend. A few flaps and leaps brought him up a tree, to get a glimpse of his soon to be friend.[/p] Flatternd sprang er in Wipfel, um einen Blick auf seinen baldigen Freund zu erhaschen.[/p]
185 But all he saw was a fox. [p]But all he saw was a fox.[/p] [p]Doch er sah nichts als einen Fuchs.[/p]
186 He didn't even want to bother it anymore. [p]He didn't even want to bother it anymore. [p]Er wollte sich dem Tier nicht einmal mehr nähern.
187 It would just scream and laugh at his wings of leafs, just like the trees crackled at his paws, that were no roots. It would just scream and laugh at his wings of leafs, just like the trees crackled at his paws, that were no roots. Es würde eh nur Kreischen vor Lachen über seine Flügel aus Blättern. Genau wie die Bäume sich geschüttelt haben über seine Pfoten, die keine Wurzeln sind.
188 With a small whimper, Dräven spread his wings, and slid away to at least find comfort by seeing his reflection in the nearby lake. With a small whimper, Dräven spread his wings, and slid away to at least find comfort by seeing his reflection in the nearby lake.[/p] Wimmernd schlug Dräven seine Flügel auf und glitt davon zu seinem Lieblingsplatz am See. Vielleicht vermochte ihn sein Spiegelbild zu trösten.[/p]
189 It took him a while to notice, how there was a sudden silence when the clouds broke: [p]It took him a while to notice, how there was a sudden silence when the clouds broke: [p]Dräven hätte fast nicht gemerkt, wie der Wald den Atem anhielt, als sich die Wolken teilten.
190 Northern lights danced through the sky to form wings, that met at a sleek body made of stars and clouds. Northern lights danced through the sky to form wings, that met at a sleek body made of stars and clouds.[/p] Nordlicht tanzte durch den Himmel und wurde zu Flügeln an einem schlanken Körper aus Sternenlicht und Wolken.[/p]
191 The whole forest held its breath as it stared into eyes of moonlight gazing down. [p]The whole forest held its breath as it stared into eyes of moonlight gazing down. [p]Der ganze Wald sah ehrfürchtig zu Augen aus Mondlicht hinauf, die verträumt den Blick erwiderten.
192 Dräven was moved to tears when he gazed back at it. He was sad for the dragon that was of the moon and the stars and the skies. [p]Dräven was moved to tears when he gazed back at it. He was sad for the dragon that was of the moon and the stars and the skies. [p]Dräven war zu Tränen gerührt, als er in hinauf sah. Voller Trauer um dem Drachen, der von Wolken, Sternen und Mondlicht war.
193 It must feel so lost in the universe. It must feel so lost in the universe.[/p] Er muss sich so verloren fühlen am Himmel.[/p]
194 But his tears were of joy: It was the first time Dräven saw another creature of many kinds. [p]But his tears were of joy: It was the first time Dräven saw another creature of many kinds.[/p] [p]Doch es waren Tränen der Freude. Denn es war das erste mal, dass Dräven ein anderes Viel-Wesen sah.[/p]
195 Why do i still have this junk lying around? its not like I want to do ju jutsu ever again. I just fucked it. [p]Why do i still have this junk lying around? its not like I want to do ju jutsu ever again. I just fucked it. Boar, warum hängt hier noch dieser Müll? Ich hab Jiu Jutsu einfach verkackt.
196 I mean I did enjoy it while it lasted. Being able to properly hit people was great. I mean I did enjoy it while it lasted. Being able to properly hit people was great. Ich meine … ich hatte Spaß damals. Leute gut Schlagen können ist großartig.
197 It gave me the confidence to intimidate students, that were begging to get folded and - as I only once actually got to do that - it also was a great vent for anger. It gave me the confidence to intimidate students, that were begging to get folded and - as I only once actually got to do that - it also was a great vent for anger.[/p] Es gab mir Selbstvertrauen. Ich konnte Leute einschüchtern, wenn sie darum gebettelt haben aufs Maul zu bekommen und weil ich das nur einmal tatsächlich getan habe, war es auch ein super Ventil.
198 I mean my tits just about killed me during warmup and the changing room really didn't need mirrors - thank you I know my hips are fat and disgusting - but at least there was Lukas. [p]I mean my tits just about killed me during warmup and the changing room really didn't need mirrors - thank you I know my hips are fat and disgusting - but at least there was Lukas.[/p] Ich meine … meine Titten waren die Hölle beim aufwärmen und die Umkleide hat wirklich keinen Spiegel gebraucht. Vielen Dank, ich brauche keine Erinnerung an meinen fetten Arsch. Aber wenigstens hatte ich Lukas.
199 He was such a huge nerd. He studied math in his third semester and could talk for hours about his passion. [p]He was such a huge nerd. He studied math in his third semester and could talk for hours about his passion. Er war so ein Nerd. Er konnte so gut reden. Über Mathe. Er war in seinem dritten Semester und konnte stundenlang erzählen.
200 Also: my math grades pretty much leaped for my final year in high school thanks to him. Also: my math grades pretty much leaped for my final year in high school thanks to him. Und ich glaube mein Mathe-Abi war bestimmt drei Punkte besser durch ihn.
201 He also helped me so much with jiu jitsu, as he properly floored me when I slipped up. He also helped me so much with jiu jitsu, as he properly floored me when I slipped up.[/p] Und ach bei Jui Jutsu … es hat mir so sehr geholfen, dass er mich einfach anständig hingelegt hat, wenn ich gefailed habe.
202 Also - unlike everyone else - he understood that I didn't want people to mind my chest. [p]Also - unlike everyone else - he understood that I didn't want people to mind my chest. Und er war der einzige, der wirklich verstanden hat, dass mir egal war, ob Leute mir an die Brüste kommen.
203 So Fighting for wins with him was actually rewarding even tho more often than not I ended up having to tap out. So Fighting for wins with him was actually rewarding even tho more often than not I ended up having to tap out. Mit ihm war Kämpfen so gut – auch wenn ich üblicherweise diejenige war, die abschlagen musste und nicht er.
204 We also had my first proper kiss. I thought I loved him. But now? We also had my first proper kiss. I thought I loved him. But now?[/p] Wir hatten auch meinen ersten richtigen Kuss. Ich war so verliebt, und jetzt?

View File

@ -10,6 +10,7 @@ enum Error {
var focus_stickies:bool = true: var focus_stickies:bool = true:
set(stickies): set(stickies):
if not is_node_ready(): return
if stickies and sticky_note_container.get_child_count() == 0: return if stickies and sticky_note_container.get_child_count() == 0: return
# this messes things up if called unneeded. # this messes things up if called unneeded.
@ -86,6 +87,7 @@ var mementos_collected: int = 0:
@onready var current_dropzone_id: int = 0: @onready var current_dropzone_id: int = 0:
set(new_id): set(new_id):
if is_node_ready():
if new_id > dropzone.get_child_count() - 1: current_dropzone_id = 0 if new_id > dropzone.get_child_count() - 1: current_dropzone_id = 0
elif new_id < 0: current_dropzone_id = dropzone.get_child_count() - 1 elif new_id < 0: current_dropzone_id = dropzone.get_child_count() - 1
else: current_dropzone_id = new_id else: current_dropzone_id = new_id
@ -98,6 +100,7 @@ var mementos_collected: int = 0:
@onready var current_sticky_note_id: int = 0: @onready var current_sticky_note_id: int = 0:
set(new_id): set(new_id):
if is_node_ready():
if sticky_note_container.get_child_count() <= 1: return if sticky_note_container.get_child_count() <= 1: return
elif new_id > sticky_note_container.get_child_count() - 1: current_sticky_note_id = 0 elif new_id > sticky_note_container.get_child_count() - 1: current_sticky_note_id = 0
elif new_id < 0: current_sticky_note_id = sticky_note_container.get_child_count() - 1 elif new_id < 0: current_sticky_note_id = sticky_note_container.get_child_count() - 1
@ -125,10 +128,10 @@ func _ready():
dropzone_size = get_viewport_rect().size - Vector2(dropzone_padding + size_reference.minimum_size.x, dropzone_padding) dropzone_size = get_viewport_rect().size - Vector2(dropzone_padding + size_reference.minimum_size.x, dropzone_padding)
if get_parent() == get_tree().root: if get_parent() == get_tree().root:
populate_board(["void", 'joy', "wet", "effort"]) populate_board(["c_void", 'c_joy', "p_wet", "p_effort"])
populate_board(["jui_jutsu", 'hit', "girly", "vent"]) populate_board(["c_jui_jutsu", 'c_hit', "p_girly", "p_vent"])
populate_board(["comic_heroes", 'teasing', "agent_q", "good_intended"]) populate_board(["c_comic_heroes", 'c_teasing', "p_agent_q", "p_good_intended"])
populate_board(["out_of_world", 'confusion', "outer_conflict", "unique"]) populate_board(["c_out_of_world", 'c_confusion', "p_outer_conflict", "p_unique"])
mementos_collected = 2 mementos_collected = 2
has_stage = has_stage has_stage = has_stage
@ -466,20 +469,20 @@ func initialise_from_save(savegame: SaveGame):
rebuild_from_savedict(savegame.board_state) rebuild_from_savedict(savegame.board_state)
func rebuild_from_savedict(board_state:Dictionary): func rebuild_from_savedict(board_state:Dictionary):
var cards: Dictionary = board_state["cards"] var cards: Dictionary[StringName, Variant] = board_state["cards"]
var stickies: Dictionary = board_state["stickies"] var stickies: Dictionary[StringName, Variant] = board_state["stickies"]
var card_pile = HardCards.get_cards_by_name_array(cards.keys() + (stickies.keys())) var card_pile = HardCards.get_cards_by_name_array(cards.keys() + (stickies.keys()))
for card:Card in card_pile["cards"]: for card:Card in card_pile["cards"]:
add_card(card) add_card(card, false)
card.transform.origin = cards[card.name]# Replacing position reference with card reference! Needed in next loop. card.transform.origin = cards[card.name]# Replacing position reference with card reference! Needed in next loop.
cards[card.name] = card cards[card.name] = card
text_recovery[card.name] = card.text text_recovery[card.name] = card.text
for sticky:StickyNote in card_pile["sticky_notes"]: for sticky:StickyNote in card_pile["sticky_notes"]:
text_recovery[sticky.name] = sticky.text text_recovery[sticky.name] = sticky.text
if stickies[sticky.name] == -1: if stickies[sticky.name] == -1:
add_sticky_note(sticky) add_sticky_note(sticky, false)
elif stickies[sticky.name] is String: elif stickies[sticky.name] is String:
cards[stickies[sticky.name]].attach_sticky_note(sticky) cards[stickies[sticky.name]].attach_sticky_note(sticky)
else: else:

View File

@ -75,10 +75,10 @@ var is_mouse_entered: bool = false
var mouse_offset: Vector2 var mouse_offset: Vector2
func _init(card_name: String = "card", own_id:StringName = "-1") -> void: func _init(card_name: String = "card", own_id:StringName = "-1") -> void:
if card_name != "void": if card_name != "c_void":
text = card_name text = card_name
card_id = own_id card_id = own_id
name = "c_%s" % card_name name = card_name
func _ready(): func _ready():

View File

@ -74,10 +74,11 @@ var mouse_diff: Vector2
@export_range(1.0, 10.0) var bounce_speed: float = 8 @export_range(1.0, 10.0) var bounce_speed: float = 8
var on_board: bool = false var on_board: bool = false
func _init(sticky_name: String = "card", card_id: StringName = "-1", own_id:StringName = "-1") -> void: func _init(sticky_name: String = "sticky_note", card_id: StringName = "-1") -> void:
name = sticky_name
text = sticky_name text = sticky_name
parent_id = card_id parent_id = card_id
sticky_id = own_id sticky_id = StringName( "%s.%s" % [parent_id, sticky_name] )
func _ready() -> void: func _ready() -> void:
if get_child_count() == 0: if get_child_count() == 0: