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
7cd0cfede8
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-05-22 21:02:25 +02:00
the-real-herowl
42778a3a6d
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-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
the-real-herowl
03c73b7820
Improved descriptions
2024-05-22 21:02:25 +02:00
the-real-herowl
e039642446
Improved nausea
2024-05-22 21:02:25 +02:00
the-real-herowl
b6484a6d15
Added time_override to FOV API
...
time_override can be used when applying or removing modifiers
2024-05-22 21:02:25 +02:00
the-real-herowl
394b090c83
Improved the darkness effect
2024-05-22 21:02:25 +02:00
the-real-herowl
65b923c43c
Added darkness
2024-05-22 21:02:25 +02:00
the-real-herowl
aa4ff1827d
Added nausea
2024-05-22 21:02:25 +02:00
the-real-herowl
92a77a7dbb
Fixed graphical features of some effects
...
* loading fixed (by adding on_load)
* absorption bar never reaching end fixed
2024-05-22 21:02:25 +02:00
the-real-herowl
31adc45da9
Added blindness effect
...
(also improved TT descriptions of some effects)
2024-05-22 21:02:25 +02:00
the-real-herowl
5610fa1c4b
Added frost effect
2024-05-22 21:02:25 +02:00
the-real-herowl
3f5cea3046
Added HP hudbar look modifier API
...
(for now in mcl_potions)
2024-05-22 21:02:25 +02:00
the-real-herowl
a8054e8112
Add hero of the village effect
2024-05-22 21:02:25 +02:00
the-real-herowl
007500613a
Added food poisoning and saturation effects
2024-05-22 21:02:24 +02:00
the-real-herowl
fce73ab2bf
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-22 21:02:24 +02:00
the-real-herowl
08942d3b25
Improved damage mods in effects, resistance effect
2024-05-22 21:02:24 +02:00
the-real-herowl
40580843d5
New effect icons
2024-05-22 21:02:24 +02:00
the-real-herowl
a6c9bc8a01
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-22 21:02:24 +02:00
the-real-herowl
209299b791
Improved /effect command return messages
...
Also improved the name of a variable
2024-05-22 21:02:24 +02:00
the-real-herowl
b84d36b3ff
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-22 21:02:24 +02:00
the-real-herowl
eac63f93d5
Re-registered potions under new API
2024-05-22 21:02:24 +02:00
the-real-herowl
3663a62374
Added a constant to the API
2024-05-22 21:02:24 +02:00
the-real-herowl
a429a462cd
Fixed tipped arrow descriptions
2024-05-22 21:02:24 +02:00
the-real-herowl
5a7a533bf6
Added missing effect descriptions
2024-05-22 21:02:24 +02:00
the-real-herowl
0b1cc6ad57
Fixed splash and lingering potions
...
* descriptions
* scaling
2024-05-22 21:02:24 +02:00
the-real-herowl
93572d71f2
Added support for varied descriptions
2024-05-22 21:02:24 +02:00
the-real-herowl
7d3e2d3dbc
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-22 21:02:24 +02:00
the-real-herowl
83530b4298
Improved potion descriptions
...
* added support for effect descriptions
* added descriptions for some effects
* fixed a crash
2024-05-22 21:02:24 +02:00
the-real-herowl
dc35f43bfa
Potions registering API fully works with creative
2024-05-22 21:02:24 +02:00
the-real-herowl
a8fcae0f51
Fixed variable definitions ("undeclared global")
2024-05-22 21:02:24 +02:00
the-real-herowl
6d927ab1a1
Creative inventory using new potions API
...
-creative inventory utilizes the new potions API
-the new fancy tooltips are used there
2024-05-22 21:02:24 +02:00
the-real-herowl
ef2ce7e0d7
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-22 21:02:24 +02:00