Commit Graph

128 Commits

Author SHA1 Message Date
Maruno17 18ffd4fb94 Fix to colour-stringifying methods 2022-08-19 21:40:46 +01:00
Maruno17 b1cde2db42 Refactored some code relating to colours, trivially simplified some calculations 2022-08-13 23:59:24 +01:00
Keyacom d890cd8a24 Edited string methods (#186)
* Changed numeric check regex
- `^` may match the position right after a newline character, and `$` may match right before the newline character (due to the multiline flag being enabled by default), so substing these with `\A` and `\Z`.
- Changed both instances of `[0-9]` with the shorthand `\d`.
- Removed capturing group around the first `\d+`.
* Changed get character at index
`anyString[0, 1]` is functionally the same as `anyString[0]` because the range `[a, b]` returns all characters from index `a` up to but not including the char at index `b`.
2022-08-10 21:11:19 +01:00
Maruno17 8b3d95943a Essentials no longer requires the "Plugins" folder to exist 2022-06-19 17:40:34 +01:00
Maruno17 732c167ad5 Writing moves.txt now calls power "Power" instead of "BaseDamage", other minor tidying 2022-06-13 20:17:16 +01:00
Maruno17 a280fea093 Fixed console message colouring breaking when loading a plugin whose name contains an apostrophe 2022-05-21 19:20:35 +01:00
Maruno17 b7f230fcfc Shortened and updated documentation of PluginManager 2022-04-25 23:27:11 +01:00
Maruno17 408e63b5d7 Updated to mkxp-z v2.3.1 2022-04-18 21:16:24 +01:00
Maruno17 21f7c57905 Added Poké Ball burst animation for recalling in battle, some bug fixes 2022-03-16 22:44:39 +00:00
Luka S.J fe159419f7 [feature] Expand built-in utilities for Essentials (#166)
* Refactor hash and add small string utility
* Add utilities for `Color` object
* Add `.findDirectory` to `PluginManager`
* Add extra file and directory utilities
* Add `CallbackWrapper` utility
* Fix hash `deep_merge`
* Refactor hash `deep_merge` to simplify
* Fix hash merging
* Fix ruby utilities
2022-02-28 23:32:25 +00:00
Maruno17 19e50bd507 Updated Power Green fonts, repositioned all text accordingly 2022-02-20 23:29:09 +00:00
Maruno17 5f39363e69 Added map metadata flag "HideEncountersInPokedex", fixed Pokédex not showing the areas of some maps that span multiple Town Map points 2022-02-14 23:25:10 +00:00
Maruno17 f68e699cc9 More Rubocop changes 2022-02-13 00:57:54 +00:00
Golisopod-User e6c877fe06 Display version number of plugins in the console (#173)
* Display version number with plugins
2022-02-06 19:01:42 +00:00
Maruno17 0465572ca0 Added method for buying a Game Corner prize item, made def _I able to replace text like _INTL 2022-01-30 20:03:52 +00:00
Maruno17 7c7a6d91bd Fixed field animations relating to events and followers not showing if they're on a connected map, fixed grass not rustling if the player walks onto it directly from a connected map, fixed grass rustling appearing beneath the player 2022-01-29 18:05:11 +00:00
Maruno17 2372322c24 Added holding Shift while starting the game to compile just the plugins 2022-01-25 23:38:11 +00:00
Maruno17 98f311c394 Updated to mkxp-z v2.3.0 2022-01-24 23:12:06 +00:00
Maruno17 8a3e5b01e0 Fixed inconsistencies in error messages produced when loading a plugin 2022-01-22 22:03:31 +00:00
Maruno17 7f0526114f Errors raised by PluginManager are no longer capitalised 2022-01-21 12:59:23 +00:00
Joni Savolainen 767a47d90f Fix Bitmap#draw_text override not accepting Rect argument (#150) 2022-01-09 21:22:40 +00:00
Golisopod-User 13cc9790ce Minor new additions for v20 (#147)
* Moved TMs/ TRs and HMs into their own handlers
* Improved Plugin Error Message
* Added sound effect when picking berries
* Allow player to always see quantity when buying items
* Trainers now require a Mega Ring item in their items (in trainers.txt) to Mega Evolve
2021-12-29 18:36:26 +00:00
Maruno17 3e9d3b0a68 Added checks that prevent aliasing a method if the alias method already exists, fixed Symbiosis not working properly for opponents 2021-12-28 19:22:31 +00:00
Maruno17 aa643a6049 More Rubocop 2021-12-27 00:26:45 +00:00
Maruno17 132a16950d Yet more Rubocopping 2021-12-23 00:27:17 +00:00
Maruno17 514fe13ca2 More additions to .rubocop.yml, minor code tweaks 2021-12-22 21:01:37 +00:00
Maruno17 dfb3a51815 Forced encoding of text to UTF-8 2021-12-20 21:46:29 +00:00
Maruno17 33fcbf623b More Rubocopping 2021-12-20 17:18:21 +00:00
Golisopod-User 7f86db6da9 Minor bugfiixes (#140)
* Fixed moves bounced back by Magic Coat/Bounced moves affecting Pokemon they normally shouldn't
* Fixed townmap compiler not saving any map names (doesn't make a difference; added for completionism)
* Update a few ruby utilities
* Fixed small typo bug in map renderer disposal
2021-12-19 20:58:28 +00:00
Maruno17 65b1a8d6c3 More tweaks from the Rubocop overlord 2021-12-19 17:28:59 +00:00
Maruno17 13a238cc6a Many more Rubocop-inspired code improvements 2021-12-18 19:06:22 +00:00
Maruno17 d17fc40a47 Added decent spacing to all scripts thanks to Rubocop 2021-12-18 15:25:40 +00:00
Maruno17 f7b76ae62e The Great Enspacening begins! 2021-12-18 12:20:31 +00:00
Maruno17 2480ab0f9e Applied most Rubocop-suggested layout fixes 2021-12-18 01:56:10 +00:00
Maruno17 5dc64f1709 Minor refactoring to kill various Rubocop warnings 2021-12-17 20:29:47 +00:00
Maruno17 ddb95a8bb6 Added underscore to berry plant charsets, added Debug menu function that will rename these files (including in map data) 2021-11-21 18:45:13 +00:00
Maruno17 ea9cacd6b9 Updated console message code to Luka's latest version 2021-11-21 17:36:25 +00:00
Maruno17 048a18b415 Refactored ability/item/ball battle handlers, added "UltraBeast" species flag for Beast Ball 2021-11-18 22:52:19 +00:00
Maruno17 1c4819e5f0 Renamed all battle-related classes and modules 2021-11-16 23:05:16 +00:00
Maruno17 c392f8c236 Added Luka's console message colouring code 2021-11-02 23:27:42 +00:00
Maruno17 50d999e7da Updated to mkxp-z v2.2.3 (removed mp3 support) 2021-11-02 21:14:31 +00:00
Maruno17 5ad9f60d61 Added plugin meta.txt property "Essentials", which lists versions of Essentials the plugin is compatible with 2021-11-02 20:46:32 +00:00
Maruno17 6c38f769c7 Moved initial money/storage creator's name from Settings to metadata.txt, added initial item storage contents property to global metadata, added Home property to player metadata 2021-10-25 23:07:58 +01:00
Maruno17 18049c22b9 More changes to console messages 2021-10-23 23:56:54 +01:00
Maruno17 e417e4c659 Tidied and coloured console messages 2021-10-23 21:55:42 +01:00
Maruno17 56c9b69c44 Added "Name" property to map_metadata.txt, fixed map names not being translated in some cases, fixed minor things from a previous commit 2021-10-13 22:55:29 +01:00
Maruno17 3c88c897f0 Refactored checking whether a Pokémon/species is single gendered, tweaked console message. 2021-08-31 00:17:30 +01:00
Maruno17 8bb70a226e Tidied up semicolon use, refactored random dungeon generation code, fixed visual bug in Day Care debug screen 2021-08-22 23:18:34 +01:00
Maruno17 153aa69bb8 Merge branch 'master' into dev 2021-08-12 20:37:25 +01:00
Maruno17 19535b8160 Fixed Symbiosis, fixed Roost not roosting, fixed Normalize not boosting damage, fixed crash in Bug Catching Contest, fixed old format moves.txt compiling, added cache size text to console 2021-08-12 20:00:42 +01:00