teknomunk
ca033d0e8d
Correctly refresh enchantment tool capabilities in mcl_potions haste/fatigue effects ( #4355 )
...
Reviewed-on: VoxeLibre/VoxeLibre#4355
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: teknomunk <teknomunk@protonmail.com>
Co-committed-by: teknomunk <teknomunk@protonmail.com>
2024-06-01 23:25:42 +00:00
teknomunk
95228500a9
Don't crash when name == nil
2024-05-30 10:51:45 +00:00
teknomunk
c7e43e31d4
Convert crash to a warning
2024-05-30 10:51:45 +00:00
teknomunk
c4f4e7b6fc
Fix crash that occurs when lingering or splash potions are used from a dispenser ( #4335 )
...
Reviewed-on: VoxeLibre/VoxeLibre#4335
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: teknomunk <teknomunk@protonmail.com>
Co-committed-by: teknomunk <teknomunk@protonmail.com>
2024-05-30 08:02:59 +00:00
the-real-herowl
da491b8505
Documented a returned table (effect data) ( #4330 )
...
Updated documentation, follow-up to #4130
Reviewed-on: VoxeLibre/VoxeLibre#4330
Co-authored-by: the-real-herowl <wiktor_t-i@proton.me>
Co-committed-by: the-real-herowl <wiktor_t-i@proton.me>
2024-05-26 16:29:27 +00:00
the-real-herowl
cae554bc2b
Defensive checks ( #4328 )
...
Fixes rare crashes related to some effects
Reviewed-on: VoxeLibre/VoxeLibre#4328
Co-authored-by: the-real-herowl <wiktor_t-i@proton.me>
Co-committed-by: the-real-herowl <wiktor_t-i@proton.me>
2024-05-26 15:32:41 +00:00
syl
4d7060cddd
French translation for potions ( #4321 )
...
Reviewed-on: VoxeLibre/VoxeLibre#4321
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: syl <syl@gresille.org>
Co-committed-by: syl <syl@gresille.org>
2024-05-25 11:18:37 +00:00
the-real-herowl
07fac026dd
Added a darkness potion recipe
2024-05-22 21:03:43 +02:00
the-real-herowl
018814c362
Added a few mobitems
...
* one droppable from strays
* the rest will get their mobs in a later update
* added alternative ways to get the items
* added recipes for potions that use these items
2024-05-22 21:03:43 +02:00
the-real-herowl
496360a1c4
Updated Polish translation
2024-05-22 21:03:43 +02:00
the-real-herowl
191dd1b950
Update template.txt
2024-05-22 21:03:43 +02:00
the-real-herowl
551bc99517
Improved compat alias visual
2024-05-22 21:03:43 +02:00
the-real-herowl
7a4c1ceba5
Legacy potion conversion extended
2024-05-22 21:03:43 +02:00
the-real-herowl
dbea863553
Legacy potions converter
2024-05-22 21:03:43 +02:00
the-real-herowl
747bf16a94
Migrated mobs to the new effects API
2024-05-22 21:03:43 +02:00
the-real-herowl
dc7b1869b7
Move most of the game to the new API
2024-05-22 21:03:43 +02:00
the-real-herowl
bdaff930e0
Documentation update
2024-05-22 21:03:43 +02:00
the-real-herowl
a039e056a5
Support delayed drinking with new potions API
2024-05-22 21:03:43 +02:00
the-real-herowl
53d640028e
Added effect stacking option to the potions API
...
Also:
* Frost and Food Poisoning potion now stack their effects
* fixed a crash related to tipped arrows
2024-05-22 21:03:43 +02:00
the-real-herowl
9e9507efeb
Plant placement and drop fixes
2024-05-22 21:03:43 +02:00
the-real-herowl
e806d5f3ce
Fixed effects still being handled after mob death
2024-05-22 21:03:43 +02:00
the-real-herowl
914e3c6c2a
Effects persist on loads for mobs too
2024-05-22 21:03:43 +02:00
the-real-herowl
78ae5ddc26
Added some potion recipes
...
Also:
* changed the duration of saturation and food poisoning potions
* minor code changes
2024-05-22 21:03:43 +02:00
the-real-herowl
8f4d5d2e27
Added the ominous potion
2024-05-22 21:03:43 +02:00
the-real-herowl
70d8dfe558
Improved API mob support
...
* various API functions now work with mobs properly
* the following effects don't work with mobs at all:
water breathing, dolphin's grace, leaping, swiftness,
slowness, slow falling, night vision, darkness, frost,
health boost, absorption, fire resistance, resistance,
luck, bad luck, blindness, nausea, hunger, saturation,
haste, fatigue, conduit power
* the following effects should work with mobs:
invisibility, regeneration, poison, withering,
strength, weakness, levitation, glowing
* the following effects have no effect on mobs
(but can be applied with the API):
bad omen, hero of the village
2024-05-22 21:03:38 +02:00
the-real-herowl
9b501bfa7e
Allowed infinite effect duration
2024-05-22 21:02:25 +02:00
the-real-herowl
75e5ca8d49
Added the option to remove and clear effects...
...
...with the /effect command.
Also made the API for clearing effects more robust.
2024-05-22 21:02:25 +02:00
the-real-herowl
dcbc9d2398
Allowed giving effect without particles
...
...both with API and the /effect command
2024-05-22 21:02:25 +02:00
the-real-herowl
7c2d74e983
Typos fixed
2024-05-22 21:02:25 +02:00
the-real-herowl
7c1f9805e2
Tooltip and color fixes
2024-05-22 21:02:25 +02:00
the-real-herowl
b5367a77a7
Expanded brewing recipe API
...
Added recipes using thick or mundane potion
2024-05-22 21:02:25 +02:00
the-real-herowl
8cfe96a955
Added potions for new effects
...
* also added some new brewing recipes
2024-05-22 21:02:25 +02:00
the-real-herowl
ced2741686
Added strength and weakness potions
...
Also fixed potent slowness potion level
Also fixed slowness and swiftness effect descriptions
2024-05-22 21:02:25 +02:00
the-real-herowl
a9c2a89f16
New brewing recipes registering API
...
Also migrated all recipes to the new system
2024-05-22 21:02:25 +02:00
the-real-herowl
c4bedb37e0
Brewing fully works with the new system
2024-05-22 21:02:25 +02:00
the-real-herowl
f60f50041d
Brewing somewhat works with the new API
2024-05-22 21:02:25 +02:00
the-real-herowl
09be413e3f
Added glowing effect
...
Also added on_save_effect callback to run cleanup
2024-05-22 21:02:25 +02:00
the-real-herowl
7ae31790bf
Fixed running on_end for effects that aren't ending
2024-05-22 21:02:25 +02:00
the-real-herowl
6dab6158b9
Reserve some more keywords in register_effect()
2024-05-22 21:02:25 +02:00
the-real-herowl
b28467d348
Added mcl_luck API
...
Luck and Bad Luck effects use the mcl_luck API now
The API is unused for now
2024-05-22 21:02:25 +02:00
the-real-herowl
c503a5fb8c
Added luck and bad luck effects
...
They're no-op for now
2024-05-22 21:02:25 +02:00
the-real-herowl
bbe2964d48
Added some effect descriptions
2024-05-22 21:02:25 +02:00
the-real-herowl
5263740a80
Added conduit power
2024-05-22 21:02:25 +02:00
the-real-herowl
ddbc7cd826
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-22 21:02:25 +02:00
the-real-herowl
6d7fe91047
Capped fatigue effect on punching
...
This fixes a crash, too
Also updates toolcaps on gamemode change
2024-05-22 21:02:25 +02:00
the-real-herowl
0c4094596e
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-22 21:02:25 +02:00
the-real-herowl
1ac81e440c
Added haste and fatigue
2024-05-22 21:02:25 +02:00
the-real-herowl
bf82241e82
Added dolphin's grace
2024-05-22 21:02:25 +02:00
the-real-herowl
456d205161
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-22 21:02:25 +02:00
the-real-herowl
0e33947258
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-22 21:02:25 +02:00