Commit Graph

11993 Commits

Author SHA1 Message Date
the-real-herowl f993797805 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-02-03 05:37:55 +01:00
the-real-herowl 7bfe65e4e8 Added haste and fatigue 2024-02-02 04:33:19 +00:00
the-real-herowl c19ec0b617 Added dolphin's grace 2024-02-02 04:33:19 +00:00
the-real-herowl 48b7b77b9d 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-02-02 04:33:19 +00:00
the-real-herowl c08750262c 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-02-02 04:33:19 +00:00
the-real-herowl 6368075e78 Improved descriptions 2024-02-02 04:33:19 +00:00
the-real-herowl 2db7383618 Improved nausea 2024-02-02 04:33:19 +00:00
the-real-herowl 27de088290 Added time_override to FOV API
time_override can be used when applying or removing modifiers
2024-02-02 04:33:19 +00:00
the-real-herowl 69e275d513 Improved the darkness effect 2024-02-02 04:33:19 +00:00
the-real-herowl ae58851ede Added darkness 2024-02-02 04:33:19 +00:00
the-real-herowl 8181db7952 Added nausea 2024-02-02 04:33:19 +00:00
the-real-herowl 6aa07a0258 Fixed graphical features of some effects
* loading fixed (by adding on_load)
* absorption bar never reaching end fixed
2024-02-02 04:33:19 +00:00
the-real-herowl 6d9bd67cf8 Added blindness effect
(also improved TT descriptions of some effects)
2024-02-02 04:33:19 +00:00
the-real-herowl 700a030a13 Added frost effect 2024-02-02 04:33:19 +00:00
the-real-herowl cd136f0a25 Added HP hudbar look modifier API
(for now in mcl_potions)
2024-02-02 04:33:19 +00:00
the-real-herowl aa9978a548 Add hero of the village effect 2024-02-02 04:33:19 +00:00
the-real-herowl 3a01dcee90 Added food poisoning and saturation effects 2024-02-02 04:33:19 +00:00
the-real-herowl 4e70ae1397 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-02-02 04:33:19 +00:00
the-real-herowl c8fd4ec3c2 Improved damage mods in effects, resistance effect 2024-02-02 04:33:19 +00:00
the-real-herowl 8d7cfe0925 New effect icons 2024-02-02 04:33:19 +00:00
the-real-herowl b00fe1e258 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-02-02 04:33:19 +00:00
the-real-herowl 647dd6fe13 Improved /effect command return messages
Also improved the name of a variable
2024-02-02 04:33:19 +00:00
the-real-herowl 1680b607b7 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-02-02 04:33:19 +00:00
the-real-herowl 3d72f56f19 Re-registered potions under new API 2024-02-02 04:33:19 +00:00
the-real-herowl 51d0d02af5 Added a constant to the API 2024-02-02 04:33:19 +00:00
the-real-herowl 3791e19ae8 Fixed tipped arrow descriptions 2024-02-02 04:33:19 +00:00
the-real-herowl b6429217f2 Added missing effect descriptions 2024-02-02 04:33:19 +00:00
the-real-herowl 4e5b802113 Fixed splash and lingering potions
* descriptions
* scaling
2024-02-02 04:33:19 +00:00
the-real-herowl 069969c10b Added support for varied descriptions 2024-02-02 04:33:19 +00:00
the-real-herowl d479f749f0 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-02-02 04:33:19 +00:00
the-real-herowl 3a81ce7733 Improved potion descriptions
* added support for effect descriptions
* added descriptions for some effects
* fixed a crash
2024-02-02 04:33:19 +00:00
the-real-herowl 9251cc1583 Potions registering API fully works with creative 2024-02-02 04:33:19 +00:00
the-real-herowl 2c63903e8e Fixed variable definitions ("undeclared global") 2024-02-02 04:33:19 +00:00
the-real-herowl c9b7b237cf Creative inventory using new potions API
-creative inventory utilizes the new potions API
-the new fancy tooltips are used there
2024-02-02 04:33:19 +00:00
the-real-herowl 53ea12ad10 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-02-02 04:33:19 +00:00
the-real-herowl 62c1102f53 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-02-02 04:33:19 +00:00
the-real-herowl b2611314cf 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-02-02 04:33:19 +00:00
the-real-herowl ed566b3cfe Arabic-to-Roman converter redo
-rewrote the Arabic-to-Roman number converter
-moved it to mcl_util
2024-02-02 04:33:19 +00:00
the-real-herowl 0684901e2a 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-02-02 04:33:19 +00:00
the-real-herowl 6d055eba82 Resolved merge conflict 2024-02-02 04:33:19 +00:00
the-real-herowl 4501516bed Improved /effect command and fixes
-improved the /effect command, allowing to use effect levels
-fixed a bug in level-to-factor conversions
-renamed effect icons to follow the new convention
2024-02-02 04:33:19 +00:00
the-real-herowl 1961a45813 General effects API overhaul
- added a `register_effect()` function
- added the withering effect
- registered all the old effects under the new API
- unified effect names
- updated the main effect checker to use the new API
- changed some hardcoded values to support the unified effect naming
- added new namespaced metadata effects strings
- added support for legacy effect player metadata
- potions are still using the old effects API
- added glue between old API calls and the new API
- renamed the effect icons to support the unified effect naming
2024-02-02 04:33:19 +00:00
the-real-herowl 87abd0f4dc Merge pull request 'Colored Leather Armor' (#4024) from AFCMS/MineClone2:colored-leather-2 into master
Reviewed-on: MineClone2/MineClone2#4024
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-02-02 03:25:08 +00:00
the-real-herowl 03b8ad15e3 Privs for colorizing command and comment cleanup 2024-02-02 04:07:41 +01:00
the-real-herowl fc6fe3f1ed Crafting colorized leather armor 2024-02-02 03:05:57 +00:00
the-real-herowl 3fa4cf6d52 Cauldron leather armor washing 2024-02-02 03:05:57 +00:00
the-real-herowl 3d799266c3 Finished leather armor colorizing 2024-02-02 03:05:57 +00:00
AFCMS caa82c40c9 Colored Leather Armor 2024-02-02 03:05:57 +00:00
the-real-herowl 8c19d4b9b8 Merge pull request 'Add glazed terracotta pillars' (#4117) from Potiron/MineClone2:master into master
Reviewed-on: MineClone2/MineClone2#4117
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-02-02 02:50:36 +00:00
the-real-herowl c31226041f Merge pull request 'Fixed ghast hitbox' (#4156) from ghast_fix into master
Reviewed-on: MineClone2/MineClone2#4156
2024-01-28 12:56:06 +00:00