From 1a3ed74caca2aeda983eea39431b8178cd6c7e05 Mon Sep 17 00:00:00 2001 From: Rachel Lowe <60523642+11BelowStudio@users.noreply.github.com> Date: Fri, 20 Sep 2024 18:46:53 +0100 Subject: [PATCH 1/2] 1.3.5 - QoL improvements + a bugfix for magic users --- CHANGELOG.md | 8 ++++++++ README.md | 6 ++++-- mfile | 2 +- src/triggers/MUDKIP_Mud2/spell_used_autofes.lua | 3 +++ src/triggers/MUDKIP_Mud2/triggers.json | 17 ++++++++++++++++- 5 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 src/triggers/MUDKIP_Mud2/spell_used_autofes.lua diff --git a/CHANGELOG.md b/CHANGELOG.md index 1212050..7689f0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # CHANGELOG +## 1.3.5 + +*20/9/2024* + +* Fixed bug that made MUDKIP not respond to `qs` when using a persona who has magic. +* Added a couple of triggers to (hopefully) update one's stats if after using a spell. +* (I have a persona who has magic again so I've only just noticed and fixed these issues xd) + ## 1.3.4 *16/9/2024* diff --git a/README.md b/README.md index e068349..5fbdf9b 100644 --- a/README.md +++ b/README.md @@ -82,8 +82,10 @@ Consider taking a look at the documentation of muddler if you wish to contribute ## CHANGELOG -* **1.3.4** (`16/9/2024`) - * Found workaround for issue which turned the helpful tooltips on the stamina/magic bars into unusable black rectangles. +* **1.3.5** (`20/9/2024`) + * Fixed bug that made MUDKIP not respond to `qs` when using a persona who has magic. + * Added a couple of triggers to (hopefully) update one's stats after using a spell. + * (I have a persona who has magic again so I've only just noticed and fixed these issues xd) See [CHANGELOG.md](https://github.com/11BelowStudio/MUDKIP_Mud2/blob/main/CHANGELOG.md) for the full changelog. diff --git a/mfile b/mfile index af97acc..611f5ba 100644 --- a/mfile +++ b/mfile @@ -1,6 +1,6 @@ { "package": "MUDKIP_Mud2", - "version": "1.3.4", + "version": "1.3.5", "author": "11BelowStudio", "title": "Multi User Dungeon Kool Informational Package (for playing MUD2 with Mudlet)", "outputFile": true, diff --git a/src/triggers/MUDKIP_Mud2/spell_used_autofes.lua b/src/triggers/MUDKIP_Mud2/spell_used_autofes.lua new file mode 100644 index 0000000..dc13ba3 --- /dev/null +++ b/src/triggers/MUDKIP_Mud2/spell_used_autofes.lua @@ -0,0 +1,3 @@ +if MUDKIP_Mud2:isInGame() then + send("␛-[fes␛-]") +end \ No newline at end of file diff --git a/src/triggers/MUDKIP_Mud2/triggers.json b/src/triggers/MUDKIP_Mud2/triggers.json index 7d99b61..e8b6ea5 100644 --- a/src/triggers/MUDKIP_Mud2/triggers.json +++ b/src/triggers/MUDKIP_Mud2/triggers.json @@ -134,7 +134,7 @@ "isActive": "yes", "patterns": [ { - "pattern":"^(\\*)?eff str (?\\d+)\\h*eff dex (?\\d+)\\h*sta (?\\d+)/(?\\d+)\\h*(mag (?)\\h*)?pts (?\\d+(,\\d+)*).*$", + "pattern":"^(\\*)?eff str (?\\d+)\\h*eff dex (?\\d+)\\h*sta (?\\d+)/(?\\d+)\\h*(mag (?\\d+)\\h*)?pts (?\\d+(,\\d+)*).*$", "type": "regex" } ] @@ -187,5 +187,20 @@ ] } ] + }, + { + "name": "spell_used_autofes", + "isActive": "yes", + "multiline": "yes", + "patterns": [ + { + "pattern":"15,0", + "type": "color" + }, + { + "pattern":"^Your spell (work|fail)ed!$", + "type":"regex" + } + ] } ] \ No newline at end of file From ad09a9b9d6aa2b6c21e6cd5d983ed11d69852499 Mon Sep 17 00:00:00 2001 From: Rachel Lowe <60523642+11BelowStudio@users.noreply.github.com> Date: Fri, 20 Sep 2024 18:52:01 +0100 Subject: [PATCH 2/2] escaping some slashes just to be on the safe side --- src/triggers/MUDKIP_Mud2/triggers.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/triggers/MUDKIP_Mud2/triggers.json b/src/triggers/MUDKIP_Mud2/triggers.json index e8b6ea5..0060b76 100644 --- a/src/triggers/MUDKIP_Mud2/triggers.json +++ b/src/triggers/MUDKIP_Mud2/triggers.json @@ -134,7 +134,7 @@ "isActive": "yes", "patterns": [ { - "pattern":"^(\\*)?eff str (?\\d+)\\h*eff dex (?\\d+)\\h*sta (?\\d+)/(?\\d+)\\h*(mag (?\\d+)\\h*)?pts (?\\d+(,\\d+)*).*$", + "pattern":"^(\\*)?eff str (?\\d+)\\h*eff dex (?\\d+)\\h*sta (?\\d+)\/(?\\d+)\\h*(mag (?\\d+)\\h*)?pts (?\\d+(,\\d+)*).*$", "type": "regex" } ] @@ -148,7 +148,7 @@ "type": "regex" }, { - "pattern":"^(\\*)?Stamina=(?\\d+)/(?\\d+)\\.$", + "pattern":"^(\\*)?Stamina=(?\\d+)\/(?\\d+)\\.$", "type": "regex" }, { @@ -156,7 +156,7 @@ "type": "regex" }, { - "pattern": "^(The )?(\\S+ )*\\S+ hits you \\((?\\d+)/(?\\d+)\\).$", + "pattern": "^(The )?(\\S+ )*\\S+ hits you \\((?\\d+)\/(?\\d+)\\).$", "type": "regex" } ]