diff --git a/code/maps/home.lua b/code/maps/home.lua index c4edf52..a1aaf9d 100644 --- a/code/maps/home.lua +++ b/code/maps/home.lua @@ -248,67 +248,67 @@ local function textGen(pager) name = "一本书", info = function() return ({ { -"\"The Jensen Paradox, third installment in the Jensen series.\"", -"\"How will they escape last time?\"" -}, { -"\"Surface Tension, the hotel nobody ever leaves.\"", -"\"An endless maze of hallways, doors, swimming pools and libraries...\"" -}, { -"\"Astrae Symphonia, a tale of intrigue, emotion, and music.\"", -"\"Follow this rogue starship to the edge of the galaxy!\"" -} })[accessor.choice_home_book + 1] + "\"The Jensen Paradox, third installment in the Jensen series.\"", + "\"How will they escape last time?\"" + }, { + "\"Surface Tension, the hotel nobody ever leaves.\"", + "\"An endless maze of hallways, doors, swimming pools and libraries...\"" + }, { + "\"Astrae Symphonia, a tale of intrigue, emotion, and music.\"", + "\"Follow this rogue starship to the edge of the galaxy!\"" + } })[accessor.choice_home_book + 1] end }, item_rock = { name = "几块碎石" }, item_batteries = { name = "几节电池", info = { -"(Type four batteries. Good for small devices and tools.)" -} + "(Type four batteries. Good for small devices and tools.)" + } }, item_cover = { name = function() return accessor.item_scissors and "一条床单绳" or "一张床单" end, info = function() return accessor.item_scissors and ({ -"(A makeshift \"rope\" made from pieces of a blanket.)" -}) or ({ -"(A comfortable blanket. Haven't found something to cut it with yet.)" -}) + "(A makeshift \"rope\" made from pieces of a blanket.)" + }) or ({ + "(A comfortable blanket. Haven't found something to cut it with yet.)" + }) end }, item_crowbar = { name = "一根金属棒", info = { -"(One bar of pure bed frame.)", -"(It's really heavy.)" -} + "(One bar of pure bed frame.)", + "(It's really heavy.)" + } }, ponder_book = pager:create(0, { -"(You ponder why you're still awake.)", -"(You realize you don't have a book to read in bed.)" -}, { -"(You ponder what kind of book you'd like to read.)", -"(You're realize you're in the mood for something novel.)" -}), + "(You ponder why you're still awake.)", + "(You realize you don't have a book to read in bed.)" + }, { + "(You ponder what kind of book you'd like to read.)", + "(You're realize you're in the mood for something novel.)" + }), ponder_sleep = { -"(You ponder why you're still awake.)", -"(You realize you should probably go to bed now.)" -}, + "(You ponder why you're still awake.)", + "(You realize you should probably go to bed now.)" + }, ponder_hello = { -"...", -"(I don't really know where I am.)", -"(Exploring might give me a better idea...)" -}, + "...", + "(I don't really know where I am.)", + "(Exploring might give me a better idea...)" + }, ponder_outside = pager:create( 0, { -"...", -"(This... house... doesn't make any sense.)", -"(How is it just... floating?)", -"(Why is there nothing else out there?)", -"(If I could find something to \"test\" this place...)", -"(... it might give me a clue how to escape it.)" -}, + "...", + "(This... house... doesn't make any sense.)", + "(How is it just... floating?)", + "(Why is there nothing else out there?)", + "(If I could find something to \"test\" this place...)", + "(... it might give me a clue how to escape it.)" + }, function() return { "(I'm looking for a way to escape.)", "(To do that, I need to know what this place's limits are.)", @@ -319,26 +319,26 @@ local function textGen(pager) ), ponder_platform = function() return accessor.item_cover and (accessor.item_scissors and ({ -"(So far, I've cut this blanket and made it into a rope.)", -"(Now, I just need something to hold it in place for the climb...)", -"(... something strong and sturdy, like metal.)" -}) or ({ -"(So far, I've found a blanket, which I can make into a rope.)", -"(I still need something to cut it with.)" -})) or ({ -"(I need to find a way down to that platform.)", -"(It's too far to jump, so I'll have to try something else.)", -"(A rope would do the trick...)" -}) + "(So far, I've cut this blanket and made it into a rope.)", + "(Now, I just need something to hold it in place for the climb...)", + "(... something strong and sturdy, like metal.)" + }) or ({ + "(So far, I've found a blanket, which I can make into a rope.)", + "(I still need something to cut it with.)" + })) or ({ + "(I need to find a way down to that platform.)", + "(It's too far to jump, so I'll have to try something else.)", + "(A rope would do the trick...)" + }) end, ponder_exit = pager:create(0, { -"...", -"(It's strange... omething about this house is comfortable.)", -"(In another life, I could see myself living here...)" -}, { -"(There's nothing else for me to do here.)", -"(It's time to go.)" -}), + "...", + "(It's strange... omething about this house is comfortable.)", + "(In another life, I could see myself living here...)" + }, { + "(There's nothing else for me to do here.)", + "(It's time to go.)" + }), overworld = { start1 = "警告", start2 = @@ -360,31 +360,31 @@ local function textGen(pager) "(你好像有什么事忘了做。)" }, blocker3 = { -"Go upstairs and complete the tutorial?" -}, + "Go upstairs and complete the tutorial?" + }, blocker4 = { "上楼吧", "再等等" }, blocker5 = { -"Go outside and climb down to the golden platform?" -}, + "Go outside and climb down to the golden platform?" + }, blocker6 = { -"Go Outside", -"Not Yet" -}, + "Go Outside", + "Not Yet" + }, bookshelf1 = { "要拿本书吗?" }, bookshelf2 = { -"The Jensen Paradox (Action)", -"Surface Tension (Surreal)", -"Astrae Symphonia (Space)", -"Not Yet" -}, + "The Jensen Paradox (Action)", + "Surface Tension (Surreal)", + "Astrae Symphonia (Space)", + "Not Yet" + }, bookshelf3 = { -"(You got the Book.)" -}, + "(You got the Book.)" + }, bookshelf4 = { "(你打算不这么做。)" }, @@ -393,15 +393,15 @@ local function textGen(pager) "(这好像不是我的床吧。)" }, hello2 = { -"(... maybe I slept on the wrong antenna...)" -}, + "(... maybe I slept on the wrong antenna...)" + }, hello3 = { "(不对... 这压根就不是我家啊。)", "(我咋就来这了?\n难不成... 有人把我绑了?)" }, hello4 = { -"(I don't remember being taken...)" -}, + "(I don't remember being taken...)" + }, goatplush0 = "Plushie", goatplush1 = pager:create( 0, @@ -411,25 +411,25 @@ local function textGen(pager) "(... did you follow me here, to this strange place?)", "Pick them up?" } end, { -"Pick them up?" -} + "Pick them up?" + } ), goatplush2 = { -"Yes", -"No" -}, + "Yes", + "No" + }, goatplush3 = { -"Come here, you.", -"{color=0xa289dc}Dysu{color=0xffffff} got the Plushie.", -"...", -"(Maybe I should hold onto this for a while.)" -}, + "Come here, you.", + "{color=0xa289dc}Dysu{color=0xffffff} got the Plushie.", + "...", + "(Maybe I should hold onto this for a while.)" + }, fusebox1 = function() return { "(An electric routing box...)", unpack(accessor.plot < 2 and ({ -"(Maybe I can get main power back on.)" -}) or ({})) + "(Maybe I can get main power back on.)" + }) or ({})) } end, fusebox2 = "厨房", @@ -441,38 +441,38 @@ local function textGen(pager) fusebox8 = "已通电", fusebox9 = "已断电", lightswitch = { -"(No power.)" -}, + "(No power.)" + }, telecomm1 = function() return { "(A comms device. Must be battery-powered.)", unpack(accessor.plot < 2 and ({ -"(Only two receivers on the contact list...?)" -}) or ({})) + "(Only two receivers on the contact list...?)" + }) or ({})) } end, telecomm2 = { -"What will you do?" -}, + "What will you do?" + }, telecomm3a = { -"Call Work", -"Call Neighbors", -"Play Back Message", -"Never Mind" -}, + "Call Work", + "Call Neighbors", + "Play Back Message", + "Never Mind" + }, telecomm3b = { -"Call Work", -"Call Neighbors", -"Never Mind" -}, + "Call Work", + "Call Neighbors", + "Never Mind" + }, telecomm4 = { { -"(Calling... Work.)" -}, { -"(Calling... Neighbors.)" -} }, + "(Calling... Work.)" + }, { + "(Calling... Neighbors.)" + } }, telecomm5 = { -"(That Receiver Does Not Exist.)" -}, + "(That Receiver Does Not Exist.)" + }, telecomm6 = function() return { "(Beginning Playback...)", @@ -482,12 +482,12 @@ local function textGen(pager) unpack(accessor.state_home_telecomm_message == 0 and ({ "(Oh. It's just a scam.)", unpack(accessor.event_home_outside and ({ -"(I'd delete the message, if it wasn't for the small possibility...)", -"(... that this might be the last other person's voice I hear.)" -}) or ({ -"(Nobody would mind if I deleted this, would they?)", -"(Message Deleted.)" -})) + "(I'd delete the message, if it wasn't for the small possibility...)", + "(... that this might be the last other person's voice I hear.)" + }) or ({ + "(Nobody would mind if I deleted this, would they?)", + "(Message Deleted.)" + })) }) or ({})) } end, @@ -498,38 +498,38 @@ local function textGen(pager) "(Actually, before I go...)", "Eat something from the fridge?" } end, { -"Eat something from the fridge?" -} + "Eat something from the fridge?" + } ), fridge2 = { -"Boka Fruit", -"Tenzka Tracks Ice Cream", -"Morning Leftovers", -"Never Mind" -}, + "Boka Fruit", + "Tenzka Tracks Ice Cream", + "Morning Leftovers", + "Never Mind" + }, fridge3 = { { -"(These better be home-grown.)" -}, { -"(My favorite food! I must be lucky.)" -}, { -"(... it's better than nothing.)" -}, { + "(These better be home-grown.)" + }, { + "(My favorite food! I must be lucky.)" + }, { + "(... it's better than nothing.)" + }, { "..." } }, fridge4 = { { -"(Huh. Those were actually pretty good.)" -}, { -"(... might've eaten too much.)" -}, { + "(Huh. Those were actually pretty good.)" + }, { + "(... might've eaten too much.)" + }, { "..." } }, fridge5 = function() return accessor.plot < 2 and ({ -"(Oh... right.)", -"(I'm still trying to get out of here.)" -}) or ({ -"(... time to get back to what I was doing.)" -}) + "(Oh... right.)", + "(I'm still trying to get out of here.)" + }) or ({ + "(... time to get back to what I was doing.)" + }) end, outside1 = { "(什么鬼...)", @@ -553,67 +553,67 @@ local function textGen(pager) "(兴许我能用它\n在远处看到点什么。)" }, basket1a = { -"...", -"(Wait, that box on the bookshelf...)", -"(It's the lockbox from the note!)" -}, + "...", + "(Wait, that box on the bookshelf...)", + "(It's the lockbox from the note!)" + }, basket1b = { -"(Hm...)" -}, + "(Hm...)" + }, basket2 = { -"{color=0xa289dc}Dysu{color=0xffffff} got the Library Card.", -"(There!)" -}, + "{color=0xa289dc}Dysu{color=0xffffff} got the Library Card.", + "(There!)" + }, basket3 = { -"(A library card...?)" -}, + "(A library card...?)" + }, bucket1 = function() return accessor.plot < 3 and (accessor.item_cover and accessor.item_scissors and not accessor.item_crowbar and ({ -"(A rusty shovel. I'd use this as an anchor, but...)" -}) or ({ -"(A rusty shovel. Looks like it's...)" -})) or ({ -"(A rusty shovel...)" -}) + "(A rusty shovel. I'd use this as an anchor, but...)" + }) or ({ + "(A rusty shovel. Looks like it's...)" + })) or ({ + "(A rusty shovel...)" + }) end, bucket2 = function() return { "(Wait.)", unpack(accessor.plot < 2 and ({ -"(What about the pail?)" -}) or ({ -"(That pail might be come in handy.)" -})) + "(What about the pail?)" + }) or ({ + "(That pail might be come in handy.)" + })) } end, bucket3 = function() local ____array_0 = __TS__SparseArrayNew(unpack(accessor.plot < 2 and ({ -"(... how could it be raining when there's nothing else outside?)", -"(Maybe I can learn something by collecting it, and...)", -"(Studying it, I guess.)", -"(... sounds stupid when I think about it like that, but still.)" -}) or ({ -"(Just in case.)" -}))) + "(... how could it be raining when there's nothing else outside?)", + "(Maybe I can learn something by collecting it, and...)", + "(Studying it, I guess.)", + "(... sounds stupid when I think about it like that, but still.)" + }) or ({ + "(Just in case.)" + }))) __TS__SparseArrayPush(____array_0, "{color=0xa289dc}Dysu{color=0xffffff} got the Pail.") return { __TS__SparseArraySpread(____array_0) } end, bucket4 = { -"(Don't think I can collect any rain from here.)" -}, + "(Don't think I can collect any rain from here.)" + }, rain1 = { "..." }, rain2 = { -"(That's weird...)", -"(The rain's definitely going inside, but...)", -"(It's... not filling up.)" -}, + "(That's weird...)", + "(The rain's definitely going inside, but...)", + "(It's... not filling up.)" + }, rain3 = { -"(Freaky.)", -"(... guess I can't learn anything from this, though.)" -}, + "(Freaky.)", + "(... guess I can't learn anything from this, though.)" + }, rope1 = function() return { "(一截麻绳,剩下不多了。)", accessor.plot == 2 and "(Doubt it's enough to reach the platform, but I'll take it anyway.)" or @@ -621,95 +621,95 @@ local function textGen(pager) "{color=0xa289dc}Dysu{color=0xffffff} got the Rope." } end, rope2 = { -"(No use for this indoors.)" -}, + "(No use for this indoors.)" + }, dangle1 = { -"(Hm...)" -}, + "(Hm...)" + }, dangle2 = { -"(No, it's nowhere NEAR long enough to get me down there.)" -}, + "(No, it's nowhere NEAR long enough to get me down there.)" + }, dangle3 = function() return accessor.item_cover and ({ -"(... the blanket plan will have to do.)" -}) or ({ -"(... maybe there's something else I could make a rope out of.)" -}) + "(... the blanket plan will have to do.)" + }) or ({ + "(... maybe there's something else I could make a rope out of.)" + }) end, drill = { -"(A heavy-duty electric drill. Might be useful.)", -"{color=0xa289dc}Dysu{color=0xffffff} got the Drill.", -"(Good thing these batteries were included.)" -}, + "(A heavy-duty electric drill. Might be useful.)", + "{color=0xa289dc}Dysu{color=0xffffff} got the Drill.", + "(Good thing these batteries were included.)" + }, drill_tooltip = "Drill", broombox1 = { -"(A box of old collector's rocks...)", -"(... doubt they're important, so instead, I could try throwing them.)", -"{color=0xa289dc}Dysu{color=0xffffff} got the Rock.", -"(Off the edge.)", -"{color=0xa289dc}Dysu{color=0xffffff} got the Rock.", -"(To see what happens.)", -"{color=0xa289dc}Dysu{color=0xffffff} got the Rock." -}, + "(A box of old collector's rocks...)", + "(... doubt they're important, so instead, I could try throwing them.)", + "{color=0xa289dc}Dysu{color=0xffffff} got the Rock.", + "(Off the edge.)", + "{color=0xa289dc}Dysu{color=0xffffff} got the Rock.", + "(To see what happens.)", + "{color=0xa289dc}Dysu{color=0xffffff} got the Rock." + }, broombox2 = { -"(It's worth a try.)" -}, + "(It's worth a try.)" + }, broombox3 = { -"(Throwing these indoors won't tell me anything.)" -}, + "(Throwing these indoors won't tell me anything.)" + }, golden1 = { -"(... right.)" -}, + "(... right.)" + }, golden2 = { -"...", -"(Get ready...!)" -}, + "...", + "(Get ready...!)" + }, golden3 = { -"...", -"(Maybe I didn't throw it far enough.)" -}, + "...", + "(Maybe I didn't throw it far enough.)" + }, golden4 = { -"(Here we go...)", -"(... again!)" -}, + "(Here we go...)", + "(... again!)" + }, golden5 = { -"...", -"(Nothing...)" -}, + "...", + "(Nothing...)" + }, golden6 = { -"...", -"(... what if I just...)" -}, + "...", + "(... what if I just...)" + }, golden7 = { "..." }, golden8 = { -"(That's new.)" -}, + "(That's new.)" + }, golden9 = { -"...", -"(Doesn't look like part of the house...)", -"(Could that be what's behind all of this?)", -"...", -"(Maybe it's silly, but if...)", -"(If I could get down there somehow...)" -}, + "...", + "(Doesn't look like part of the house...)", + "(Could that be what's behind all of this?)", + "...", + "(Maybe it's silly, but if...)", + "(If I could get down there somehow...)" + }, golden10 = { -"(... I might just be able to escape!)" -}, + "(... I might just be able to escape!)" + }, scissors1 = function() local ____array_1 = __TS__SparseArrayNew(unpack(accessor.item_cover and ({ -"(Scissors! For the blanket!)" -}) or ({ -"(Scissors...)", -"(Could be good to have these on hand.)" -}))) + "(Scissors! For the blanket!)" + }) or ({ + "(Scissors...)", + "(Could be good to have these on hand.)" + }))) __TS__SparseArrayPush( ____array_1, "{color=0xa289dc}Dysu{color=0xffffff} got the Scissors.", unpack(accessor.item_cover and ({ -"(Sorry, little blanket...)" -}) or ({})) + "(Sorry, little blanket...)" + }) or ({})) ) return { __TS__SparseArraySpread(____array_1) } end, @@ -717,16 +717,16 @@ local function textGen(pager) return { "(... that's that taken care of...)", unpack(accessor.item_crowbar and ({ -"(Oh! And I can use the bed frame as an anchor!)" -}) or ({ -"(Now I need something to anchor the \"rope\" to once I'm outside.)" -})) + "(Oh! And I can use the bed frame as an anchor!)" + }) or ({ + "(Now I need something to anchor the \"rope\" to once I'm outside.)" + })) } end, bed1 = { -"(The bed...)", -"(... no...)" -}, + "(The bed...)", + "(... no...)" + }, bed2 = function() return { "(The covers!)", @@ -734,27 +734,27 @@ local function textGen(pager) "(... and make a rope out of it!)", "{color=0xa289dc}Dysu{color=0xffffff} got the Blanket.", unpack(accessor.item_scissors and ({ -"(Sorry, little blanket...)" -}) or ({})) + "(Sorry, little blanket...)" + }) or ({})) } end, bed3 = function() return not accessor.item_scissors and ({ -"(I'll need something to cut it with, though.)" -}) or (not accessor.item_crowbar and ({ -"(Now I need something to anchor the \"rope\" to once I'm outside.)" -}) or ({ -"(Oh! And I can use the bed frame as an anchor!)" -})) + "(I'll need something to cut it with, though.)" + }) or (not accessor.item_crowbar and ({ + "(Now I need something to anchor the \"rope\" to once I'm outside.)" + }) or ({ + "(Oh! And I can use the bed frame as an anchor!)" + })) end, framer1 = function() return { "(A metal bed frame. I wonder if I could take it apart...)", unpack(accessor.item_drill and ({ -"(... the drill should do nicely!)" -}) or ({ -"(... not by hand, that's for sure.)" -})) + "(... the drill should do nicely!)" + }) or ({ + "(... not by hand, that's for sure.)" + })) } end, framer2 = function() @@ -763,44 +763,44 @@ local function textGen(pager) unpack(accessor.item_cover and accessor.item_scissors and ({ "..." }) or ({ -"(Nice!)" -})) + "(Nice!)" + })) } end, framer3 = { -"(... wait! That's it!)", -"(I'll attach the \"rope\" to the bar, place it behind the doorway...)", -"(... and climb my way down to the platform!)" -}, + "(... wait! That's it!)", + "(I'll attach the \"rope\" to the bar, place it behind the doorway...)", + "(... and climb my way down to the platform!)" + }, done1 = { -"(I'll attach the \"rope\" to it, place it behind the doorway...)", -"(... and climb my way down to the platform!)" -}, + "(I'll attach the \"rope\" to it, place it behind the doorway...)", + "(... and climb my way down to the platform!)" + }, done2 = { -"(About time...)" -}, + "(About time...)" + }, exit1 = { -"(Well, that should do it...)" -}, + "(Well, that should do it...)" + }, exit2 = { -"(Don't look down.)" -}, + "(Don't look down.)" + }, exit3 = { -"... I made it! I'm here!", -"I'm actually..." -}, + "... I made it! I'm here!", + "I'm actually..." + }, exit4 = { -"(What the-)" -} + "(What the-)" + } }, trivia = { window = function() return accessor.plot < 1 and ({ -"(You peer through the window, observing the outdoor nightlife.)" -}) or (accessor.plot < 2 and (not accessor.event_home_outside and ({ -"(That's weird...)", -"(... can't see anything out there.)" -}) or ({ + "(You peer through the window, observing the outdoor nightlife.)" + }) or (accessor.plot < 2 and (not accessor.event_home_outside and ({ + "(That's weird...)", + "(... can't see anything out there.)" + }) or ({ "..." })) or ({ "..." @@ -808,115 +808,115 @@ local function textGen(pager) end, bed = function() return not accessor.item_cover and ({ -"(A surprisingly comfortable bed.)" -}) or (accessor.plot < 3 and ({ -"(Probably not as comfortable anymore.)" -}) or ({ -"(A bed.)" -})) + "(A surprisingly comfortable bed.)" + }) or (accessor.plot < 3 and ({ + "(Probably not as comfortable anymore.)" + }) or ({ + "(A bed.)" + })) end, computer = function() return { "(A computer.)", unpack(not accessor.event_home_outside and ({ -"(The neural input looks worn out. Must have seen a lot of use.)" -}) or (accessor.plot < 3 and ({ -"(Without any power, it's just a box.)" -}) or ({}))) + "(The neural input looks worn out. Must have seen a lot of use.)" + }) or (accessor.plot < 3 and ({ + "(Without any power, it's just a box.)" + }) or ({}))) } end, chair = function() return accessor.plot < 3 and ({ -"(Just a chair.)" -}) or ({ -"(Despite everything, it's still just a chair.)" -}) + "(Just a chair.)" + }) or ({ + "(Despite everything, it's still just a chair.)" + }) end, dresser1 = function() return accessor.plot < 2 and ({ -"(Lots of toys and trinkets in these drawers.)" -}) or (accessor.plot < 3 and ({ -"(Now's not the time for souvenirs.)" -}) or ({ -"(Toys and trinkets.)" -})) + "(Lots of toys and trinkets in these drawers.)" + }) or (accessor.plot < 3 and ({ + "(Now's not the time for souvenirs.)" + }) or ({ + "(Toys and trinkets.)" + })) end, dresser2 = function() return accessor.plot < 2 and ({ -"(Nothing but antenna warmers in these drawers.)" -}) or (accessor.plot < 3 and ({ -"(Antenna warmers won't help me reach the platform.)" -}) or ({ -"(Antenna warmers.)" -})) + "(Nothing but antenna warmers in these drawers.)" + }) or (accessor.plot < 3 and ({ + "(Antenna warmers won't help me reach the platform.)" + }) or ({ + "(Antenna warmers.)" + })) end, book = function() return accessor.plot < 3 and ({ ({ -"(\"The Jensen Paradox...\")", -"(\"Surface Tension...\")", -"(\"Astrae Symphonia...\")" -})[accessor.choice_home_book + 1], accessor.plot < 2 and "(Not a bad choice.)" or "(... part of this story might be coming true.)" }) or + "(\"The Jensen Paradox...\")", + "(\"Surface Tension...\")", + "(\"Astrae Symphonia...\")" + })[accessor.choice_home_book + 1], accessor.plot < 2 and "(Not a bad choice.)" or "(... part of this story might be coming true.)" }) or ({ { -"(\"The Jensen Paradox.\")" -}, { -"(\"Surface Tension.\")" -}, { -"(\"Astrae Symphonia.\")" -} })[accessor.choice_home_book + 1] + "(\"The Jensen Paradox.\")" + }, { + "(\"Surface Tension.\")" + }, { + "(\"Astrae Symphonia.\")" + } })[accessor.choice_home_book + 1] end, cutetunnel = function() return accessor.plot < 2 and ({ -"(Painting of a wild arkette staring down a corridor.)" -}) or ({ -"(... you and me both, little arkette.)" -}) + "(Painting of a wild arkette staring down a corridor.)" + }) or ({ + "(... you and me both, little arkette.)" + }) end, toy = function() return accessor.plot < 2 and ({ -"(A perpetual motion toy?)", -"(Wonder how long it's been going...)" -}) or (accessor.plot < 3 and ({ -"(Wait, wasn't this toy doing something earlier?)" -}) or ({ -"(A simple toy.)" -})) + "(A perpetual motion toy?)", + "(Wonder how long it's been going...)" + }) or (accessor.plot < 3 and ({ + "(Wait, wasn't this toy doing something earlier?)" + }) or ({ + "(A simple toy.)" + })) end, plant = function() return { "(Baby boka tree.)", unpack(accessor.plot < 2 and ({ -"(Seems like it's almost ready to be planted...)" -}) or (accessor.plot < 3 and ({ -"(Shame there's nowhere to plant this.)" -}) or ({}))) + "(Seems like it's almost ready to be planted...)" + }) or (accessor.plot < 3 and ({ + "(Shame there's nowhere to plant this.)" + }) or ({}))) } end, shovel = function() return accessor.item_bucket and ({ -"(A rusty shovel with a great big hole in it.)" -}) or + "(A rusty shovel with a great big hole in it.)" + }) or (accessor.plot < 3 and (accessor.item_cover and accessor.item_scissors and not accessor.item_crowbar and ({ -"(A rusty shovel. I'd use this as an anchor...)", -"(... if it wasn't such a piece of junk.)" -}) or ({ -"(A rusty shovel. Looks like it's about to fall apart.)" -})) or ({ -"(Useless shovel.)" -})) + "(A rusty shovel. I'd use this as an anchor...)", + "(... if it wasn't such a piece of junk.)" + }) or ({ + "(A rusty shovel. Looks like it's about to fall apart.)" + })) or ({ + "(Useless shovel.)" + })) end, broombox = function() return accessor.item_rock and ({ -"(An old broom with a broken handle.)" -}) or ({ -"(An old broom and some fancy rocks. The broom's handle is broken.)" -}) + "(An old broom with a broken handle.)" + }) or ({ + "(An old broom and some fancy rocks. The broom's handle is broken.)" + }) end, dresserdrawer1 = { -"(An empty dresser drawer.)" -}, + "(An empty dresser drawer.)" + }, dresserdrawer2 = { -"(An empty dresser drawer. It's stuck open.)" -}, + "(An empty dresser drawer. It's stuck open.)" + }, dresserpaper = function() return { "\"After much deliberation, we have come to an agreement.\"", @@ -928,21 +928,21 @@ local function textGen(pager) end, mattress = function() return accessor.plot < 3 and ({ -"(Don't think this mattress has ever been slept on.)" -}) or ({ -"(Unused mattress.)" -}) + "(Don't think this mattress has ever been slept on.)" + }) or ({ + "(Unused mattress.)" + }) end, bin = { -"(An empty bin with a cleaning towel draped over the side.)" -}, + "(An empty bin with a cleaning towel draped over the side.)" + }, bedframe = function() return accessor.plot < 2 and ({ -"(A metal bed frame. The most dangerous object in the universe.)" -}) or ({ -"(A metal bed frame, with one side removed.)", -"(If anything, this makes it MORE dangerous...)" -}) + "(A metal bed frame. The most dangerous object in the universe.)" + }) or ({ + "(A metal bed frame, with one side removed.)", + "(If anything, this makes it MORE dangerous...)" + }) end, fusebox = { "(配电箱发出了微弱的电流声。)" @@ -1120,8 +1120,8 @@ local function textGen(pager) return accessor.plot < 1 and ({ "(食品柜。囤了这么多粮食,\n世界末日来了\n你也能镇定自若。)" }) or (accessor.plot < 2 and ({ -"(Pantry food. My worst nightmare.)" -}) or ({ + "(Pantry food. My worst nightmare.)" + }) or ({ "(真空包装的永恒保质期。)" })) end, @@ -1153,12 +1153,12 @@ local function textGen(pager) unpack(not accessor.event_home_secret and ({ "(Wait. A lockbox?)", accessor.event_home_bookshelf == 0.1 and "(I swear there was a box like that in the living room somewhere...)" or "(Was there a lockbox around here somewhere?)" }) or (accessor.event_home_bookshelf < 1 and ({ -"(... still haven't found the lockbox.)" -}) or (accessor.event_home_bookshelf < 2 and ({ -"(... I've found the lockbox, but I can't reach it...)" -}) or ({ -"(... weird how a library card needed a locked box.)" -})))) + "(... still haven't found the lockbox.)" + }) or (accessor.event_home_bookshelf < 2 and ({ + "(... I've found the lockbox, but I can't reach it...)" + }) or ({ + "(... weird how a library card needed a locked box.)" + })))) ) ____temp_3 = { __TS__SparseArraySpread(____array_2) } end diff --git a/code/maps/redleaf.lua b/code/maps/redleaf.lua index 1f17037..ce2ff93 100644 --- a/code/maps/redleaf.lua +++ b/code/maps/redleaf.lua @@ -294,85 +294,85 @@ local function textGen(pager) name = function() return accessor.item_glove1 and accessor.item_glove2 and "Work Gloves" or "Work Glove" end, info = function() return accessor.item_glove1 and accessor.item_glove2 and ({ -"(An insulated glove. Good for handling dangerous items.)" -}) or ({ -"(A pair of insulated gloves. Good for handling dangerous items.)" -}) + "(An insulated glove. Good for handling dangerous items.)" + }) or ({ + "(A pair of insulated gloves. Good for handling dangerous items.)" + }) end }, item_boots = { name = function() return accessor.item_boot1 and accessor.item_boot2 and "Work Boots" or "Work Boot" end, info = function() return accessor.item_boot1 and accessor.item_boot2 and ({ -"(A sturdy, high-topped boot. Good for traversing hazards.)" -}) or ({ -"(A pair of sturdy, high-topped boots. Good for traversing hazards.)" -}) + "(A sturdy, high-topped boot. Good for traversing hazards.)" + }) or ({ + "(A pair of sturdy, high-topped boots. Good for traversing hazards.)" + }) end }, ponder_arrival = pager:create(0, { -"...", -"(The forest is beautiful...)" -}, { -"...", -"(I have to keep going...)", -"(Standing around won't get me any closer to home.)" -}), + "...", + "(The forest is beautiful...)" + }, { + "...", + "(I have to keep going...)", + "(Standing around won't get me any closer to home.)" + }), ponder_chase = pager:create(0, { -"(If I could just talk to them...)", -"(... there's no time to lose!)" -}, { -"(... I've got to catch up to them!)" -}), + "(If I could just talk to them...)", + "(... there's no time to lose!)" + }, { + "(... I've got to catch up to them!)" + }), ponder_gate = { -"...", -"(I need a closer look at that gate...)" -}, + "...", + "(I need a closer look at that gate...)" + }, ponder_shock = function() return { "(... hm...)", unpack(accessor.item_glove1 and accessor.item_glove2 and accessor.item_boot1 and accessor.item_boot2 and ({ -"(I have these gloves... and these boots...)", -"(Oh! I can use these to climb the gate safely!)" -}) or + "(I have these gloves... and these boots...)", + "(Oh! I can use these to climb the gate safely!)" + }) or (accessor.item_glove1 and accessor.item_glove2 and ((accessor.item_boot1 or accessor.item_boot2) and ({ -"(I have these gloves... and this boot...)", -"(With one more boot, I could climb the gate safely.)" -}) or ({ -"(I have these gloves...)", -"(If I had something to protect my feet, I could climb the gate safely.)" -})) or (accessor.item_boot1 and accessor.item_boot2 and ((accessor.item_glove1 or accessor.item_glove2) and ({ -"(I have these boots... and this glove...)", -"(With one more glove, I could climb the gate safely.)" -}) or ({ -"(I have these boots...)", -"(If I had something to protect my hands, I could climb the gate safely.)" -})) or ((accessor.item_glove1 or accessor.item_glove2) and ((accessor.item_boot1 or accessor.item_boot2) and ({ -"(I have this glove... and this boot...)", -"(If only I could duplicate them, I could climb the gate safely.)" -}) or ({ -"(I have this glove...)", -"(If I had another glove, and something to protect my feet...)", -"(... I could climb the gate safely.)" -})) or ((accessor.item_boot1 or accessor.item_boot2) and ({ -"(I have this boot...)", -"(If I had another boot, and something to protect my hands...)", -"(... I could climb the gate safely.)" -}) or ({ -"(If I had some extra gear to protect myself...)", -"(... I could climb the gate safely.)" -})))))) + "(I have these gloves... and this boot...)", + "(With one more boot, I could climb the gate safely.)" + }) or ({ + "(I have these gloves...)", + "(If I had something to protect my feet, I could climb the gate safely.)" + })) or (accessor.item_boot1 and accessor.item_boot2 and ((accessor.item_glove1 or accessor.item_glove2) and ({ + "(I have these boots... and this glove...)", + "(With one more glove, I could climb the gate safely.)" + }) or ({ + "(I have these boots...)", + "(If I had something to protect my hands, I could climb the gate safely.)" + })) or ((accessor.item_glove1 or accessor.item_glove2) and ((accessor.item_boot1 or accessor.item_boot2) and ({ + "(I have this glove... and this boot...)", + "(If only I could duplicate them, I could climb the gate safely.)" + }) or ({ + "(I have this glove...)", + "(If I had another glove, and something to protect my feet...)", + "(... I could climb the gate safely.)" + })) or ((accessor.item_boot1 or accessor.item_boot2) and ({ + "(I have this boot...)", + "(If I had another boot, and something to protect my hands...)", + "(... I could climb the gate safely.)" + }) or ({ + "(If I had some extra gear to protect myself...)", + "(... I could climb the gate safely.)" + })))))) } end, ponder_gear = { -"(... I think, with this extra gear I've found...)", -"(... climbing the gate should be safe.)" -}, + "(... I think, with this extra gear I've found...)", + "(... climbing the gate should be safe.)" + }, ponder_unlock = { -"(... hm.)", -"(Better get going before someone closes the gate again.)" -}, + "(... hm.)", + "(Better get going before someone closes the gate again.)" + }, ponder_factory = pager:create(0, { "(...让我猜的话,\n这儿看着像座糖浆厂。)", "(不太确定,反正肯定是某种工厂。)", @@ -389,25 +389,25 @@ local function textGen(pager) pipewerx3 = "(Arrange the pipes to connect\nthe two endpoints.)", pipewerx4 = "(Press [X] to exit.)", system1 = { -"Platform Engaged.", -"Selecting Mode: Transit", -"Selecting Destination: CRIMSON", -"Transit In Progress..." -}, + "Platform Engaged.", + "Selecting Mode: Transit", + "Selecting Destination: CRIMSON", + "Transit In Progress..." + }, system2 = "`~1!2@3#4$5%6^7&8*9(0)-_=+[]\\|;:'\",<.>/?", arrival1 = { "..." }, arrival2 = { -"(It's the same as before...)", -"(... guess I... didn't really know what I was expecting.)" -}, + "(It's the same as before...)", + "(... guess I... didn't really know what I was expecting.)" + }, arrival3 = { -"Whoa." -}, + "Whoa." + }, arrival4 = { -"That's big." -}, + "That's big." + }, arrival5 = { "(哎,说到底,这儿不是家啊。)", "(起码... 不用困在怪房子里了。)", @@ -418,174 +418,174 @@ local function textGen(pager) "(...但愿我能找到把伞吧。)" }, stowaway1 = { -"...", -"H... hello?" -}, + "...", + "H... hello?" + }, stowaway2 = { -"Wait, don't go! I..." -}, + "Wait, don't go! I..." + }, stowaway3 = { -"... get back here!" -}, + "... get back here!" + }, stowaway4 = { -"Hey, you!" -}, + "Hey, you!" + }, stowaway5 = { -"(There's nothing to be afraid of...)" -}, + "(There's nothing to be afraid of...)" + }, stowaway6 = { -"No, no, no!" -}, + "No, no, no!" + }, stowaway7 = { -"(... slam the gate on me, why don't you...)" -}, + "(... slam the gate on me, why don't you...)" + }, bushitem1 = { -"(There's something buried in here...)", -"Pick it up?" -}, + "(There's something buried in here...)", + "Pick it up?" + }, bushitem2 = { -"Yes", -"No" -}, + "Yes", + "No" + }, glover0 = "Work Glove", glover1 = { -"(A glove!)", -"{color=0xa289dc}Dysu{color=0xffffff} got the Work Glove.", -"(Feels... tough.)" -}, + "(A glove!)", + "{color=0xa289dc}Dysu{color=0xffffff} got the Work Glove.", + "(Feels... tough.)" + }, glover2 = { -"(Another glove!)", -"{color=0xa289dc}Dysu{color=0xffffff} got the Work Glove." -}, + "(Another glove!)", + "{color=0xa289dc}Dysu{color=0xffffff} got the Work Glove." + }, glovey1 = { -"{color=0xa289dc}Dysu{color=0xffffff} got the Work Glove.", -"(A glove!)", -"(Feels... tough.)" -}, + "{color=0xa289dc}Dysu{color=0xffffff} got the Work Glove.", + "(A glove!)", + "(Feels... tough.)" + }, glovey2 = { -"{color=0xa289dc}Dysu{color=0xffffff} got the Work Glove.", -"(Another glove!)" -}, + "{color=0xa289dc}Dysu{color=0xffffff} got the Work Glove.", + "(Another glove!)" + }, bootey1 = { -"{color=0xa289dc}Dysu{color=0xffffff} got the Work Boot.", -"(... a single boot.)", -"(Surely there's another one around, right?)" -}, + "{color=0xa289dc}Dysu{color=0xffffff} got the Work Boot.", + "(... a single boot.)", + "(Surely there's another one around, right?)" + }, bootey2 = { -"{color=0xa289dc}Dysu{color=0xffffff} got the Work Boot.", -"(Ah, there it is.)" -}, + "{color=0xa289dc}Dysu{color=0xffffff} got the Work Boot.", + "(Ah, there it is.)" + }, booter0 = "Work Boot", booter1 = { -"(... a single boot.)", -"{color=0xa289dc}Dysu{color=0xffffff} got the Work Boot.", -"(Surely there's another one around, right?)" -}, + "(... a single boot.)", + "{color=0xa289dc}Dysu{color=0xffffff} got the Work Boot.", + "(Surely there's another one around, right?)" + }, booter2 = { -"(Ah, there it is.)", -"{color=0xa289dc}Dysu{color=0xffffff} got the Work Boot." -}, + "(Ah, there it is.)", + "{color=0xa289dc}Dysu{color=0xffffff} got the Work Boot." + }, drillie1 = pager:create(0, { -"(I could just use this drill to open the gate...)", -"(... but in doing so, its batteries would be completely drained.)", -"(Would I be able to replace them?)" -}, { -"(Should I use the drill to open the gate, or save it for later?)" -}), + "(I could just use this drill to open the gate...)", + "(... but in doing so, its batteries would be completely drained.)", + "(Would I be able to replace them?)" + }, { + "(Should I use the drill to open the gate, or save it for later?)" + }), drillie2 = { -"Use The Drill", -"Find Another Way" -}, + "Use The Drill", + "Find Another Way" + }, drillie3 = { "..." }, drillie4 = { -"(... that did the trick.)" -}, + "(... that did the trick.)" + }, gateclimb0 = "Gate", gateclimb1 = { -"...", -"(Ah! Of course!)", -"(I'll just climb over it!)" -}, + "...", + "(Ah! Of course!)", + "(I'll just climb over it!)" + }, gateclimb2a = { -"... ugh..." -}, + "... ugh..." + }, gateclimb2b = { -"(... guess I'll have to find something else.)" -}, + "(... guess I'll have to find something else.)" + }, gateclimb2c = { -"(Wait. I have these gloves and boots...)", -"(I could try again with the extra gear to protect myself.)", -"Climb over the gate?" -}, + "(Wait. I have these gloves and boots...)", + "(I could try again with the extra gear to protect myself.)", + "Climb over the gate?" + }, gateclimb3 = { -"(It's electrically charged.)" -}, + "(It's electrically charged.)" + }, gateclimb4 = { -"(Can't climb over the gate without extra gear.)" -}, + "(Can't climb over the gate without extra gear.)" + }, gateclimb5 = pager:create( 0, function() local ____array_0 = __TS__SparseArrayNew(unpack(accessor.event_redleaf_gateclimb == 2 and ({ -"(I have the extra gear I need to protect myself.)" -}) or ({ -"(Wait. I have these gloves and boots now...)", -"(I could try again with the extra gear to protect myself.)" -}))) + "(I have the extra gear I need to protect myself.)" + }) or ({ + "(Wait. I have these gloves and boots now...)", + "(I could try again with the extra gear to protect myself.)" + }))) __TS__SparseArrayPush(____array_0, "Climb over the gate?") return { __TS__SparseArraySpread(____array_0) } end, { -"Climb over the gate?" -} + "Climb over the gate?" + } ), gateclimb6 = { -"Yes", -"No" -}, + "Yes", + "No" + }, gateclimb7 = { -"(Third climb's the charm. placeholder :3)" -}, + "(Third climb's the charm. placeholder :3)" + }, gateclimb8 = { -"(Alright!)" -}, + "(Alright!)" + }, gateclimb9 = { -"(Is this... a factory?)" -}, + "(Is this... a factory?)" + }, gateclimb10 = { -"(Time to find out what that rascal was up to.)" -} + "(Time to find out what that rascal was up to.)" + } }, trivia = { tree = { -"It's a tree! (placeholder :3)" -}, + "It's a tree! (placeholder :3)" + }, barrel = { -"Barrel barrel barrel- (placeholder :3)" -}, + "Barrel barrel barrel- (placeholder :3)" + }, lid = { -"A lid. (placeholder :3)" -}, + "A lid. (placeholder :3)" + }, facsign = { -"\"REDLEAF INDUSTRIES\"\n\"Factory Grounds Nearby\"" -}, + "\"REDLEAF INDUSTRIES\"\n\"Factory Grounds Nearby\"" + }, sapsign = { -"\"Kotokura Syrup Exports\"\n\"Redleaf Industries\"" -}, + "\"Kotokura Syrup Exports\"\n\"Redleaf Industries\"" + }, carsign = pager:create(0, { -"\"Danger: Industrial Vehicles\"", -"(Guess I should be careful...)" -}, { -"\"Danger: Industrial Vehicles\"" -}), + "\"Danger: Industrial Vehicles\"", + "(Guess I should be careful...)" + }, { + "\"Danger: Industrial Vehicles\"" + }), powertower = { -"A powertower? (placeholder :3)" -}, + "A powertower? (placeholder :3)" + }, placeholder2 = pager:create(0, { -"placeholder :3" -}) + "placeholder :3" + }) }, trivia_tooltip = { tree = "Tree", diff --git a/code/systems/acquit.lua b/code/systems/acquit.lua index ac08b70..b8d95b7 100644 --- a/code/systems/acquit.lua +++ b/code/systems/acquit.lua @@ -14,13 +14,14 @@ local world = ____global.world local ____launcher = require("code.screens.launcher") local mouseButtonMenu = ____launcher.mouseButtonMenu local function textGen() - return {header = "(确定要退出吗?)\n{color=0xff3f3f}(本世界未保存的数据\n将会丢失。)", button1 = "继续游玩", button2 = "退出游戏"} + return { header = "(确定要退出吗?)\n{color=0xff3f3f}(本世界未保存的数据\n将会丢失。)", button1 = "继续游玩", button2 = + "退出游戏" } end local function acquit(assets, atlas, batch, ____debug, ____bindingPattern0) local screen screen = ____bindingPattern0.screen local text = textGen() - local state = {acquitted = false, debug = false} + local state = { acquitted = false, debug = false } return { text = text, state = state, @@ -47,12 +48,12 @@ local function acquit(assets, atlas, batch, ____debug, ____bindingPattern0) __TS__New(STRectangle, { alpha = 0.5, anchor = 0.5, - size = {x = 240, y = 180}, + size = { x = 240, y = 180 }, color = 0, priority = -3 }), - __TS__New(STRectangle, {anchor = 0.5, size = {x = 180, y = 90}, color = 0, priority = -2}), - __TS__New(STContainer, {priority = -1}):addDrawer(function(self) + __TS__New(STRectangle, { anchor = 0.5, size = { x = 180, y = 90 }, color = 0, priority = -2 }), + __TS__New(STContainer, { priority = -1 }):addDrawer(function(self) love.graphics.setLineWidth(1 / 3) love.graphics.rectangle( "line", @@ -68,53 +69,55 @@ local function acquit(assets, atlas, batch, ____debug, ____bindingPattern0) screen:attach(wrapper) local ____self_2 = mouseButtonMenu( wrapper, - {main = ST:populate( - 3, - function(i) - local content = ({text.header, text.button1, text.button2})[i + 1] - local metadata - metadata = { - disabled = i == 0, - action = function(____, controller) - repeat - local ____switch12 = i - local ____cond12 = ____switch12 == 1 - if ____cond12 then - controller["goto"](controller, nil) - metadata.disabled = true - state.acquitted = false - break - end - ____cond12 = ____cond12 or ____switch12 == 2 - if ____cond12 then - love.event.quit() - break - end - until true - end - } - local position = 0.5 - return __TS__New( - STHitbox, - { - anchor = 0.5, - metadata = metadata, - position = { - x = (i == 0 and 0 or ST:spread(45, i - 1, 2)) - position, - y = (i == 0 and -8 or 24) - position - }, - size = i == 0 and 0 or assets["f$fives"]:compute(content), - children = {__TS__New(STText, { - anchor = 0.5, - justify = i == 0 and 0.5 or nil, - font = i == 0 and assets["f$helloplayer"] or assets["f$fives"], - position = position, - content = content - })} + { + main = ST:populate( + 3, + function(i) + local content = ({ text.header, text.button1, text.button2 })[i + 1] + local metadata + metadata = { + disabled = i == 0, + action = function(____, controller) + repeat + local ____switch12 = i + local ____cond12 = ____switch12 == 1 + if ____cond12 then + controller["goto"](controller, nil) + metadata.disabled = true + state.acquitted = false + break + end + ____cond12 = ____cond12 or ____switch12 == 2 + if ____cond12 then + love.event.quit() + break + end + until true + end } - ) - end - )}, + local position = 0.5 + return __TS__New( + STHitbox, + { + anchor = 0.5, + metadata = metadata, + position = { + x = (i == 0 and 0 or ST:spread(45, i - 1, 2)) - position, + y = (i == 0 and -8 or 24) - position + }, + size = i == 0 and 0 or assets["f$fives"]:compute(content), + children = { __TS__New(STText, { + anchor = 0.5, + justify = i == 0 and 0.5 or nil, + font = i == 0 and assets["f$helloplayer"] or assets["f$fives"], + position = position, + content = content + }) } + } + ) + end + ) + }, "main" ) ____self_2["then"]( diff --git a/code/systems/inventory.lua b/code/systems/inventory.lua index b855433..dc4497b 100644 --- a/code/systems/inventory.lua +++ b/code/systems/inventory.lua @@ -15,16 +15,16 @@ local function textGen() return { "(A pail. Good for collecting things.)", unpack(accessor.event_home_bucket and ({ -"(Apart from rainwater, apparently.)" -}) or ({})) + "(Apart from rainwater, apparently.)" + }) or ({})) } end }, item_card = { name = "Library Card", info = { -"(A library card with a blued, jeweled strip.)" -} + "(A library card with a blued, jeweled strip.)" + } }, item_drill = { name = "一把电钻", @@ -52,8 +52,8 @@ local function textGen() "(走你。)" }, info2a = { -"(A worn plushie.)" -}, + "(A worn plushie.)" + }, info2b = { "拿下来", "算了" diff --git a/translate/import.py b/translate/import.py index c1ed30a..fea3f1a 100644 --- a/translate/import.py +++ b/translate/import.py @@ -4,19 +4,32 @@ from tempfile import TemporaryDirectory import subprocess import shutil import os +import re +import datetime from tools import convert_zh_to_tw, import_translation_json # Wasneet聲明 # 這個版本完全是依照「能跑就行」原則寫的,不准糾我錯! -# ========== 配置区域 ========== -IMPORTLANG = "zh_CN" # 語言選項 -VERSION = "V1.1" # 版本號 -WEBLATE_PATH = "/Deskto/psoutertale-weblate" # WEBLATE文件夾路徑(須修改!) -SOURCE_DIR = Path("F:/Deskto/Petrichor-PSTVL").resolve() +# ============================== +IMPORTLANG = input("语言?(跳过则语言默认为zh_CN)") # 語言選項 +if len(IMPORTLANG) == 0: + IMPORTLANG = "zh_CN" +VERSION = "v" + input("版本号?(跳过则记录构建日期)") # 版本號 +if len(VERSION) == 1: + VERSION = "构建于" + str(datetime.date.today()) +WEBLATE_PATH = os.path.abspath("../weblate") +BUILD_PATH = os.path.abspath("..") # MDR留:其他有地方不认字符串啊qwq,以我的能力只会分开写了 +SOURCE_DIR = Path("../source").resolve() + +# 删除过时构建 +os.chdir(BUILD_PATH) # MDR留:抄的qwq +for file in os.listdir(BUILD_PATH): + if re.match(r'.+.love', file): + os.remove(file) # ============================== -os.chdir("translate") +os.chdir(SOURCE_DIR / "translate") # 拉取weblate仓库更改 print("🟡「提示」 Weblate文本獲取中...") os.system(f"cd {WEBLATE_PATH} && git pull") @@ -31,7 +44,7 @@ for lua_file in src_text_path.glob("*.lua"): os.chdir("..") PROJECT_ROOT = SOURCE_DIR LANG_IMAGES = SOURCE_DIR / "images" / IMPORTLANG -BUILD_OUTPUT = SOURCE_DIR / "translate" / "gamebuild" / f"Petrichor-{VERSION}.love" +BUILD_OUTPUT = f"{BUILD_PATH}/PETRICHOR-{IMPORTLANG} {VERSION}.love" src_text_path = PROJECT_ROOT / "translate" / "src" # 7z校驗 @@ -79,4 +92,4 @@ with TemporaryDirectory() as tmpdir: print(f"🔴「錯誤」 裝箱失敗,退出碼:{exit_code}。") exit(1) -print(f"\n🟢「提示」 裝箱好啦!給你放在{BUILD_OUTPUT}了,記得看一眼嗷。") \ No newline at end of file +print(f"\n🟢「提示」 裝箱好啦!給你放在{BUILD_OUTPUT}了,記得看一眼嗷。") diff --git a/translate/text/zh_CN/acquit.lua b/translate/text/zh_CN/acquit.lua index ac08b70..b8d95b7 100644 --- a/translate/text/zh_CN/acquit.lua +++ b/translate/text/zh_CN/acquit.lua @@ -14,13 +14,14 @@ local world = ____global.world local ____launcher = require("code.screens.launcher") local mouseButtonMenu = ____launcher.mouseButtonMenu local function textGen() - return {header = "(确定要退出吗?)\n{color=0xff3f3f}(本世界未保存的数据\n将会丢失。)", button1 = "继续游玩", button2 = "退出游戏"} + return { header = "(确定要退出吗?)\n{color=0xff3f3f}(本世界未保存的数据\n将会丢失。)", button1 = "继续游玩", button2 = + "退出游戏" } end local function acquit(assets, atlas, batch, ____debug, ____bindingPattern0) local screen screen = ____bindingPattern0.screen local text = textGen() - local state = {acquitted = false, debug = false} + local state = { acquitted = false, debug = false } return { text = text, state = state, @@ -47,12 +48,12 @@ local function acquit(assets, atlas, batch, ____debug, ____bindingPattern0) __TS__New(STRectangle, { alpha = 0.5, anchor = 0.5, - size = {x = 240, y = 180}, + size = { x = 240, y = 180 }, color = 0, priority = -3 }), - __TS__New(STRectangle, {anchor = 0.5, size = {x = 180, y = 90}, color = 0, priority = -2}), - __TS__New(STContainer, {priority = -1}):addDrawer(function(self) + __TS__New(STRectangle, { anchor = 0.5, size = { x = 180, y = 90 }, color = 0, priority = -2 }), + __TS__New(STContainer, { priority = -1 }):addDrawer(function(self) love.graphics.setLineWidth(1 / 3) love.graphics.rectangle( "line", @@ -68,53 +69,55 @@ local function acquit(assets, atlas, batch, ____debug, ____bindingPattern0) screen:attach(wrapper) local ____self_2 = mouseButtonMenu( wrapper, - {main = ST:populate( - 3, - function(i) - local content = ({text.header, text.button1, text.button2})[i + 1] - local metadata - metadata = { - disabled = i == 0, - action = function(____, controller) - repeat - local ____switch12 = i - local ____cond12 = ____switch12 == 1 - if ____cond12 then - controller["goto"](controller, nil) - metadata.disabled = true - state.acquitted = false - break - end - ____cond12 = ____cond12 or ____switch12 == 2 - if ____cond12 then - love.event.quit() - break - end - until true - end - } - local position = 0.5 - return __TS__New( - STHitbox, - { - anchor = 0.5, - metadata = metadata, - position = { - x = (i == 0 and 0 or ST:spread(45, i - 1, 2)) - position, - y = (i == 0 and -8 or 24) - position - }, - size = i == 0 and 0 or assets["f$fives"]:compute(content), - children = {__TS__New(STText, { - anchor = 0.5, - justify = i == 0 and 0.5 or nil, - font = i == 0 and assets["f$helloplayer"] or assets["f$fives"], - position = position, - content = content - })} + { + main = ST:populate( + 3, + function(i) + local content = ({ text.header, text.button1, text.button2 })[i + 1] + local metadata + metadata = { + disabled = i == 0, + action = function(____, controller) + repeat + local ____switch12 = i + local ____cond12 = ____switch12 == 1 + if ____cond12 then + controller["goto"](controller, nil) + metadata.disabled = true + state.acquitted = false + break + end + ____cond12 = ____cond12 or ____switch12 == 2 + if ____cond12 then + love.event.quit() + break + end + until true + end } - ) - end - )}, + local position = 0.5 + return __TS__New( + STHitbox, + { + anchor = 0.5, + metadata = metadata, + position = { + x = (i == 0 and 0 or ST:spread(45, i - 1, 2)) - position, + y = (i == 0 and -8 or 24) - position + }, + size = i == 0 and 0 or assets["f$fives"]:compute(content), + children = { __TS__New(STText, { + anchor = 0.5, + justify = i == 0 and 0.5 or nil, + font = i == 0 and assets["f$helloplayer"] or assets["f$fives"], + position = position, + content = content + }) } + } + ) + end + ) + }, "main" ) ____self_2["then"]( diff --git a/translate/text/zh_CN/home.lua b/translate/text/zh_CN/home.lua index c4edf52..a1aaf9d 100644 --- a/translate/text/zh_CN/home.lua +++ b/translate/text/zh_CN/home.lua @@ -248,67 +248,67 @@ local function textGen(pager) name = "一本书", info = function() return ({ { -"\"The Jensen Paradox, third installment in the Jensen series.\"", -"\"How will they escape last time?\"" -}, { -"\"Surface Tension, the hotel nobody ever leaves.\"", -"\"An endless maze of hallways, doors, swimming pools and libraries...\"" -}, { -"\"Astrae Symphonia, a tale of intrigue, emotion, and music.\"", -"\"Follow this rogue starship to the edge of the galaxy!\"" -} })[accessor.choice_home_book + 1] + "\"The Jensen Paradox, third installment in the Jensen series.\"", + "\"How will they escape last time?\"" + }, { + "\"Surface Tension, the hotel nobody ever leaves.\"", + "\"An endless maze of hallways, doors, swimming pools and libraries...\"" + }, { + "\"Astrae Symphonia, a tale of intrigue, emotion, and music.\"", + "\"Follow this rogue starship to the edge of the galaxy!\"" + } })[accessor.choice_home_book + 1] end }, item_rock = { name = "几块碎石" }, item_batteries = { name = "几节电池", info = { -"(Type four batteries. Good for small devices and tools.)" -} + "(Type four batteries. Good for small devices and tools.)" + } }, item_cover = { name = function() return accessor.item_scissors and "一条床单绳" or "一张床单" end, info = function() return accessor.item_scissors and ({ -"(A makeshift \"rope\" made from pieces of a blanket.)" -}) or ({ -"(A comfortable blanket. Haven't found something to cut it with yet.)" -}) + "(A makeshift \"rope\" made from pieces of a blanket.)" + }) or ({ + "(A comfortable blanket. Haven't found something to cut it with yet.)" + }) end }, item_crowbar = { name = "一根金属棒", info = { -"(One bar of pure bed frame.)", -"(It's really heavy.)" -} + "(One bar of pure bed frame.)", + "(It's really heavy.)" + } }, ponder_book = pager:create(0, { -"(You ponder why you're still awake.)", -"(You realize you don't have a book to read in bed.)" -}, { -"(You ponder what kind of book you'd like to read.)", -"(You're realize you're in the mood for something novel.)" -}), + "(You ponder why you're still awake.)", + "(You realize you don't have a book to read in bed.)" + }, { + "(You ponder what kind of book you'd like to read.)", + "(You're realize you're in the mood for something novel.)" + }), ponder_sleep = { -"(You ponder why you're still awake.)", -"(You realize you should probably go to bed now.)" -}, + "(You ponder why you're still awake.)", + "(You realize you should probably go to bed now.)" + }, ponder_hello = { -"...", -"(I don't really know where I am.)", -"(Exploring might give me a better idea...)" -}, + "...", + "(I don't really know where I am.)", + "(Exploring might give me a better idea...)" + }, ponder_outside = pager:create( 0, { -"...", -"(This... house... doesn't make any sense.)", -"(How is it just... floating?)", -"(Why is there nothing else out there?)", -"(If I could find something to \"test\" this place...)", -"(... it might give me a clue how to escape it.)" -}, + "...", + "(This... house... doesn't make any sense.)", + "(How is it just... floating?)", + "(Why is there nothing else out there?)", + "(If I could find something to \"test\" this place...)", + "(... it might give me a clue how to escape it.)" + }, function() return { "(I'm looking for a way to escape.)", "(To do that, I need to know what this place's limits are.)", @@ -319,26 +319,26 @@ local function textGen(pager) ), ponder_platform = function() return accessor.item_cover and (accessor.item_scissors and ({ -"(So far, I've cut this blanket and made it into a rope.)", -"(Now, I just need something to hold it in place for the climb...)", -"(... something strong and sturdy, like metal.)" -}) or ({ -"(So far, I've found a blanket, which I can make into a rope.)", -"(I still need something to cut it with.)" -})) or ({ -"(I need to find a way down to that platform.)", -"(It's too far to jump, so I'll have to try something else.)", -"(A rope would do the trick...)" -}) + "(So far, I've cut this blanket and made it into a rope.)", + "(Now, I just need something to hold it in place for the climb...)", + "(... something strong and sturdy, like metal.)" + }) or ({ + "(So far, I've found a blanket, which I can make into a rope.)", + "(I still need something to cut it with.)" + })) or ({ + "(I need to find a way down to that platform.)", + "(It's too far to jump, so I'll have to try something else.)", + "(A rope would do the trick...)" + }) end, ponder_exit = pager:create(0, { -"...", -"(It's strange... omething about this house is comfortable.)", -"(In another life, I could see myself living here...)" -}, { -"(There's nothing else for me to do here.)", -"(It's time to go.)" -}), + "...", + "(It's strange... omething about this house is comfortable.)", + "(In another life, I could see myself living here...)" + }, { + "(There's nothing else for me to do here.)", + "(It's time to go.)" + }), overworld = { start1 = "警告", start2 = @@ -360,31 +360,31 @@ local function textGen(pager) "(你好像有什么事忘了做。)" }, blocker3 = { -"Go upstairs and complete the tutorial?" -}, + "Go upstairs and complete the tutorial?" + }, blocker4 = { "上楼吧", "再等等" }, blocker5 = { -"Go outside and climb down to the golden platform?" -}, + "Go outside and climb down to the golden platform?" + }, blocker6 = { -"Go Outside", -"Not Yet" -}, + "Go Outside", + "Not Yet" + }, bookshelf1 = { "要拿本书吗?" }, bookshelf2 = { -"The Jensen Paradox (Action)", -"Surface Tension (Surreal)", -"Astrae Symphonia (Space)", -"Not Yet" -}, + "The Jensen Paradox (Action)", + "Surface Tension (Surreal)", + "Astrae Symphonia (Space)", + "Not Yet" + }, bookshelf3 = { -"(You got the Book.)" -}, + "(You got the Book.)" + }, bookshelf4 = { "(你打算不这么做。)" }, @@ -393,15 +393,15 @@ local function textGen(pager) "(这好像不是我的床吧。)" }, hello2 = { -"(... maybe I slept on the wrong antenna...)" -}, + "(... maybe I slept on the wrong antenna...)" + }, hello3 = { "(不对... 这压根就不是我家啊。)", "(我咋就来这了?\n难不成... 有人把我绑了?)" }, hello4 = { -"(I don't remember being taken...)" -}, + "(I don't remember being taken...)" + }, goatplush0 = "Plushie", goatplush1 = pager:create( 0, @@ -411,25 +411,25 @@ local function textGen(pager) "(... did you follow me here, to this strange place?)", "Pick them up?" } end, { -"Pick them up?" -} + "Pick them up?" + } ), goatplush2 = { -"Yes", -"No" -}, + "Yes", + "No" + }, goatplush3 = { -"Come here, you.", -"{color=0xa289dc}Dysu{color=0xffffff} got the Plushie.", -"...", -"(Maybe I should hold onto this for a while.)" -}, + "Come here, you.", + "{color=0xa289dc}Dysu{color=0xffffff} got the Plushie.", + "...", + "(Maybe I should hold onto this for a while.)" + }, fusebox1 = function() return { "(An electric routing box...)", unpack(accessor.plot < 2 and ({ -"(Maybe I can get main power back on.)" -}) or ({})) + "(Maybe I can get main power back on.)" + }) or ({})) } end, fusebox2 = "厨房", @@ -441,38 +441,38 @@ local function textGen(pager) fusebox8 = "已通电", fusebox9 = "已断电", lightswitch = { -"(No power.)" -}, + "(No power.)" + }, telecomm1 = function() return { "(A comms device. Must be battery-powered.)", unpack(accessor.plot < 2 and ({ -"(Only two receivers on the contact list...?)" -}) or ({})) + "(Only two receivers on the contact list...?)" + }) or ({})) } end, telecomm2 = { -"What will you do?" -}, + "What will you do?" + }, telecomm3a = { -"Call Work", -"Call Neighbors", -"Play Back Message", -"Never Mind" -}, + "Call Work", + "Call Neighbors", + "Play Back Message", + "Never Mind" + }, telecomm3b = { -"Call Work", -"Call Neighbors", -"Never Mind" -}, + "Call Work", + "Call Neighbors", + "Never Mind" + }, telecomm4 = { { -"(Calling... Work.)" -}, { -"(Calling... Neighbors.)" -} }, + "(Calling... Work.)" + }, { + "(Calling... Neighbors.)" + } }, telecomm5 = { -"(That Receiver Does Not Exist.)" -}, + "(That Receiver Does Not Exist.)" + }, telecomm6 = function() return { "(Beginning Playback...)", @@ -482,12 +482,12 @@ local function textGen(pager) unpack(accessor.state_home_telecomm_message == 0 and ({ "(Oh. It's just a scam.)", unpack(accessor.event_home_outside and ({ -"(I'd delete the message, if it wasn't for the small possibility...)", -"(... that this might be the last other person's voice I hear.)" -}) or ({ -"(Nobody would mind if I deleted this, would they?)", -"(Message Deleted.)" -})) + "(I'd delete the message, if it wasn't for the small possibility...)", + "(... that this might be the last other person's voice I hear.)" + }) or ({ + "(Nobody would mind if I deleted this, would they?)", + "(Message Deleted.)" + })) }) or ({})) } end, @@ -498,38 +498,38 @@ local function textGen(pager) "(Actually, before I go...)", "Eat something from the fridge?" } end, { -"Eat something from the fridge?" -} + "Eat something from the fridge?" + } ), fridge2 = { -"Boka Fruit", -"Tenzka Tracks Ice Cream", -"Morning Leftovers", -"Never Mind" -}, + "Boka Fruit", + "Tenzka Tracks Ice Cream", + "Morning Leftovers", + "Never Mind" + }, fridge3 = { { -"(These better be home-grown.)" -}, { -"(My favorite food! I must be lucky.)" -}, { -"(... it's better than nothing.)" -}, { + "(These better be home-grown.)" + }, { + "(My favorite food! I must be lucky.)" + }, { + "(... it's better than nothing.)" + }, { "..." } }, fridge4 = { { -"(Huh. Those were actually pretty good.)" -}, { -"(... might've eaten too much.)" -}, { + "(Huh. Those were actually pretty good.)" + }, { + "(... might've eaten too much.)" + }, { "..." } }, fridge5 = function() return accessor.plot < 2 and ({ -"(Oh... right.)", -"(I'm still trying to get out of here.)" -}) or ({ -"(... time to get back to what I was doing.)" -}) + "(Oh... right.)", + "(I'm still trying to get out of here.)" + }) or ({ + "(... time to get back to what I was doing.)" + }) end, outside1 = { "(什么鬼...)", @@ -553,67 +553,67 @@ local function textGen(pager) "(兴许我能用它\n在远处看到点什么。)" }, basket1a = { -"...", -"(Wait, that box on the bookshelf...)", -"(It's the lockbox from the note!)" -}, + "...", + "(Wait, that box on the bookshelf...)", + "(It's the lockbox from the note!)" + }, basket1b = { -"(Hm...)" -}, + "(Hm...)" + }, basket2 = { -"{color=0xa289dc}Dysu{color=0xffffff} got the Library Card.", -"(There!)" -}, + "{color=0xa289dc}Dysu{color=0xffffff} got the Library Card.", + "(There!)" + }, basket3 = { -"(A library card...?)" -}, + "(A library card...?)" + }, bucket1 = function() return accessor.plot < 3 and (accessor.item_cover and accessor.item_scissors and not accessor.item_crowbar and ({ -"(A rusty shovel. I'd use this as an anchor, but...)" -}) or ({ -"(A rusty shovel. Looks like it's...)" -})) or ({ -"(A rusty shovel...)" -}) + "(A rusty shovel. I'd use this as an anchor, but...)" + }) or ({ + "(A rusty shovel. Looks like it's...)" + })) or ({ + "(A rusty shovel...)" + }) end, bucket2 = function() return { "(Wait.)", unpack(accessor.plot < 2 and ({ -"(What about the pail?)" -}) or ({ -"(That pail might be come in handy.)" -})) + "(What about the pail?)" + }) or ({ + "(That pail might be come in handy.)" + })) } end, bucket3 = function() local ____array_0 = __TS__SparseArrayNew(unpack(accessor.plot < 2 and ({ -"(... how could it be raining when there's nothing else outside?)", -"(Maybe I can learn something by collecting it, and...)", -"(Studying it, I guess.)", -"(... sounds stupid when I think about it like that, but still.)" -}) or ({ -"(Just in case.)" -}))) + "(... how could it be raining when there's nothing else outside?)", + "(Maybe I can learn something by collecting it, and...)", + "(Studying it, I guess.)", + "(... sounds stupid when I think about it like that, but still.)" + }) or ({ + "(Just in case.)" + }))) __TS__SparseArrayPush(____array_0, "{color=0xa289dc}Dysu{color=0xffffff} got the Pail.") return { __TS__SparseArraySpread(____array_0) } end, bucket4 = { -"(Don't think I can collect any rain from here.)" -}, + "(Don't think I can collect any rain from here.)" + }, rain1 = { "..." }, rain2 = { -"(That's weird...)", -"(The rain's definitely going inside, but...)", -"(It's... not filling up.)" -}, + "(That's weird...)", + "(The rain's definitely going inside, but...)", + "(It's... not filling up.)" + }, rain3 = { -"(Freaky.)", -"(... guess I can't learn anything from this, though.)" -}, + "(Freaky.)", + "(... guess I can't learn anything from this, though.)" + }, rope1 = function() return { "(一截麻绳,剩下不多了。)", accessor.plot == 2 and "(Doubt it's enough to reach the platform, but I'll take it anyway.)" or @@ -621,95 +621,95 @@ local function textGen(pager) "{color=0xa289dc}Dysu{color=0xffffff} got the Rope." } end, rope2 = { -"(No use for this indoors.)" -}, + "(No use for this indoors.)" + }, dangle1 = { -"(Hm...)" -}, + "(Hm...)" + }, dangle2 = { -"(No, it's nowhere NEAR long enough to get me down there.)" -}, + "(No, it's nowhere NEAR long enough to get me down there.)" + }, dangle3 = function() return accessor.item_cover and ({ -"(... the blanket plan will have to do.)" -}) or ({ -"(... maybe there's something else I could make a rope out of.)" -}) + "(... the blanket plan will have to do.)" + }) or ({ + "(... maybe there's something else I could make a rope out of.)" + }) end, drill = { -"(A heavy-duty electric drill. Might be useful.)", -"{color=0xa289dc}Dysu{color=0xffffff} got the Drill.", -"(Good thing these batteries were included.)" -}, + "(A heavy-duty electric drill. Might be useful.)", + "{color=0xa289dc}Dysu{color=0xffffff} got the Drill.", + "(Good thing these batteries were included.)" + }, drill_tooltip = "Drill", broombox1 = { -"(A box of old collector's rocks...)", -"(... doubt they're important, so instead, I could try throwing them.)", -"{color=0xa289dc}Dysu{color=0xffffff} got the Rock.", -"(Off the edge.)", -"{color=0xa289dc}Dysu{color=0xffffff} got the Rock.", -"(To see what happens.)", -"{color=0xa289dc}Dysu{color=0xffffff} got the Rock." -}, + "(A box of old collector's rocks...)", + "(... doubt they're important, so instead, I could try throwing them.)", + "{color=0xa289dc}Dysu{color=0xffffff} got the Rock.", + "(Off the edge.)", + "{color=0xa289dc}Dysu{color=0xffffff} got the Rock.", + "(To see what happens.)", + "{color=0xa289dc}Dysu{color=0xffffff} got the Rock." + }, broombox2 = { -"(It's worth a try.)" -}, + "(It's worth a try.)" + }, broombox3 = { -"(Throwing these indoors won't tell me anything.)" -}, + "(Throwing these indoors won't tell me anything.)" + }, golden1 = { -"(... right.)" -}, + "(... right.)" + }, golden2 = { -"...", -"(Get ready...!)" -}, + "...", + "(Get ready...!)" + }, golden3 = { -"...", -"(Maybe I didn't throw it far enough.)" -}, + "...", + "(Maybe I didn't throw it far enough.)" + }, golden4 = { -"(Here we go...)", -"(... again!)" -}, + "(Here we go...)", + "(... again!)" + }, golden5 = { -"...", -"(Nothing...)" -}, + "...", + "(Nothing...)" + }, golden6 = { -"...", -"(... what if I just...)" -}, + "...", + "(... what if I just...)" + }, golden7 = { "..." }, golden8 = { -"(That's new.)" -}, + "(That's new.)" + }, golden9 = { -"...", -"(Doesn't look like part of the house...)", -"(Could that be what's behind all of this?)", -"...", -"(Maybe it's silly, but if...)", -"(If I could get down there somehow...)" -}, + "...", + "(Doesn't look like part of the house...)", + "(Could that be what's behind all of this?)", + "...", + "(Maybe it's silly, but if...)", + "(If I could get down there somehow...)" + }, golden10 = { -"(... I might just be able to escape!)" -}, + "(... I might just be able to escape!)" + }, scissors1 = function() local ____array_1 = __TS__SparseArrayNew(unpack(accessor.item_cover and ({ -"(Scissors! For the blanket!)" -}) or ({ -"(Scissors...)", -"(Could be good to have these on hand.)" -}))) + "(Scissors! For the blanket!)" + }) or ({ + "(Scissors...)", + "(Could be good to have these on hand.)" + }))) __TS__SparseArrayPush( ____array_1, "{color=0xa289dc}Dysu{color=0xffffff} got the Scissors.", unpack(accessor.item_cover and ({ -"(Sorry, little blanket...)" -}) or ({})) + "(Sorry, little blanket...)" + }) or ({})) ) return { __TS__SparseArraySpread(____array_1) } end, @@ -717,16 +717,16 @@ local function textGen(pager) return { "(... that's that taken care of...)", unpack(accessor.item_crowbar and ({ -"(Oh! And I can use the bed frame as an anchor!)" -}) or ({ -"(Now I need something to anchor the \"rope\" to once I'm outside.)" -})) + "(Oh! And I can use the bed frame as an anchor!)" + }) or ({ + "(Now I need something to anchor the \"rope\" to once I'm outside.)" + })) } end, bed1 = { -"(The bed...)", -"(... no...)" -}, + "(The bed...)", + "(... no...)" + }, bed2 = function() return { "(The covers!)", @@ -734,27 +734,27 @@ local function textGen(pager) "(... and make a rope out of it!)", "{color=0xa289dc}Dysu{color=0xffffff} got the Blanket.", unpack(accessor.item_scissors and ({ -"(Sorry, little blanket...)" -}) or ({})) + "(Sorry, little blanket...)" + }) or ({})) } end, bed3 = function() return not accessor.item_scissors and ({ -"(I'll need something to cut it with, though.)" -}) or (not accessor.item_crowbar and ({ -"(Now I need something to anchor the \"rope\" to once I'm outside.)" -}) or ({ -"(Oh! And I can use the bed frame as an anchor!)" -})) + "(I'll need something to cut it with, though.)" + }) or (not accessor.item_crowbar and ({ + "(Now I need something to anchor the \"rope\" to once I'm outside.)" + }) or ({ + "(Oh! And I can use the bed frame as an anchor!)" + })) end, framer1 = function() return { "(A metal bed frame. I wonder if I could take it apart...)", unpack(accessor.item_drill and ({ -"(... the drill should do nicely!)" -}) or ({ -"(... not by hand, that's for sure.)" -})) + "(... the drill should do nicely!)" + }) or ({ + "(... not by hand, that's for sure.)" + })) } end, framer2 = function() @@ -763,44 +763,44 @@ local function textGen(pager) unpack(accessor.item_cover and accessor.item_scissors and ({ "..." }) or ({ -"(Nice!)" -})) + "(Nice!)" + })) } end, framer3 = { -"(... wait! That's it!)", -"(I'll attach the \"rope\" to the bar, place it behind the doorway...)", -"(... and climb my way down to the platform!)" -}, + "(... wait! That's it!)", + "(I'll attach the \"rope\" to the bar, place it behind the doorway...)", + "(... and climb my way down to the platform!)" + }, done1 = { -"(I'll attach the \"rope\" to it, place it behind the doorway...)", -"(... and climb my way down to the platform!)" -}, + "(I'll attach the \"rope\" to it, place it behind the doorway...)", + "(... and climb my way down to the platform!)" + }, done2 = { -"(About time...)" -}, + "(About time...)" + }, exit1 = { -"(Well, that should do it...)" -}, + "(Well, that should do it...)" + }, exit2 = { -"(Don't look down.)" -}, + "(Don't look down.)" + }, exit3 = { -"... I made it! I'm here!", -"I'm actually..." -}, + "... I made it! I'm here!", + "I'm actually..." + }, exit4 = { -"(What the-)" -} + "(What the-)" + } }, trivia = { window = function() return accessor.plot < 1 and ({ -"(You peer through the window, observing the outdoor nightlife.)" -}) or (accessor.plot < 2 and (not accessor.event_home_outside and ({ -"(That's weird...)", -"(... can't see anything out there.)" -}) or ({ + "(You peer through the window, observing the outdoor nightlife.)" + }) or (accessor.plot < 2 and (not accessor.event_home_outside and ({ + "(That's weird...)", + "(... can't see anything out there.)" + }) or ({ "..." })) or ({ "..." @@ -808,115 +808,115 @@ local function textGen(pager) end, bed = function() return not accessor.item_cover and ({ -"(A surprisingly comfortable bed.)" -}) or (accessor.plot < 3 and ({ -"(Probably not as comfortable anymore.)" -}) or ({ -"(A bed.)" -})) + "(A surprisingly comfortable bed.)" + }) or (accessor.plot < 3 and ({ + "(Probably not as comfortable anymore.)" + }) or ({ + "(A bed.)" + })) end, computer = function() return { "(A computer.)", unpack(not accessor.event_home_outside and ({ -"(The neural input looks worn out. Must have seen a lot of use.)" -}) or (accessor.plot < 3 and ({ -"(Without any power, it's just a box.)" -}) or ({}))) + "(The neural input looks worn out. Must have seen a lot of use.)" + }) or (accessor.plot < 3 and ({ + "(Without any power, it's just a box.)" + }) or ({}))) } end, chair = function() return accessor.plot < 3 and ({ -"(Just a chair.)" -}) or ({ -"(Despite everything, it's still just a chair.)" -}) + "(Just a chair.)" + }) or ({ + "(Despite everything, it's still just a chair.)" + }) end, dresser1 = function() return accessor.plot < 2 and ({ -"(Lots of toys and trinkets in these drawers.)" -}) or (accessor.plot < 3 and ({ -"(Now's not the time for souvenirs.)" -}) or ({ -"(Toys and trinkets.)" -})) + "(Lots of toys and trinkets in these drawers.)" + }) or (accessor.plot < 3 and ({ + "(Now's not the time for souvenirs.)" + }) or ({ + "(Toys and trinkets.)" + })) end, dresser2 = function() return accessor.plot < 2 and ({ -"(Nothing but antenna warmers in these drawers.)" -}) or (accessor.plot < 3 and ({ -"(Antenna warmers won't help me reach the platform.)" -}) or ({ -"(Antenna warmers.)" -})) + "(Nothing but antenna warmers in these drawers.)" + }) or (accessor.plot < 3 and ({ + "(Antenna warmers won't help me reach the platform.)" + }) or ({ + "(Antenna warmers.)" + })) end, book = function() return accessor.plot < 3 and ({ ({ -"(\"The Jensen Paradox...\")", -"(\"Surface Tension...\")", -"(\"Astrae Symphonia...\")" -})[accessor.choice_home_book + 1], accessor.plot < 2 and "(Not a bad choice.)" or "(... part of this story might be coming true.)" }) or + "(\"The Jensen Paradox...\")", + "(\"Surface Tension...\")", + "(\"Astrae Symphonia...\")" + })[accessor.choice_home_book + 1], accessor.plot < 2 and "(Not a bad choice.)" or "(... part of this story might be coming true.)" }) or ({ { -"(\"The Jensen Paradox.\")" -}, { -"(\"Surface Tension.\")" -}, { -"(\"Astrae Symphonia.\")" -} })[accessor.choice_home_book + 1] + "(\"The Jensen Paradox.\")" + }, { + "(\"Surface Tension.\")" + }, { + "(\"Astrae Symphonia.\")" + } })[accessor.choice_home_book + 1] end, cutetunnel = function() return accessor.plot < 2 and ({ -"(Painting of a wild arkette staring down a corridor.)" -}) or ({ -"(... you and me both, little arkette.)" -}) + "(Painting of a wild arkette staring down a corridor.)" + }) or ({ + "(... you and me both, little arkette.)" + }) end, toy = function() return accessor.plot < 2 and ({ -"(A perpetual motion toy?)", -"(Wonder how long it's been going...)" -}) or (accessor.plot < 3 and ({ -"(Wait, wasn't this toy doing something earlier?)" -}) or ({ -"(A simple toy.)" -})) + "(A perpetual motion toy?)", + "(Wonder how long it's been going...)" + }) or (accessor.plot < 3 and ({ + "(Wait, wasn't this toy doing something earlier?)" + }) or ({ + "(A simple toy.)" + })) end, plant = function() return { "(Baby boka tree.)", unpack(accessor.plot < 2 and ({ -"(Seems like it's almost ready to be planted...)" -}) or (accessor.plot < 3 and ({ -"(Shame there's nowhere to plant this.)" -}) or ({}))) + "(Seems like it's almost ready to be planted...)" + }) or (accessor.plot < 3 and ({ + "(Shame there's nowhere to plant this.)" + }) or ({}))) } end, shovel = function() return accessor.item_bucket and ({ -"(A rusty shovel with a great big hole in it.)" -}) or + "(A rusty shovel with a great big hole in it.)" + }) or (accessor.plot < 3 and (accessor.item_cover and accessor.item_scissors and not accessor.item_crowbar and ({ -"(A rusty shovel. I'd use this as an anchor...)", -"(... if it wasn't such a piece of junk.)" -}) or ({ -"(A rusty shovel. Looks like it's about to fall apart.)" -})) or ({ -"(Useless shovel.)" -})) + "(A rusty shovel. I'd use this as an anchor...)", + "(... if it wasn't such a piece of junk.)" + }) or ({ + "(A rusty shovel. Looks like it's about to fall apart.)" + })) or ({ + "(Useless shovel.)" + })) end, broombox = function() return accessor.item_rock and ({ -"(An old broom with a broken handle.)" -}) or ({ -"(An old broom and some fancy rocks. The broom's handle is broken.)" -}) + "(An old broom with a broken handle.)" + }) or ({ + "(An old broom and some fancy rocks. The broom's handle is broken.)" + }) end, dresserdrawer1 = { -"(An empty dresser drawer.)" -}, + "(An empty dresser drawer.)" + }, dresserdrawer2 = { -"(An empty dresser drawer. It's stuck open.)" -}, + "(An empty dresser drawer. It's stuck open.)" + }, dresserpaper = function() return { "\"After much deliberation, we have come to an agreement.\"", @@ -928,21 +928,21 @@ local function textGen(pager) end, mattress = function() return accessor.plot < 3 and ({ -"(Don't think this mattress has ever been slept on.)" -}) or ({ -"(Unused mattress.)" -}) + "(Don't think this mattress has ever been slept on.)" + }) or ({ + "(Unused mattress.)" + }) end, bin = { -"(An empty bin with a cleaning towel draped over the side.)" -}, + "(An empty bin with a cleaning towel draped over the side.)" + }, bedframe = function() return accessor.plot < 2 and ({ -"(A metal bed frame. The most dangerous object in the universe.)" -}) or ({ -"(A metal bed frame, with one side removed.)", -"(If anything, this makes it MORE dangerous...)" -}) + "(A metal bed frame. The most dangerous object in the universe.)" + }) or ({ + "(A metal bed frame, with one side removed.)", + "(If anything, this makes it MORE dangerous...)" + }) end, fusebox = { "(配电箱发出了微弱的电流声。)" @@ -1120,8 +1120,8 @@ local function textGen(pager) return accessor.plot < 1 and ({ "(食品柜。囤了这么多粮食,\n世界末日来了\n你也能镇定自若。)" }) or (accessor.plot < 2 and ({ -"(Pantry food. My worst nightmare.)" -}) or ({ + "(Pantry food. My worst nightmare.)" + }) or ({ "(真空包装的永恒保质期。)" })) end, @@ -1153,12 +1153,12 @@ local function textGen(pager) unpack(not accessor.event_home_secret and ({ "(Wait. A lockbox?)", accessor.event_home_bookshelf == 0.1 and "(I swear there was a box like that in the living room somewhere...)" or "(Was there a lockbox around here somewhere?)" }) or (accessor.event_home_bookshelf < 1 and ({ -"(... still haven't found the lockbox.)" -}) or (accessor.event_home_bookshelf < 2 and ({ -"(... I've found the lockbox, but I can't reach it...)" -}) or ({ -"(... weird how a library card needed a locked box.)" -})))) + "(... still haven't found the lockbox.)" + }) or (accessor.event_home_bookshelf < 2 and ({ + "(... I've found the lockbox, but I can't reach it...)" + }) or ({ + "(... weird how a library card needed a locked box.)" + })))) ) ____temp_3 = { __TS__SparseArraySpread(____array_2) } end diff --git a/translate/text/zh_CN/inventory.lua b/translate/text/zh_CN/inventory.lua index b855433..dc4497b 100644 --- a/translate/text/zh_CN/inventory.lua +++ b/translate/text/zh_CN/inventory.lua @@ -15,16 +15,16 @@ local function textGen() return { "(A pail. Good for collecting things.)", unpack(accessor.event_home_bucket and ({ -"(Apart from rainwater, apparently.)" -}) or ({})) + "(Apart from rainwater, apparently.)" + }) or ({})) } end }, item_card = { name = "Library Card", info = { -"(A library card with a blued, jeweled strip.)" -} + "(A library card with a blued, jeweled strip.)" + } }, item_drill = { name = "一把电钻", @@ -52,8 +52,8 @@ local function textGen() "(走你。)" }, info2a = { -"(A worn plushie.)" -}, + "(A worn plushie.)" + }, info2b = { "拿下来", "算了" diff --git a/translate/text/zh_CN/redleaf.lua b/translate/text/zh_CN/redleaf.lua index 1f17037..ce2ff93 100644 --- a/translate/text/zh_CN/redleaf.lua +++ b/translate/text/zh_CN/redleaf.lua @@ -294,85 +294,85 @@ local function textGen(pager) name = function() return accessor.item_glove1 and accessor.item_glove2 and "Work Gloves" or "Work Glove" end, info = function() return accessor.item_glove1 and accessor.item_glove2 and ({ -"(An insulated glove. Good for handling dangerous items.)" -}) or ({ -"(A pair of insulated gloves. Good for handling dangerous items.)" -}) + "(An insulated glove. Good for handling dangerous items.)" + }) or ({ + "(A pair of insulated gloves. Good for handling dangerous items.)" + }) end }, item_boots = { name = function() return accessor.item_boot1 and accessor.item_boot2 and "Work Boots" or "Work Boot" end, info = function() return accessor.item_boot1 and accessor.item_boot2 and ({ -"(A sturdy, high-topped boot. Good for traversing hazards.)" -}) or ({ -"(A pair of sturdy, high-topped boots. Good for traversing hazards.)" -}) + "(A sturdy, high-topped boot. Good for traversing hazards.)" + }) or ({ + "(A pair of sturdy, high-topped boots. Good for traversing hazards.)" + }) end }, ponder_arrival = pager:create(0, { -"...", -"(The forest is beautiful...)" -}, { -"...", -"(I have to keep going...)", -"(Standing around won't get me any closer to home.)" -}), + "...", + "(The forest is beautiful...)" + }, { + "...", + "(I have to keep going...)", + "(Standing around won't get me any closer to home.)" + }), ponder_chase = pager:create(0, { -"(If I could just talk to them...)", -"(... there's no time to lose!)" -}, { -"(... I've got to catch up to them!)" -}), + "(If I could just talk to them...)", + "(... there's no time to lose!)" + }, { + "(... I've got to catch up to them!)" + }), ponder_gate = { -"...", -"(I need a closer look at that gate...)" -}, + "...", + "(I need a closer look at that gate...)" + }, ponder_shock = function() return { "(... hm...)", unpack(accessor.item_glove1 and accessor.item_glove2 and accessor.item_boot1 and accessor.item_boot2 and ({ -"(I have these gloves... and these boots...)", -"(Oh! I can use these to climb the gate safely!)" -}) or + "(I have these gloves... and these boots...)", + "(Oh! I can use these to climb the gate safely!)" + }) or (accessor.item_glove1 and accessor.item_glove2 and ((accessor.item_boot1 or accessor.item_boot2) and ({ -"(I have these gloves... and this boot...)", -"(With one more boot, I could climb the gate safely.)" -}) or ({ -"(I have these gloves...)", -"(If I had something to protect my feet, I could climb the gate safely.)" -})) or (accessor.item_boot1 and accessor.item_boot2 and ((accessor.item_glove1 or accessor.item_glove2) and ({ -"(I have these boots... and this glove...)", -"(With one more glove, I could climb the gate safely.)" -}) or ({ -"(I have these boots...)", -"(If I had something to protect my hands, I could climb the gate safely.)" -})) or ((accessor.item_glove1 or accessor.item_glove2) and ((accessor.item_boot1 or accessor.item_boot2) and ({ -"(I have this glove... and this boot...)", -"(If only I could duplicate them, I could climb the gate safely.)" -}) or ({ -"(I have this glove...)", -"(If I had another glove, and something to protect my feet...)", -"(... I could climb the gate safely.)" -})) or ((accessor.item_boot1 or accessor.item_boot2) and ({ -"(I have this boot...)", -"(If I had another boot, and something to protect my hands...)", -"(... I could climb the gate safely.)" -}) or ({ -"(If I had some extra gear to protect myself...)", -"(... I could climb the gate safely.)" -})))))) + "(I have these gloves... and this boot...)", + "(With one more boot, I could climb the gate safely.)" + }) or ({ + "(I have these gloves...)", + "(If I had something to protect my feet, I could climb the gate safely.)" + })) or (accessor.item_boot1 and accessor.item_boot2 and ((accessor.item_glove1 or accessor.item_glove2) and ({ + "(I have these boots... and this glove...)", + "(With one more glove, I could climb the gate safely.)" + }) or ({ + "(I have these boots...)", + "(If I had something to protect my hands, I could climb the gate safely.)" + })) or ((accessor.item_glove1 or accessor.item_glove2) and ((accessor.item_boot1 or accessor.item_boot2) and ({ + "(I have this glove... and this boot...)", + "(If only I could duplicate them, I could climb the gate safely.)" + }) or ({ + "(I have this glove...)", + "(If I had another glove, and something to protect my feet...)", + "(... I could climb the gate safely.)" + })) or ((accessor.item_boot1 or accessor.item_boot2) and ({ + "(I have this boot...)", + "(If I had another boot, and something to protect my hands...)", + "(... I could climb the gate safely.)" + }) or ({ + "(If I had some extra gear to protect myself...)", + "(... I could climb the gate safely.)" + })))))) } end, ponder_gear = { -"(... I think, with this extra gear I've found...)", -"(... climbing the gate should be safe.)" -}, + "(... I think, with this extra gear I've found...)", + "(... climbing the gate should be safe.)" + }, ponder_unlock = { -"(... hm.)", -"(Better get going before someone closes the gate again.)" -}, + "(... hm.)", + "(Better get going before someone closes the gate again.)" + }, ponder_factory = pager:create(0, { "(...让我猜的话,\n这儿看着像座糖浆厂。)", "(不太确定,反正肯定是某种工厂。)", @@ -389,25 +389,25 @@ local function textGen(pager) pipewerx3 = "(Arrange the pipes to connect\nthe two endpoints.)", pipewerx4 = "(Press [X] to exit.)", system1 = { -"Platform Engaged.", -"Selecting Mode: Transit", -"Selecting Destination: CRIMSON", -"Transit In Progress..." -}, + "Platform Engaged.", + "Selecting Mode: Transit", + "Selecting Destination: CRIMSON", + "Transit In Progress..." + }, system2 = "`~1!2@3#4$5%6^7&8*9(0)-_=+[]\\|;:'\",<.>/?", arrival1 = { "..." }, arrival2 = { -"(It's the same as before...)", -"(... guess I... didn't really know what I was expecting.)" -}, + "(It's the same as before...)", + "(... guess I... didn't really know what I was expecting.)" + }, arrival3 = { -"Whoa." -}, + "Whoa." + }, arrival4 = { -"That's big." -}, + "That's big." + }, arrival5 = { "(哎,说到底,这儿不是家啊。)", "(起码... 不用困在怪房子里了。)", @@ -418,174 +418,174 @@ local function textGen(pager) "(...但愿我能找到把伞吧。)" }, stowaway1 = { -"...", -"H... hello?" -}, + "...", + "H... hello?" + }, stowaway2 = { -"Wait, don't go! I..." -}, + "Wait, don't go! I..." + }, stowaway3 = { -"... get back here!" -}, + "... get back here!" + }, stowaway4 = { -"Hey, you!" -}, + "Hey, you!" + }, stowaway5 = { -"(There's nothing to be afraid of...)" -}, + "(There's nothing to be afraid of...)" + }, stowaway6 = { -"No, no, no!" -}, + "No, no, no!" + }, stowaway7 = { -"(... slam the gate on me, why don't you...)" -}, + "(... slam the gate on me, why don't you...)" + }, bushitem1 = { -"(There's something buried in here...)", -"Pick it up?" -}, + "(There's something buried in here...)", + "Pick it up?" + }, bushitem2 = { -"Yes", -"No" -}, + "Yes", + "No" + }, glover0 = "Work Glove", glover1 = { -"(A glove!)", -"{color=0xa289dc}Dysu{color=0xffffff} got the Work Glove.", -"(Feels... tough.)" -}, + "(A glove!)", + "{color=0xa289dc}Dysu{color=0xffffff} got the Work Glove.", + "(Feels... tough.)" + }, glover2 = { -"(Another glove!)", -"{color=0xa289dc}Dysu{color=0xffffff} got the Work Glove." -}, + "(Another glove!)", + "{color=0xa289dc}Dysu{color=0xffffff} got the Work Glove." + }, glovey1 = { -"{color=0xa289dc}Dysu{color=0xffffff} got the Work Glove.", -"(A glove!)", -"(Feels... tough.)" -}, + "{color=0xa289dc}Dysu{color=0xffffff} got the Work Glove.", + "(A glove!)", + "(Feels... tough.)" + }, glovey2 = { -"{color=0xa289dc}Dysu{color=0xffffff} got the Work Glove.", -"(Another glove!)" -}, + "{color=0xa289dc}Dysu{color=0xffffff} got the Work Glove.", + "(Another glove!)" + }, bootey1 = { -"{color=0xa289dc}Dysu{color=0xffffff} got the Work Boot.", -"(... a single boot.)", -"(Surely there's another one around, right?)" -}, + "{color=0xa289dc}Dysu{color=0xffffff} got the Work Boot.", + "(... a single boot.)", + "(Surely there's another one around, right?)" + }, bootey2 = { -"{color=0xa289dc}Dysu{color=0xffffff} got the Work Boot.", -"(Ah, there it is.)" -}, + "{color=0xa289dc}Dysu{color=0xffffff} got the Work Boot.", + "(Ah, there it is.)" + }, booter0 = "Work Boot", booter1 = { -"(... a single boot.)", -"{color=0xa289dc}Dysu{color=0xffffff} got the Work Boot.", -"(Surely there's another one around, right?)" -}, + "(... a single boot.)", + "{color=0xa289dc}Dysu{color=0xffffff} got the Work Boot.", + "(Surely there's another one around, right?)" + }, booter2 = { -"(Ah, there it is.)", -"{color=0xa289dc}Dysu{color=0xffffff} got the Work Boot." -}, + "(Ah, there it is.)", + "{color=0xa289dc}Dysu{color=0xffffff} got the Work Boot." + }, drillie1 = pager:create(0, { -"(I could just use this drill to open the gate...)", -"(... but in doing so, its batteries would be completely drained.)", -"(Would I be able to replace them?)" -}, { -"(Should I use the drill to open the gate, or save it for later?)" -}), + "(I could just use this drill to open the gate...)", + "(... but in doing so, its batteries would be completely drained.)", + "(Would I be able to replace them?)" + }, { + "(Should I use the drill to open the gate, or save it for later?)" + }), drillie2 = { -"Use The Drill", -"Find Another Way" -}, + "Use The Drill", + "Find Another Way" + }, drillie3 = { "..." }, drillie4 = { -"(... that did the trick.)" -}, + "(... that did the trick.)" + }, gateclimb0 = "Gate", gateclimb1 = { -"...", -"(Ah! Of course!)", -"(I'll just climb over it!)" -}, + "...", + "(Ah! Of course!)", + "(I'll just climb over it!)" + }, gateclimb2a = { -"... ugh..." -}, + "... ugh..." + }, gateclimb2b = { -"(... guess I'll have to find something else.)" -}, + "(... guess I'll have to find something else.)" + }, gateclimb2c = { -"(Wait. I have these gloves and boots...)", -"(I could try again with the extra gear to protect myself.)", -"Climb over the gate?" -}, + "(Wait. I have these gloves and boots...)", + "(I could try again with the extra gear to protect myself.)", + "Climb over the gate?" + }, gateclimb3 = { -"(It's electrically charged.)" -}, + "(It's electrically charged.)" + }, gateclimb4 = { -"(Can't climb over the gate without extra gear.)" -}, + "(Can't climb over the gate without extra gear.)" + }, gateclimb5 = pager:create( 0, function() local ____array_0 = __TS__SparseArrayNew(unpack(accessor.event_redleaf_gateclimb == 2 and ({ -"(I have the extra gear I need to protect myself.)" -}) or ({ -"(Wait. I have these gloves and boots now...)", -"(I could try again with the extra gear to protect myself.)" -}))) + "(I have the extra gear I need to protect myself.)" + }) or ({ + "(Wait. I have these gloves and boots now...)", + "(I could try again with the extra gear to protect myself.)" + }))) __TS__SparseArrayPush(____array_0, "Climb over the gate?") return { __TS__SparseArraySpread(____array_0) } end, { -"Climb over the gate?" -} + "Climb over the gate?" + } ), gateclimb6 = { -"Yes", -"No" -}, + "Yes", + "No" + }, gateclimb7 = { -"(Third climb's the charm. placeholder :3)" -}, + "(Third climb's the charm. placeholder :3)" + }, gateclimb8 = { -"(Alright!)" -}, + "(Alright!)" + }, gateclimb9 = { -"(Is this... a factory?)" -}, + "(Is this... a factory?)" + }, gateclimb10 = { -"(Time to find out what that rascal was up to.)" -} + "(Time to find out what that rascal was up to.)" + } }, trivia = { tree = { -"It's a tree! (placeholder :3)" -}, + "It's a tree! (placeholder :3)" + }, barrel = { -"Barrel barrel barrel- (placeholder :3)" -}, + "Barrel barrel barrel- (placeholder :3)" + }, lid = { -"A lid. (placeholder :3)" -}, + "A lid. (placeholder :3)" + }, facsign = { -"\"REDLEAF INDUSTRIES\"\n\"Factory Grounds Nearby\"" -}, + "\"REDLEAF INDUSTRIES\"\n\"Factory Grounds Nearby\"" + }, sapsign = { -"\"Kotokura Syrup Exports\"\n\"Redleaf Industries\"" -}, + "\"Kotokura Syrup Exports\"\n\"Redleaf Industries\"" + }, carsign = pager:create(0, { -"\"Danger: Industrial Vehicles\"", -"(Guess I should be careful...)" -}, { -"\"Danger: Industrial Vehicles\"" -}), + "\"Danger: Industrial Vehicles\"", + "(Guess I should be careful...)" + }, { + "\"Danger: Industrial Vehicles\"" + }), powertower = { -"A powertower? (placeholder :3)" -}, + "A powertower? (placeholder :3)" + }, placeholder2 = pager:create(0, { -"placeholder :3" -}) + "placeholder :3" + }) }, trivia_tooltip = { tree = "Tree",