Commit Graph

12062 Commits

Author SHA1 Message Date
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
the-real-herowl 10e8b00ccb Resolved merge conflict 2024-04-14 07:48:09 +02:00
the-real-herowl 68ea486320 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-04-14 07:48:09 +02:00
the-real-herowl 6efce87f40 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-04-14 07:48:09 +02:00
the-real-herowl b5b8d4f336 Merge pull request 'more piglin bartering items (and drop stack instead of single items)' (#4181) from nixnoxus/MineClone2:piglin-bartering into master
Reviewed-on: MineClone2/MineClone2#4181
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-04-14 00:01:13 +00:00
Doods c1971b662a Fireproof certain wood nodes & add planks crafting recipes (#4166)
* Make Crimson and Warped Planks, Double Slab Planks, Fences, Fence Gates, Doors, Trapdoors, Pressure Plates, Wood, Bark, Stripped Wood, Stripped Bark, and Stairs Immune to fire by removing them from the 'flammable', 'fire_encouragement', and 'fire_flammability' groups.
* Add crafting recipes which allow Cherry, Mangrove, Crimson, and Warped planks to be crafted from Wood, Bark, Stripped Wood, and Stripped Bark variants, to make them consistent with with all other planks.

Reviewed-on: MineClone2/MineClone2#4166
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Doods <yusufalishabaka@tutanota.com>
Co-committed-by: Doods <yusufalishabaka@tutanota.com>
2024-04-13 23:52:46 +00:00
nixnoxus a86e8e2c8e fix strider breeding & increase riding speed (#4096)
- Striders follow `mcl_crimson:warped_fungus`
- Striders can be bred with `mcl_crimson:warped_fungus`
- Riding speed increased to 2 m/s
- Warning fixed

Reviewed-on: MineClone2/MineClone2#4096
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: nixnoxus <nixnoxus@web.de>
Co-committed-by: nixnoxus <nixnoxus@web.de>
2024-04-13 23:38:46 +00:00
Doods a3db7bd504 Fix texture converter for sandstone (#4233)
Reviewed-on: MineClone2/MineClone2#4233
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Doods <yusufalishabaka@tutanota.com>
Co-committed-by: Doods <yusufalishabaka@tutanota.com>
2024-04-08 19:02:43 +00:00
ancientmarinerdev ac4aff12ea Enable custom biome check in spawning. This allows mods to overide the check in singlenode and other mapgens that do not support biome API. (#4217)
Some older mapgens do not support the MT biome API. Singlenode and I think v6 also. This allows mods to overide the biomecheck in mob spawning to return valid biomenames and customise this.

Reviewed-on: MineClone2/MineClone2#4217
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: ancientmarinerdev <ancientmariner_dev@proton.me>
Co-committed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
2024-04-01 15:40:14 +00:00
emptyshore 003288bc80 Update comments in the nether portals script (#4227)
Co-authored-by: Mateusz Uzdowski <mateusz@silverstripe.com>
Reviewed-on: MineClone2/MineClone2#4227
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: emptyshore <emptyshore@noreply.git.minetest.land>
Co-committed-by: emptyshore <emptyshore@noreply.git.minetest.land>
2024-04-01 00:30:06 +00:00
emptyshore 55653fe37b Nether portals rewrite (#4128)
See MineClone2/MineClone2#4120

Co-authored-by: Mateusz Uzdowski <mateusz@silverstripe.com>
Reviewed-on: MineClone2/MineClone2#4128
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: emptyshore <emptyshore@noreply.git.minetest.land>
Co-committed-by: emptyshore <emptyshore@noreply.git.minetest.land>
2024-03-31 02:20:23 +00:00
the-real-herowl 0170619866 Merge pull request 'Imported the tga_encoder as subtree' (#4222) from tga_encoder_update into master
Reviewed-on: MineClone2/MineClone2#4222
2024-03-27 00:31:39 +00:00
ancientmarinerdev 0b521ef92b Fix - New game load crashes. Add defensive check. (#4216)
Reviewed-on: MineClone2/MineClone2#4216
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: ancientmarinerdev <ancientmariner_dev@proton.me>
Co-committed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
2024-03-27 00:22:22 +00:00
nixnoxus 8931576c50 fix 'WARNING[Main]: Undeclared global variable ' in mcl_colorblocks (#4203)
fix WARNING: Undeclared global variable

Reviewed-on: MineClone2/MineClone2#4203
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: nixnoxus <nixnoxus@web.de>
Co-committed-by: nixnoxus <nixnoxus@web.de>
2024-03-27 00:20:12 +00:00
the-real-herowl c65176af81 Merge pull request 'Added clovers' (#4224) from clovers into master
Reviewed-on: MineClone2/MineClone2#4224
2024-03-27 00:15:32 +00:00