Commit Graph

677 Commits

Author SHA1 Message Date
the-real-herowl c3ce9ba27f Remove unused function in mcl_hunger 2024-04-21 19:19:42 +02:00
the-real-herowl b1146bf4d6 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-04-14 07:48:09 +02:00
the-real-herowl 2b29bad79a Added mcl_luck API
Luck and Bad Luck effects use the mcl_luck API now
The API is unused for now
2024-04-14 07:48:09 +02:00
the-real-herowl 5c832d27b1 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-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 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 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
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
Eliy21 7bfbaac772 Fix damage animation and player invul crash in mcl_playerplus (#4176)
Reviewed-on: MineClone2/MineClone2#4176
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Eliy21 <eliy21@noreply.git.minetest.land>
Co-committed-by: Eliy21 <eliy21@noreply.git.minetest.land>
2024-02-04 17:31:11 +00:00
the-real-herowl 1175be45fb Merge pull request 'Add MC hold to eat delay' (#4144) from Eliy21/MineClone2:eating_delay into master
Reviewed-on: MineClone2/MineClone2#4144
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-01-25 02:06:14 +00:00
Eliy21 5154dce8d0 Use table.update() on mcl_hunger.eat_internal[name] in the item eat code 2024-01-21 09:03:27 +00:00
Eliy21 b56424a0b6 Integrate mcl_hunger.is_eating(name) API into item eat code 2024-01-21 09:03:27 +00:00
Eliy21 93dff87a5e Add mcl_hunger.is_eating(name) API 2024-01-21 09:03:27 +00:00
Eliy21 109aed75df Fix sus stew not having eating particle & sound effects and eating slow speed getting stuck on login 2024-01-21 09:03:27 +00:00
Eliy21 cc7a2e0b41 Add eating delay entry to changelog.txt 2024-01-21 09:03:27 +00:00
Eliy21 996a5a6d47 Integrate delayed eating to item eat code 2024-01-21 09:03:27 +00:00
Eliy21 4c8efca4e6 Add eating delay code 2024-01-21 09:03:27 +00:00
the-real-herowl d1ac98a019 Fixed a crash
Crash when the cape field is not set.
It is not set when joining an old world with the capes PR applied.
Also trimmed trailing.
2024-01-21 03:09:11 +00:00
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 4c0bad754e Show elytra animation when using elytra 2024-01-20 03:41:38 +00:00
chmodsayshello 45c84b1f1d fix formspec 2024-01-13 19:50:09 +01:00
chmodsayshello 96dbcc45d0 fix cape being registered twice 2024-01-13 19:50:09 +01:00
chmodsayshello bfe333ef60 fix cape rendering conflicts
The elytra and the normal cape were able to render at the same time while wearing an elytra.
2024-01-13 19:50:09 +01:00
chmodsayshello 89eb0f9b3e remove test selector_func 2024-01-13 19:50:09 +01:00
chmodsayshello 146b0ade37 update elytra cape instantly 2024-01-13 19:50:09 +01:00
chmodsayshello 0f91b763e9 add cape api 2024-01-13 19:50:09 +01:00
chmodsayshello aeccc94687 remove sha1 unlocking for minetest cape 2024-01-13 19:50:09 +01:00
the-real-herowl d3881fc1d1 Fix crash and trim trailing 2024-01-13 19:50:09 +01:00
chmodsayshello 180c8fb73e add capes 2024-01-13 19:50:04 +01:00
the-real-herowl 12b3e34f88 Fix a crash
Defensive check for nonexistent player
2024-01-11 03:45:10 +00:00
the-real-herowl d11526f8e8 Merge pull request 'Finish PVP Combat Parity with the rest + PVP Tweaks' (#4078) from Eliy21/MineClone2:combat_fixes into master
Reviewed-on: MineClone2/MineClone2#4078
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-30 04:21:18 +00:00
the-real-herowl b6938bad90 Merge pull request 'Fix a heisenbug' (#4098) from depends_patch into master
Reviewed-on: MineClone2/MineClone2#4098
2023-12-24 05:04:49 +00:00
the-real-herowl e1d5899aa5 Remove unneeded dependencies
This patches a heisenbug to be investigated later
2023-12-24 01:27:29 +01:00
JoseDouglas26 6480c6923a mcl_music pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 487f78d663 mcl_hunger pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 1c3003c85b mcl_spawn pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 9701526d16 mcl_skins pt_BR translation 2023-12-22 23:45:07 +01:00
Michieal ceada2fcec Merge pull request 'Fix translation files syntax errors' (#4061) from megustanlosfrijoles/frijolesclone2:warning-fix2 into master
Reviewed-on: MineClone2/MineClone2#4061
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Merged-by: michieal
2023-12-19 01:15:43 +00:00
the-real-herowl 8a5058e032 Unified and refactored FOV API code 2023-12-18 22:50:52 +00:00
the-real-herowl 5afd0aa255 Fixed the exclusive modifiers not being exclusive 2023-12-18 22:50:52 +00:00
Michieal 98b6ead591 Fixed a couple of errors
Removed a debug statement that was broken.
Changed `modififer` to `modifier` in a code block.
2023-12-18 22:50:52 +00:00
the-real-herowl 040ce8288e Script and documentation cleanup 2023-12-18 22:50:52 +00:00
the-real-herowl f9b192e68f Updated credits 2023-12-18 22:50:52 +00:00
the-real-herowl 08241f6ea3 Updated the api.md file 2023-12-18 22:50:52 +00:00
the-real-herowl 5bf6608483 Made bow unfocus faster 2023-12-18 22:50:52 +00:00
the-real-herowl 42ec62562d Moved sprinting into the new FOV api 2023-12-18 22:50:52 +00:00
the-real-herowl 7f5ce4e033 Fixed modifier application and removal 2023-12-18 22:50:52 +00:00
the-real-herowl a650f8b368 Made fovapi registration more robust 2023-12-18 22:50:52 +00:00
Michieal 580a1caa38 Reworked some of the Apply_Modifier code to help prevent errors. 2023-12-18 22:50:52 +00:00
Michieal 2f8389d3f5 Put in check to prevent Trying to Reference a Nil error in Apply_Modifier. 2023-12-18 22:50:52 +00:00