1
0
Fork 0
Commit Graph

10504 Commits

Author SHA1 Message Date
the-real-herowl dd2207b89f 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-05-19 01:27:51 +00:00
the-real-herowl 31d6266da8 Added mcl_luck API
Luck and Bad Luck effects use the mcl_luck API now
The API is unused for now
2024-05-19 01:27:51 +00:00
the-real-herowl 90a3db8e5e Added luck and bad luck effects
They're no-op for now
2024-05-19 01:27:51 +00:00
the-real-herowl 83f97191d9 Added some effect descriptions 2024-05-19 01:27:51 +00:00
the-real-herowl 898abf3741 Added conduit power 2024-05-19 01:27:51 +00:00
the-real-herowl c26776d59d 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-05-19 01:27:51 +00:00
the-real-herowl 7f5caedf63 Capped fatigue effect on punching
This fixes a crash, too
Also updates toolcaps on gamemode change
2024-05-19 01:27:51 +00:00
the-real-herowl f9621df7c5 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-05-19 01:27:51 +00:00
the-real-herowl d1844f9814 Added haste and fatigue 2024-05-19 01:27:51 +00:00
the-real-herowl d4c7b036df Added dolphin's grace 2024-05-19 01:27:51 +00:00
the-real-herowl d53ff109c1 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-05-19 01:27:51 +00:00
the-real-herowl 502589ea25 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-05-19 01:27:51 +00:00
the-real-herowl b8a816471a Improved descriptions 2024-05-19 01:27:51 +00:00
the-real-herowl d85b1862c3 Improved nausea 2024-05-19 01:27:51 +00:00
the-real-herowl 0f6fd8607c Added time_override to FOV API
time_override can be used when applying or removing modifiers
2024-05-19 01:27:51 +00:00
the-real-herowl 1001236153 Improved the darkness effect 2024-05-19 01:27:51 +00:00
the-real-herowl 9ec241c227 Added darkness 2024-05-19 01:27:51 +00:00
the-real-herowl f0960d48db Added nausea 2024-05-19 01:27:51 +00:00
the-real-herowl 7235e2a377 Fixed graphical features of some effects
* loading fixed (by adding on_load)
* absorption bar never reaching end fixed
2024-05-19 01:27:51 +00:00
the-real-herowl 2fc4565095 Added blindness effect
(also improved TT descriptions of some effects)
2024-05-19 01:27:51 +00:00
the-real-herowl 9b260cc9de Added frost effect 2024-05-19 01:27:51 +00:00
the-real-herowl 77a91d1893 Added HP hudbar look modifier API
(for now in mcl_potions)
2024-05-19 01:27:51 +00:00
the-real-herowl 2bb3e22c07 Add hero of the village effect 2024-05-19 01:27:51 +00:00
the-real-herowl ce2436c9a6 Added food poisoning and saturation effects 2024-05-19 01:27:51 +00:00
the-real-herowl 34d60d2b26 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-05-19 01:27:51 +00:00
the-real-herowl 6034155e1e Improved damage mods in effects, resistance effect 2024-05-19 01:27:51 +00:00
the-real-herowl c8175b79c4 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-05-19 01:27:51 +00:00
the-real-herowl f2fa6278e0 Improved /effect command return messages
Also improved the name of a variable
2024-05-19 01:27:51 +00:00
the-real-herowl 65efe65e46 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-05-19 01:27:51 +00:00
the-real-herowl 4207d72917 Re-registered potions under new API 2024-05-19 01:27:51 +00:00
the-real-herowl cdaa6e834a Added a constant to the API 2024-05-19 01:27:51 +00:00
the-real-herowl 4f835d463d Fixed tipped arrow descriptions 2024-05-19 01:27:51 +00:00
the-real-herowl c65b377b08 Added missing effect descriptions 2024-05-19 01:27:51 +00:00
the-real-herowl ea3f669c4d Fixed splash and lingering potions
* descriptions
* scaling
2024-05-19 01:27:51 +00:00
the-real-herowl 7a03c9dd28 Added support for varied descriptions 2024-05-19 01:27:51 +00:00
the-real-herowl 3ae523736f 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-05-19 01:27:51 +00:00
the-real-herowl b9c3b12adf Improved potion descriptions
* added support for effect descriptions
* added descriptions for some effects
* fixed a crash
2024-05-19 01:27:51 +00:00
the-real-herowl c7f4fff520 Potions registering API fully works with creative 2024-05-19 01:27:51 +00:00
the-real-herowl 8cd8bc103f Fixed variable definitions ("undeclared global") 2024-05-19 01:27:51 +00:00
the-real-herowl 0baff9c166 Creative inventory using new potions API
-creative inventory utilizes the new potions API
-the new fancy tooltips are used there
2024-05-19 01:27:51 +00:00
the-real-herowl 77e1ded435 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-05-19 01:27:51 +00:00
the-real-herowl 79f9aff4cb 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-05-19 01:27:51 +00:00
the-real-herowl ca235d214b 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-05-19 01:27:51 +00:00
the-real-herowl 95b64ea34a Arabic-to-Roman converter redo
-rewrote the Arabic-to-Roman number converter
-moved it to mcl_util
2024-05-19 01:27:51 +00:00
the-real-herowl ffd91d53e7 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-05-19 01:27:51 +00:00
the-real-herowl 17d44bfb84 Resolved merge conflict 2024-05-19 01:27:51 +00:00
the-real-herowl c8a45106dd 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-05-19 01:27:51 +00:00
the-real-herowl ba5c97d9bf 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-05-19 01:27:51 +00:00
Mikita Wiśniewski 0ef81681ba Make item frames attached to the block they're placed on (fixes #3736) (#4279)
Reviewed-on: MineClone2/MineClone2#4279
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-committed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
2024-05-04 11:43:54 +00:00
the-real-herowl efc6ab0bbf Merge pull request 'Hollow logs fixes' (#4268) from hollow_logs into master
Reviewed-on: MineClone2/MineClone2#4268
2024-05-04 10:08:17 +00:00