Merge remote-tracking branch 'origin/development' into development

This commit is contained in:
Alexander Yakovlev 2024-01-13 12:27:16 +06:00
commit a76b13b7cd
3 changed files with 22 additions and 2 deletions

View file

@ -109,7 +109,8 @@ Humanity: {link("-", "hum_minus")} {humanity} {link("+", "hum_plus")}
You have {attrpoints} points left.
+ Next -> step2
+ {attrpoints == 0} Next [] -> step2
+ hideme -> step1
=== step2
@ -119,7 +120,7 @@ Choose your magic type.
+ Writing Magic<st>Manifest words into reality. If you write BOOM, it's an explosion; if you write EXIT, it's a new door.</st>[]
~ magic = "writing"
-> step_skills
+ Comic Magic<st>You run on comic logic.</st>
+ Comic Magic<st>If you need a hammer, you can just turn your arm into one.</st>
~ magic = "comic"
-> step_skills

View file

@ -60,6 +60,24 @@
//~ attr = LIST_MIN(nextDice)
~ return true
=== function inverse (attr)
{ attr:
- d2:
~ return d20
- d4:
~ return d12
- d6:
~ return d10
- d8:
~ return d8
- d10:
~ return d6
- d12:
~ return d4
- d20:
~ return d2
}
// Wrapper for raising an attribute with taking skill points.
=== function plus (ref attr)
{ attrpoints == 0:

View file

@ -134,6 +134,7 @@ function continueToNextChoice (s: any) {
for (j = 0, len = ref.length; j < len; j++) {
choice = ref[j];
let text = transform(choice.text)
if (text === 'hideme') continue;
if (mode === 'parser') {
text = text.replace("> ", "")
let verb = text;