grey cli hints in level description

This commit is contained in:
bleeptrack 2021-02-11 11:19:22 +01:00
parent 328122823b
commit 0781649227
2 changed files with 6 additions and 0 deletions

View file

@ -7,6 +7,9 @@ You've been accepted to time travel school! Yay! It's your first day! Your teach
"To do anything with a time machine, you first need to initialize it! Go ahead, try it!" "To do anything with a time machine, you first need to initialize it! Go ahead, try it!"
[cli]
Instead of playing a card, you can slo type 'git init' directly into your terminal!
[setup] [setup]
rm -rf .git rm -rf .git

View file

@ -28,6 +28,9 @@ func load(path):
description = monospace_regex.sub(description, "\n [code]$1[/code]", true) description = monospace_regex.sub(description, "\n [code]$1[/code]", true)
description = description.split("---") description = description.split("---")
var cli_hints = "\n\n[color=#787878]"+config.get("cli", "")+"[/color]"
description[0] = description[0] + cli_hints
congrats = config.get("congrats", "Good job, you solved the level!\n\nFeel free to try a few more things or click 'Next level'.") congrats = config.get("congrats", "Good job, you solved the level!\n\nFeel free to try a few more things or click 'Next level'.")
cards = Array(config.get("cards", "").split(" ")) cards = Array(config.get("cards", "").split(" "))
if cards == [""]: if cards == [""]: