Sign in
mod

Goals

by Potluck · version 1 · Checked for all ages

Things worth doing, to light your way through the island: dig your first ore, smelt it, cook and brew, trade with a village, wake the Gloam, cross the mirror into the Long Dusk. Open Goals from the pause menu to see what's done and what's next; each one done says so with a chime, and gives XP in survival. Other creations can list goals of their own with world.goals.

1--!strict
2-- The base game's goals. Each says how it's done with one of:
3-- used / broke / placed = { names } a player used, broke or put down one
4-- any = { names } carries at least `kinds` (1) of these,
5-- each at least `count` (1) of them
6-- relic = true carries any item that is a relic
7-- biome = "desert" stands in that kind of land
8-- place = "dusk" is in that place (home or dusk)
9-- below / above = y stands lower or higher than that
10-- level = n has reached that level
11-- A name starting with * matches the end of one: "* bed" is any color of bed.
12-- `after` is the goal this one comes after; `xp` is what it gives.
13
14export type Goal = {
15 id: string,
16 title: string,
17 text: string,
18 group: string,
19 after: string?,
20 xp: number?,
21 used: { string }?,
22 broke: { string }?,
23 placed: { string }?,
24 any: { string }?,
25 kinds: number?,
26 count: number?,
27 relic: boolean?,
28 biome: string?,
29 place: string?,
30 below: number?,
31 above: number?,
32 level: number?,
33}
34
35local FIRST = "First steps"
36local MINING = "Mining"
37local SMITH = "Smithing and cooking"
38local FARM = "Farms and villages"
39local BREW = "Brewing"
40local DEEP = "The deep"
41local GLOAM = "The Gloam"
42local DUSK = "The Long Dusk"
43local WILD = "Exploring"
44
45-- every brew the Brewing creation makes
46local BREWS = {
47 "Mending tea", "Hearth broth", "Digger's tonic", "Fireheart draft", "Stoneheart tonic", "Starlight tea", "Cat's-eye tonic",
48 "Springheel tonic", "Tidewater tonic", "Featherfall tea", "Cinderward tonic", "Clover tea", "Quickstep tea", "Berry cordial",
49 "Mender's draft", "Bruiser's brew", "Delver's draft", "Ironbark tonic", "Diver's brew", "Owl's brew", "Scholar's tea",
50 "Mountain goat's brew", "Gilded clover tea", "Hearth cider", "Hero's cordial",
51}
52
53local goals: { Goal } = {
54 -- first steps
55 { id = "timber", group = FIRST, title = "Timber", text = "Cut down a tree and pick up a log.", any = { "* log" }, xp = 5 },
56 { id = "table", group = FIRST, title = "Hands on", text = "Make a Table from planks, put it down and use it.", used = { "Table" }, after = "timber", xp = 5 },
57 { id = "wood_pick", group = FIRST, title = "Wooden tools", text = "Make a wooden pickaxe at a table.", any = { "Wooden pickaxe" }, after = "table", xp = 5 },
58 { id = "stone_pick", group = FIRST, title = "Stone age", text = "Mine stone and make a stone pickaxe.", any = { "Stone pickaxe" }, after = "wood_pick", xp = 10 },
59 { id = "torch", group = FIRST, title = "Let there be light", text = "Make a torch from coal and planks.", any = { "Torch" }, after = "table", xp = 5 },
60 { id = "chest", group = FIRST, title = "Somewhere to put it", text = "Put down a chest.", placed = { "Chest" }, after = "table", xp = 5 },
61 { id = "bed", group = FIRST, title = "Sleep tight", text = "Use a bed.", used = { "* bed" }, after = "table", xp = 5 },
62 { id = "level5", group = FIRST, title = "Getting the hang of it", text = "Reach level 5.", level = 5, xp = 10 },
63 { id = "level15", group = FIRST, title = "Old hand", text = "Reach level 15.", level = 15, after = "level5", xp = 30 },
64 { id = "relic", group = FIRST, title = "Something old", text = "Find a relic: out in the hills, in an old chest or deep in the stone. Hazel will want to see it.", relic = true, xp = 15 },
65
66 -- mining
67 { id = "coal", group = MINING, title = "Black rock", text = "Break coal ore with a pickaxe.", broke = { "Coal ore" }, after = "stone_pick", xp = 5 },
68 { id = "copper", group = MINING, title = "Copper tops", text = "Mine copper ore.", broke = { "Copper ore" }, after = "coal", xp = 5 },
69 { id = "iron", group = MINING, title = "Hard to come by", text = "Mine iron ore. It takes a copper pickaxe.", broke = { "Iron ore" }, after = "copper", xp = 10 },
70 { id = "gold", group = MINING, title = "All that glitters", text = "Mine gold ore.", broke = { "Gold ore" }, after = "iron", xp = 10 },
71 { id = "crystal", group = MINING, title = "Crystal clear", text = "Mine crystal ore.", broke = { "Crystal ore" }, after = "iron", xp = 15 },
72 { id = "moonsilver_ore", group = MINING, title = "Moonlit seams", text = "Mine moonsilver ore, deep down. Mind the Stone Sentinels that guard it.", broke = { "Moonsilver ore" }, after = "crystal", xp = 25 },
73 { id = "old_chest", group = MINING, title = "Old workings", text = "Open an old chest in the old workings underground.", used = { "Old chest" }, after = "coal", xp = 10 },
74 { id = "geode", group = MINING, title = "Glimmer", text = "Find a crystal bud in a geode and break it.", broke = { "Crystal bud" }, after = "crystal", xp = 15 },
75
76 -- smithing and cooking
77 { id = "furnace", group = SMITH, title = "Fire it up", text = "Use a furnace, or put a pot over a campfire.", used = { "Furnace", "Lit furnace", "Campfire" }, after = "coal", xp = 5 },
78 { id = "copper_ingot", group = SMITH, title = "Smelter", text = "Smelt a copper ingot.", any = { "Copper ingot" }, after = "furnace", xp = 5 },
79 { id = "iron_ingot", group = SMITH, title = "Acquire hardware", text = "Smelt an iron ingot.", any = { "Iron ingot" }, after = "copper_ingot", xp = 10 },
80 { id = "anvil", group = SMITH, title = "At the anvil", text = "Use an anvil.", used = { "Anvil" }, after = "iron_ingot", xp = 10 },
81 { id = "iron_pick", group = SMITH, title = "Iron will", text = "Make an iron pickaxe.", any = { "Iron pickaxe" }, after = "anvil", xp = 15 },
82 { id = "iron_armor", group = SMITH, title = "Suit up", text = "Carry an iron helmet, coat, leggings and boots.", any = { "Iron helmet", "Iron coat", "Iron leggings", "Iron boots" }, kinds = 4, after = "anvil", xp = 25 },
83 { id = "moonsilver_ingot", group = SMITH, title = "Silver in the dark", text = "Smelt a moonsilver ingot.", any = { "Moonsilver ingot" }, after = "iron_ingot", xp = 20 },
84 { id = "moonsilver_pick", group = SMITH, title = "Moonsilver pickaxe", text = "Make the best pickaxe there is.", any = { "Moonsilver pickaxe" }, after = "moonsilver_ingot", xp = 30 },
85 { id = "cooking_pot", group = SMITH, title = "What's cooking", text = "Use a cooking pot.", used = { "Cooking pot" }, after = "furnace", xp = 5 },
86 { id = "bread", group = SMITH, title = "Daily bread", text = "Bake bread.", any = { "Bread" }, after = "furnace", xp = 5 },
87 { id = "charms", group = SMITH, title = "A little luck", text = "Use a charm table.", used = { "Charm table" }, after = "iron_ingot", xp = 10 },
88
89 -- farms and villages
90 { id = "seeds", group = FARM, title = "Green thumb", text = "Plant a crop: seeds, a potato or a carrot in farmland.", placed = { "Wheat shoots", "Carrot shoots", "Potato shoots", "Bean shoots", "Pumpkin vine" }, xp = 5 },
91 { id = "harvest", group = FARM, title = "Harvest time", text = "Pick a pumpkin, wheat or berries.", any = { "Pumpkin", "Wheat", "Berries", "Potatoes", "Beans" }, after = "seeds", xp = 10 },
92 { id = "fish", group = FARM, title = "Gone fishing", text = "Catch a fish.", any = { "Raw fish", "Cooked fish" }, xp = 10 },
93 { id = "beads", group = FARM, title = "First beads", text = "Sell something to a villager for beads.", any = { "Beads" }, xp = 10 },
94 { id = "rich", group = FARM, title = "Pockets full of beads", text = "Carry 40 beads.", any = { "Beads" }, count = 40, after = "beads", xp = 20 },
95 { id = "honey", group = FARM, title = "Busy bees", text = "Take honey from a beehive.", any = { "Honey" }, xp = 10 },
96 { id = "saddle", group = FARM, title = "Giddy up", text = "Win a pony's trust and carry a saddle.", any = { "Saddle" }, xp = 10 },
97
98 -- brewing
99 { id = "vial", group = BREW, title = "Glassware", text = "Carry a glass vial.", any = { "Glass vial" }, after = "furnace", xp = 5 },
100 { id = "first_brew", group = BREW, title = "Local brewery", text = "Brew your first drink in a clay pot over a heat.", any = BREWS, after = "vial", xp = 10 },
101 { id = "five_brews", group = BREW, title = "A brewer's shelf", text = "Carry five different brews at once.", any = BREWS, kinds = 5, after = "first_brew", xp = 25 },
102
103 -- the deep
104 { id = "cave", group = DEEP, title = "Into the dark", text = "Go below the island's roots, 30 blocks down.", below = -30, xp = 5 },
105 { id = "vault_depth", group = DEEP, title = "Vault country", text = "Go down past 80 blocks below sea level.", below = -80, after = "cave", xp = 15 },
106 { id = "bedrock", group = DEEP, title = "Nearly bedrock", text = "Get within 15 blocks of the bottom of the world.", below = -113, after = "vault_depth", xp = 20 },
107 { id = "sentinel", group = DEEP, title = "Heart of stone", text = "Take a core from a Stone Sentinel.", any = { "Sentinel core" }, after = "cave", xp = 25 },
108
109 -- the Gloam
110 { id = "bell", group = GLOAM, title = "Bell ringer", text = "Make a Moon bell at a workbench.", any = { "Moon bell" }, after = "moonsilver_ingot", xp = 20 },
111 { id = "altar", group = GLOAM, title = "The altar", text = "Find the Gloam's altar under the moonsilver vaults and ring the bell.", used = { "Gloam altar" }, after = "bell", xp = 20 },
112 { id = "heart", group = GLOAM, title = "Beast of the dark", text = "Beat the Gloam and take its heart.", any = { "Gloam's heart" }, after = "altar", xp = 100 },
113 { id = "dawn", group = GLOAM, title = "Dawn breaks", text = "Wear the dawn cloak.", any = { "Dawn cloak" }, after = "heart", xp = 50 },
114
115 -- the Long Dusk
116 { id = "mirror", group = DUSK, title = "Through the glass", text = "Use a dusk mirror.", used = { "Dusk mirror" }, after = "iron_ingot", xp = 20 },
117 { id = "dusk", group = DUSK, title = "The sun stands still", text = "Stand in the Long Dusk.", place = "dusk", after = "mirror", xp = 40 },
118 { id = "sunstone", group = DUSK, title = "A piece of the sun", text = "Mine sunstone in the Glare.", any = { "Sunstone" }, after = "dusk", xp = 25 },
119 { id = "gold_country", group = DUSK, title = "Copper woods", text = "Walk into the Gold, where the sun hangs low.", biome = "gold", after = "dusk", xp = 20 },
120 { id = "long_night", group = DUSK, title = "The Long Night", text = "Walk into the frozen dark at the far end.", biome = "long_night", after = "gold_country", xp = 40 },
121 { id = "evensteel", group = DUSK, title = "Evensteel", text = "Smelt an evensteel ingot.", any = { "Evensteel ingot" }, after = "sunstone", xp = 30 },
122 { id = "evensteel_pick", group = DUSK, title = "Twilight tools", text = "Make an evensteel pickaxe.", any = { "Evensteel pickaxe" }, after = "evensteel", xp = 30 },
123
124 -- exploring
125 { id = "mountain", group = WILD, title = "The high country", text = "Climb a mountain.", biome = "mountain", xp = 10 },
126 { id = "top", group = WILD, title = "On top of the world", text = "Stand 90 blocks above the sea.", above = 90, after = "mountain", xp = 15 },
127 { id = "desert", group = WILD, title = "Dry heat", text = "Cross a desert.", biome = "desert", xp = 10 },
128 { id = "snow", group = WILD, title = "Snow day", text = "Walk through a snowfield.", biome = "snowfield", xp = 10 },
129 { id = "marsh", group = WILD, title = "Soggy boots", text = "Wade into a swamp.", biome = "swamp", xp = 10 },
130 { id = "rainforest", group = WILD, title = "Under the canopy", text = "Walk in the rainforest.", biome = "rainforest", xp = 10 },
131 { id = "reef", group = WILD, title = "Coral gardens", text = "Dive into a coral reef.", biome = "coral_reef", xp = 15 },
132 { id = "badlands", group = WILD, title = "Banded rock", text = "Find the badlands.", biome = "badlands", xp = 10 },
133}
134
135return goals