Commit Graph

12076 Commits

Author SHA1 Message Date
the-real-herowl 51ff0a2043 Added glowing effect
Also added on_save_effect callback to run cleanup
2024-04-14 07:48:10 +02:00
the-real-herowl d0e9123078 Fixed running on_end for effects that aren't ending 2024-04-14 07:48:10 +02:00
the-real-herowl aade0d19e7 Reserve some more keywords in register_effect() 2024-04-14 07:48:09 +02:00
the-real-herowl b1146bf4d6 Further (mcl_)luck functionality
* XP from mob breeding impacted by luck
* eye of ender explosion chance impacted by luck
* fishing loot impacted by luck
* melee critical damage impacted by luck
* also fixed 2 scripts marked as "executable"
2024-04-14 07:48:09 +02:00
the-real-herowl e8f9b19996 Made some random rolls affected by mcl_luck
* xp bottle
* bow and crossbow crits
* megacrits added for mcl_bows, achievable only by (mcl_)luck
2024-04-14 07:48:09 +02:00
the-real-herowl 2b29bad79a Added mcl_luck API
Luck and Bad Luck effects use the mcl_luck API now
The API is unused for now
2024-04-14 07:48:09 +02:00
the-real-herowl b0ba4e78a7 Added luck and bad luck effects
They're no-op for now
2024-04-14 07:48:09 +02:00
the-real-herowl fef6c44627 Added some effect descriptions 2024-04-14 07:48:09 +02:00
the-real-herowl 2615556a2e Added conduit power 2024-04-14 07:48:09 +02:00
the-real-herowl 5c832d27b1 Haste and fatigue expanded and improved
* abstracted and refactored some parts of haste and fatigue
* added and exposed new mcl_potions API functions
* fixed haste and fatigue not altering the hand
* mcl_meshhand now calls into mcl_potions when resetting the hand
2024-04-14 07:48:09 +02:00
the-real-herowl cdb9a125b6 Capped fatigue effect on punching
This fixes a crash, too
Also updates toolcaps on gamemode change
2024-04-14 07:48:09 +02:00
the-real-herowl c56a6764ad Improved haste and fatigue effects
* fixed a few crashes related to unusual effect levels
* added haste and fatigue combat functionality
* added some cleanup to avoid hangover unstackable items
* capped the slowdown from fatigue at 5 minutes digging time
* (despite the above, if a tool has a longer time set in definition,
	that still works)
* removed an unused "global" variable
2024-04-14 07:48:09 +02:00
the-real-herowl ebfd6baf29 Added haste and fatigue 2024-04-14 07:48:09 +02:00
the-real-herowl 9ed4cb7cc4 Added dolphin's grace 2024-04-14 07:48:09 +02:00
the-real-herowl 2b705f4075 Added strength and weakness effects
* also highest effect level displayed in HUD set to 3000
* also improved indicating effects with strange factors in HUD
2024-04-14 07:48:09 +02:00
the-real-herowl 17a607147d Renamed some functions and variables
* changed names referring to player where it does support mobs
* also added an is_player() check in one function
2024-04-14 07:48:09 +02:00
the-real-herowl 118f1875a2 Improved descriptions 2024-04-14 07:48:09 +02:00
the-real-herowl 08b359d50f Improved nausea 2024-04-14 07:48:09 +02:00
the-real-herowl b03a0c2432 Added time_override to FOV API
time_override can be used when applying or removing modifiers
2024-04-14 07:48:09 +02:00
the-real-herowl 9b3413f166 Improved the darkness effect 2024-04-14 07:48:09 +02:00
the-real-herowl b404b14ad0 Added darkness 2024-04-14 07:48:09 +02:00
the-real-herowl 872d249169 Added nausea 2024-04-14 07:48:09 +02:00
the-real-herowl d16ec11420 Fixed graphical features of some effects
* loading fixed (by adding on_load)
* absorption bar never reaching end fixed
2024-04-14 07:48:09 +02:00
the-real-herowl 684c3cc0c7 Added blindness effect
(also improved TT descriptions of some effects)
2024-04-14 07:48:09 +02:00
the-real-herowl b788f12683 Added frost effect 2024-04-14 07:48:09 +02:00
the-real-herowl 1f9350be20 Added HP hudbar look modifier API
(for now in mcl_potions)
2024-04-14 07:48:09 +02:00
the-real-herowl 34a495ee57 Add hero of the village effect 2024-04-14 07:48:09 +02:00
the-real-herowl 0f2f470ade Added food poisoning and saturation effects 2024-04-14 07:48:09 +02:00
the-real-herowl cf09fcdaa4 Added some missing effects and improved API
* added a way to have a damage modifier relying on type instead of flag
* added Slow Falling
* added Levitation
* added Health Boost
* added Absorption
2024-04-14 07:48:09 +02:00
the-real-herowl 28ce8e15a9 Improved damage mods in effects, resistance effect 2024-04-14 07:48:09 +02:00
the-real-herowl 34397c049d New effect icons 2024-04-14 07:48:09 +02:00
the-real-herowl f5b751270b Improved effects HUD and fixes
* Fixed some effects not being replaced correctly with higher levels
* Implemented an old FIXME (MTE 5.3.0 fixed underlying bug)
* Added a way to obtain an approximate level of effect from factor
* Added effect level to HUD under the icon
* Added effect timer to HUD under the icon
2024-04-14 07:48:09 +02:00
the-real-herowl 5dd568f010 Improved /effect command return messages
Also improved the name of a variable
2024-04-14 07:48:09 +02:00
the-real-herowl 209c328e97 Registered dragon breath and pruned code
* removed old registration code
* added to the API the `nocreative` field
* registered the bottled dragon's breath as an item
2024-04-14 07:48:09 +02:00
the-real-herowl bae746bdc4 Re-registered potions under new API 2024-04-14 07:48:09 +02:00
the-real-herowl 5a0c478cb3 Added a constant to the API 2024-04-14 07:48:09 +02:00
the-real-herowl 8ca0680f03 Fixed tipped arrow descriptions 2024-04-14 07:48:09 +02:00
the-real-herowl 844d135c0c Added missing effect descriptions 2024-04-14 07:48:09 +02:00
the-real-herowl 81e4549a34 Fixed splash and lingering potions
* descriptions
* scaling
2024-04-14 07:48:09 +02:00
the-real-herowl 1294549f03 Added support for varied descriptions 2024-04-14 07:48:09 +02:00
the-real-herowl 74754fbca5 Implemented missing potion registering functionality
* improved support for custom (non-status) effects
* added support for splash potions
* added support for lingering potions
* added support for tipped arrows
* removed the old registration
2024-04-14 07:48:09 +02:00
the-real-herowl 4d258731eb Improved potion descriptions
* added support for effect descriptions
* added descriptions for some effects
* fixed a crash
2024-04-14 07:48:09 +02:00
the-real-herowl e0ed82e456 Potions registering API fully works with creative 2024-04-14 07:48:09 +02:00
the-real-herowl de4fd2dc8e Fixed variable definitions ("undeclared global") 2024-04-14 07:48:09 +02:00
the-real-herowl 24a69f8e7c Creative inventory using new potions API
-creative inventory utilizes the new potions API
-the new fancy tooltips are used there
2024-04-14 07:48:09 +02:00
the-real-herowl 8f8660f6b6 Added new potion tooltip handling
-potion tooltips are now utilizing the power of the new API
-potion names change based on metadata
-nothing triggers loading the new tooltips beyond the names for now
2024-04-14 07:48:09 +02:00
the-real-herowl 40d4950926 Added new potions registering API
-added comprehensive potions registering API
-new API registers only drinkable potions for now
-new API is compatible with very complex tooltips
-new API can have multiple effects per potion
-no hardcoding for specific potions in the new API
2024-04-14 07:48:09 +02:00
the-real-herowl e20be29450 Translatable effect names and cleanup
-added translatable effect names to the API
-made /effect utilize those descriptions
-cleaned up variables/constants to go with further API changes
2024-04-14 07:48:09 +02:00
the-real-herowl b590442886 Arabic-to-Roman converter redo
-rewrote the Arabic-to-Roman number converter
-moved it to mcl_util
2024-04-14 07:48:09 +02:00
the-real-herowl d2df1afcf6 Reimplemented /effect heal and fixed bugs
-heal subcommand to the /effect reimplemented
-healing_func() from old API standardized, included in new API
-(the last point is due to it being substantially different from others)
-fixed a few bugs, potential crashes
-fixed incorrect withering effect progression
-standardized variable naming
2024-04-14 07:48:09 +02:00