Commit Graph

64 Commits (main)

Author SHA1 Message Date
mckaygerhard 3ae96044a6 upstream merge sync: fix redundant checks for players, backguard compatibility
* sync commit "added 0.4.x support and fake player check function"
2023-07-24 05:54:49 -04:00
mckaygerhard cd4833fae7 it was not a bug at lucky_block.lua
* this revert partially commit 41bd87405d
  becouse https://notabug.org/TenPlus1/stamina/issues/14
2023-07-24 05:41:16 -04:00
mckaygerhard a39c32d1d0 sync code with MR and comment on performance issues
* do not check fake players in callbacks due performance impack
  but made proper player checks on each loop cos each loop
  retrieve players at live so a suddent disconected player may
  happened or craker player with invalid object that property
  check at `ck_player(obj)`
* added comments about this, this commit tries to sync the MR at
  https://notabug.org/TenPlus1/stamina/pulls/16
  until (as always) tenplus1 commit their own solution
2023-07-23 21:01:21 -04:00
mckaygerhard 26ae940ec9 fix confused code and redundant checks for fake players, backguard compatibility
* level its not property set on join player due inherit code
* real check player for fake players provided in ch_player function
* do not check fake players in callbacks due performance impack
* the level of the attribute its never set property, was backguard compatibilty part
* closes and fixed https://notabug.org/TenPlus1/stamina/issues/15
* this mod now works with older engines 0.4 and also newer 5.X
2023-07-23 20:17:25 -04:00
mckaygerhard 41bd87405d sync player nil checks; add settings for stamina speed, jump and drain
* add settings for stamina speed, jump and drain
* Merge branch 'master' of https://notabug.org/TenPlus1/stamina into main-sync
* Fix https://notabug.org/TenPlus1/stamina/issues/14 extra end at line 16
* property dont update hud/hunger if damage not enabled
* added more nil player checks due constant loop codes inside functions
* sync license and replace sip sound with licensed one
2023-07-23 18:37:50 -04:00
tenplus1 edb8199c70 dont update hud/hunger if damage not enabled 2023-01-17 09:46:38 +00:00
tenplus1 44141e678e remove print line 2022-12-22 08:36:04 +00:00
tenplus1 a92128b6ee add settings for stamina speed, jump and drain (thankx Awkanimus) 2022-12-22 08:34:51 +00:00
tenplus1 c84bee49b2 add loaded msg 2022-12-19 17:00:04 +00:00
tenplus1 48fdde0122 add license.txt file 2022-11-29 08:12:54 +00:00
tenplus1 6814cc85ee replace sip sound with licensed one 2022-11-24 08:36:52 +00:00
tenplus1 dbb5be1e31 use wield image if inventory image not found 2022-10-30 08:08:26 +00:00
tenplus1 96570a558e if enable_damage is false, disable eating functions 2022-08-02 14:10:31 +01:00
tenplus1 0fb4e82b58 tweak lucky blocks and update readme 2022-07-30 07:45:07 +01:00
tenplus1 9a175b5dfb add player nil checks where needed 2022-01-22 08:15:26 +00:00
Герхард PICCORO Lenz McKAY c328513513 Improve the readme for minenux 2022-01-21 10:06:44 -04:00
Герхард PICCORO Lenz McKAY 7912e7c95b hotfixes checks for player object on sudden disconnections
* is very know bug never resolved at https://github.com/minetest/minetest#8452
* In fact there's already some check for players around connected players but only for names
* this fixed and close https://notabug.org/TenPlus1/stamina/issues/8
* this fixed and close https://codeberg.org/minenux/minetest-mod-stamina/issues/8
* already fix backguard compat for eye_height close https://codeberg.org/minenux/minetest-mod-stamina/issues/9
* already fix backguard compat for eye_height closes https://notabug.org/TenPlus1/stamina/issues/9
2022-01-21 09:39:43 -04:00
tenplus1 5fd2b2e5c9 fix player monoid bug (thanks Bastrabun) 2022-01-21 08:41:39 +00:00
tenplus1 7971f5ce44 add nil check 2021-07-13 20:58:56 +01:00
tenplus1 ec07a652b0 Signed-off-by: tenplus1 <kinsellaja@yahoo.com> 2021-07-13 20:57:56 +01:00
tenplus1 f83ee21cac fix nil pos on drop 2021-07-06 08:39:52 +01:00
tenplus1 2a01d97315 change dig and craft exhaustion levels 2021-07-03 13:42:23 +01:00
tenplus1 7b7b45360e add particle effects for being drunk and poisoned 2021-06-21 12:24:41 +01:00
tenplus1 3ebe58f854 add poison and drunk effect to lucky blocks 2021-06-08 18:54:27 +01:00
tenplus1 2fd7a45f31 add stamina.mod = "redo" flag, add lucky blocks 2021-06-08 18:27:28 +01:00
tenplus1 cd681aa6da eating particles appear at eye level 2021-04-02 10:10:36 +01:00
tenplus1 aacc11d64c tidy and tweak code, add some nil checks 2021-02-19 16:22:43 +00:00
tenplus1 d597cf488c add nil check 2021-02-08 20:30:28 +00:00
tenplus1 294ddbf283 update mod.conf info 2021-01-21 10:46:04 +00:00
tenplus1 715a58d34f stamina_tick settings added to menu, soy_milk heals poison effect, code tidy 2021-01-06 14:41:39 +00:00
tenplus1 5166bf7796 update settings 2020-12-30 13:17:48 +00:00
tenplus1 b1497e7165 code tidy 2020-11-09 13:25:21 +00:00
tenplus1 f13a9456d9 add nil check for sprint 2020-08-29 17:26:21 +01:00
tenplus1 e82125db98 add nil check for sprint 2020-08-23 13:49:06 +01:00
tenplus1 ed153b9e60 nil check for poisoned 2020-07-31 18:42:11 +01:00
TenPlus1 d0c0e4c78a bucket or glass of milk negates drunk and poison effects 2020-06-30 20:26:09 +01:00
TenPlus1 f46e004c1e play sip sound when item eaten has {drink=1} group set, burp every 20 seconds when drunk 2020-06-30 20:01:12 +01:00
tenplus1 250cbeca55 stop being drunk or poisoned after drinking bucket of milk 2020-06-20 21:43:42 +01:00
tenplus1 95ae8a2894 nil check for controls 2020-06-16 21:13:05 +01:00
TenPlus1 7951c8bc6e tweak code 2020-06-05 20:40:43 +01:00
TenPlus1 04d394c75d hp_change now has reasons added 2020-05-17 20:09:36 +01:00
TenPlus1 ae318e73a6 use player meta 2020-04-12 16:01:56 +01:00
TenPlus1 8b766a1ba0 do not update stamina if 'interact' priv not true 2019-07-23 11:47:59 +01:00
TenPlus1 0f57240fd1 dont apply starvation damage if already dead 2019-07-17 12:55:42 +01:00
TenPlus1 fa04ff3fdc add screenshot 2019-03-02 19:37:37 +00:00
TenPlus1 2018b55168 reverted back to previous player loops 2019-03-01 11:55:59 +00:00
TenPlus1 ac55721c95 tweak code 2019-02-28 13:06:44 +00:00
TenPlus1 a8119b5e3f reset hud on death if poisoned or drunk 2019-02-28 10:22:54 +00:00
TenPlus1 173b4fde48 tweaked drunk effects, tweaked and tidied code 2019-02-28 10:11:18 +00:00
TenPlus1 b825006c0b dont do drunk effects when player is riding boat/cart/horse etc. 2019-02-27 15:50:54 +00:00