Skip to content

Commit 3d378d0

Browse files
committed
Explain what cards do in their descriptions
1 parent 56178f6 commit 3d378d0

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

assets/config/card.ron

+24-21
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@
6666
"fermata": CardIcon(texture: "image/card/icon/fermata.png"),
6767
"bass_clef": CardIcon(texture: "image/card/icon/bass_clef.png"),
6868
},
69-
// TODO: Write descriptions.
69+
// TODO: "contact damage" -> something more thematic?
7070
card_map: {
7171
"step": Card(
7272
name: "Simple Step",
73-
description: "Fancy footwork starts here.",
73+
description: "Step forwards for 8 contact damage.\n\n\"fancy footwork starts here\"",
7474
background: "blue",
7575
icon: "step",
7676
max_level: 4,
@@ -89,7 +89,7 @@
8989
// TODO: This would fit better as Breakdance if I could draw the icon for it :zany_face:
9090
"splits": Card(
9191
name: "Splits",
92-
description: "Can a blobo do the splits?",
92+
description: "Duck in place for 45 contact damage.\n\n\"can a blobo do the splits?\"",
9393
background: "blue",
9494
icon: "splits",
9595
weight: 0.3,
@@ -106,7 +106,7 @@
106106
),
107107
"ballet": Card(
108108
name: "Pirouette",
109-
description: "This card is pirouette good.",
109+
description: "Leap forwards for 12 contact damage.\n\n\"this card is pirouette good\"",
110110
background: "blue",
111111
icon: "ballet",
112112
min_level: 3,
@@ -124,7 +124,7 @@
124124
),
125125
"cartwheel": Card(
126126
name: "Cartwheel",
127-
description: "Round and round, let the city turn!",
127+
description: "Flip to the left for 40 contact damage.\n\n\"round and round, let the city turn!\"",
128128
background: "blue",
129129
icon: "cartwheel",
130130
min_level: 5,
@@ -142,7 +142,8 @@
142142
),
143143
"moonwalk": Card(
144144
name: "Moonwalk",
145-
description: "That's one small step for man...",
145+
description: "Slide backwards for 60 contact damage.\n\n\"that's one small step for man...\"",
146+
// vscode-ron syntax highlighting breaks without this: '
146147
background: "blue",
147148
icon: "moonwalk",
148149
min_level: 7,
@@ -160,7 +161,7 @@
160161

161162
"eighth_note": Card(
162163
name: "Eighth Note",
163-
description: "",
164+
description: "Sing an eighth note.",
164165
background: "pink",
165166
icon: "eighth_note",
166167
max_level: 2,
@@ -173,7 +174,7 @@
173174
),
174175
"quarter_note": Card(
175176
name: "Quarter Note",
176-
description: "",
177+
description: "Sing a quarter note.",
177178
background: "pink",
178179
icon: "quarter_note",
179180
max_level: 4,
@@ -186,7 +187,7 @@
186187
),
187188
"half_note": Card(
188189
name: "Half Note",
189-
description: "",
190+
description: "Sing a half note.",
190191
background: "pink",
191192
icon: "half_note",
192193
min_level: 2,
@@ -200,7 +201,7 @@
200201
),
201202
"whole_note": Card(
202203
name: "Whole Note",
203-
description: "",
204+
description: "Sing a whole note.",
204205
background: "pink",
205206
icon: "whole_note",
206207
min_level: 4,
@@ -213,7 +214,7 @@
213214
),
214215
"pair": Card(
215216
name: "Pair",
216-
description: "Two beats, rapid fire!",
217+
description: "Sing a pair of eighth notes.\n\n\"two beats, rapid fire!\"",
217218
background: "pink",
218219
icon: "pair",
219220
max_level: 4,
@@ -227,7 +228,7 @@
227228
),
228229
"triplet": Card(
229230
name: "Triplet",
230-
description: "... Three beats, rapid fire!",
231+
description: "Sing a triplet of eighth notes.\n\n\"...three beats, rapid fire!\"",
231232
background: "pink",
232233
icon: "triplet",
233234
max_level: 4,
@@ -242,7 +243,8 @@
242243
),
243244
"cacophony": Card(
244245
name: "Cacophony",
245-
description: "How's my volume?",
246+
description: "Sing a whole bunch of eighth notes.\n\n\"how's my volume?\"",
247+
// vscode-ron syntax highlighting breaks without this: '
246248
background: "pink",
247249
icon: "cacophony",
248250
min_level: 4,
@@ -261,7 +263,7 @@
261263
),
262264
"major_chord": Card(
263265
name: "Major Chord",
264-
description: "This card strikes a major chord :)",
266+
description: "Sing a triad of whole notes.\n\n\"this card strikes a major chord :)\"",
265267
background: "pink",
266268
icon: "chord",
267269
min_level: 6,
@@ -277,7 +279,8 @@
277279
),
278280
"cluster_chord": Card(
279281
name: "Cluster Chord",
280-
description: "It's getting a little clusterphobic in here.",
282+
description: "Sing a tetrad of whole notes.\n\n\"it's getting clusterphobic in here...\"",
283+
// vscode-ron syntax highlighting breaks without this: '
281284
background: "pink",
282285
icon: "cluster",
283286
min_level: 8,
@@ -295,29 +298,29 @@
295298

296299
"eighth_rest": Card(
297300
name: "Eighth Rest",
298-
description: "Heal a little bit",
301+
description: "Heal a little bit.",
299302
background: "green",
300303
icon: "eighth_rest",
301304
max_level: 4,
302305

303306
action: Heal,
304-
action_modifier: CardActionModifier(heal_flat: 5, immunity: 0.7),
307+
action_modifier: CardActionModifier(heal_flat: 10, immunity: 0.7),
305308
),
306309
"quarter_rest": Card(
307310
name: "Quarter Rest",
308-
description: "Heal a decent amount",
311+
description: "Heal a good amount.",
309312
background: "green",
310313
icon: "quarter_rest",
311314
min_level: 4,
312315
max_level: 8,
313316
weight: 0.7,
314317

315318
action: Heal,
316-
action_modifier: CardActionModifier(heal_flat: 25, immunity: 0.8),
319+
action_modifier: CardActionModifier(heal_flat: 30, immunity: 0.8),
317320
),
318321
"half_rest": Card(
319322
name: "Half Rest",
320-
description: "Heal 25% health",
323+
description: "Heal for 25%.",
321324
background: "green",
322325
icon: "half_rest",
323326
min_level: 6,
@@ -329,7 +332,7 @@
329332
),
330333
"whole_rest": Card(
331334
name: "Whole Rest",
332-
description: "Heal 50% health",
335+
description: "Heal for 50%.",
333336
background: "green",
334337
icon: "whole_rest",
335338
min_level: 8,

src/ui/tooltip.rs

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ pub(super) fn plugin(app: &mut App) {
1010
NodeBundle {
1111
style: Style {
1212
position_type: PositionType::Absolute,
13-
max_width: Vw(40.0),
1413
padding: UiRect::all(Px(8.0)),
1514
..default()
1615
},

0 commit comments

Comments
 (0)