Commit Graph

868 Commits

Author SHA1 Message Date
the-real-herowl
bf77996b57 Added spears 2024-12-29 08:09:33 +01:00
the-real-herowl
ce95290fa8 Added hammers 2024-12-29 08:09:33 +01:00
the-real-herowl
43539e1392 Make sure self.rotate is not nil before use (#4759)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4759
Co-authored-by: the-real-herowl <wiktor_t-i@proton.me>
Co-committed-by: the-real-herowl <wiktor_t-i@proton.me>
2024-12-29 08:05:52 +01:00
teknomunk
7de503770f Address review concerns 2024-12-25 11:52:24 +01:00
teknomunk
60e3c139cc Change mcl_mobs to use mcl_util.remove_entity() when killing mobs, add guard in vl_projectile against removed mobs 2024-12-25 11:52:24 +01:00
teknomunk
bb934d09ee Break long lines, add space between functions in vl_projectile/init.lua 2024-12-25 11:52:24 +01:00
teknomunk
bc321ccae4 Add _vl_projectile.can_punch() to mob API and move hard-coded entity behavior from arrow to rover code 2024-12-25 11:52:24 +01:00
teknomunk
a2167e7dfc Change to use nil radius in within_limits(pos,radius) check 2024-12-25 11:52:24 +01:00
teknomunk
88cd54a03b Add reference to Projectile API documentatino from mob API documentation 2024-12-25 11:52:24 +01:00
teknomunk
0d8f7515c6 Update minetest->Luanti in affected documentation, update minetest. -> core. in affected code, factor out common subexpressions in mods/ITEMS/vl_projectile/init.lua 2024-12-25 11:52:24 +01:00
teknomunk
7c8da2eba7 Rework self.timer and _owner collision conditions 2024-12-25 11:52:24 +01:00
teknomunk
aa8cec9911 Implement mcl_util.remove_entity() and convert projectile code to use it 2024-12-25 11:52:24 +01:00
teknomunk
2fcd4ff69f Fix condition on node collision for mob projectiles 2024-12-25 11:52:24 +01:00
teknomunk
1df10c8dd3 Correct damage for mob projectiles 2024-12-25 11:52:24 +01:00
teknomunk
efa6e7d2d0 Move arrow self-collision grace logic to vl_projectile then apply to mob projectiles and splash and linger potions, allow entity luaentity to be passed to mcl_util.get_entity_id() 2024-12-25 11:52:24 +01:00
teknomunk
2d56deacf6 Replace _puncher with _owner, rework projectile code to make _owner a string, copy mcl_util.gen_uuid() from minecart branch, add mcl_util.get_entity_id(), fix crash 2024-12-25 11:52:24 +01:00
the-real-herowl
515b5bc5c7 Fixed abnormal skull rotation 2024-12-25 11:52:24 +01:00
teknomunk
642c474012 Stop wither from shooting itself 2024-12-25 11:52:24 +01:00
teknomunk
f9aa61ff5a Fix unintentional collision box change 2024-12-25 11:52:24 +01:00
teknomunk
b821f3d72f Fix luacheck findings for this PR: remove unused variables, remove overwritten value, add missing dependencies, fix undefined variable usage 2024-12-25 11:52:24 +01:00
teknomunk
b23b16842c Allow mob projectiles to hit their owner after 2 seconds (used by ghast fireball) 2024-12-25 11:52:24 +01:00
teknomunk
b339d5f13f Remove redundant check 2024-12-25 11:52:24 +01:00
teknomunk
2864e8fa30 Correct behavior when ignore_gravity flag is true, fix mob projectile velocity calculation, add missing entity_def lookup 2024-12-25 11:52:24 +01:00
teknomunk
b4e6417b92 Convert mcl_mobs.register_arrow() to use vl_projectile, tested only with shulker bullet so far 2024-12-25 11:52:24 +01:00
kno10
e96bec0ad0 Fix strider spawning (#4747)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4747
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-12-23 13:48:18 +01:00
kno10
c73baa3886 German translation updates 2024-12-18 18:42:25 +01:00
kno10
3ecda2e70d auto-update translation files 2024-12-16 01:16:32 +01:00
ethan
4db34098d9 Contributed simplified Chinese translations 2024-12-16 01:16:32 +01:00
Bloodaxe
7856f97f8e Added all my localization files for Norwegian Bokmål 2024-12-16 01:16:32 +01:00
0ldude
3fd1b9d96f tr mods/CORE & mods/ENTITIES to it 2024-12-16 01:16:32 +01:00
Mikita Wiśniewski
e42a863d92 Fix crash on mobs spawning in <5.9 (#4737)
This patches a copypaste blunder made in ef763e396c.

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4737
Reviewed-by: kno10 <kno10@noreply.git.minetest.land>
Co-authored-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-committed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
2024-12-07 14:58:17 +01:00
kno10
f14ff83737 mob attack tweaks 2024-12-01 00:53:42 +01:00
kno10
6510ea4777 fix child == true when child = 1 2024-12-01 00:53:42 +01:00
kno10
932118f10b More tweaks to pathfinding 2024-12-01 00:53:42 +01:00
kno10
4388152650 Make villagers hurry for long paths and night 2024-12-01 00:53:42 +01:00
kno10
5779be305c avoid trivial fences, open some fence gates 2024-12-01 00:53:42 +01:00
kno10
86f4d8243d Improve starting and end point of pathfinding. 2024-12-01 00:53:42 +01:00
kno10
f377f97348 pathfinding improvements 2024-12-01 00:53:42 +01:00
kno10
230cd5154c Improve danger avoidance code. 2024-12-01 00:53:42 +01:00
kno10
54bc4f7545 fix and optimize Fleckenstein 2024-12-01 00:53:42 +01:00
kno10
a67938904e small code cleanups 2024-12-01 00:53:42 +01:00
kno10
63c83cf440 also cleanup mount.lua 2024-12-01 00:53:42 +01:00
kno10
83cec7ed23 some more cleanups, from code review 2024-12-01 00:53:42 +01:00
kno10
084211d87e code cleanups 2024-12-01 00:53:42 +01:00
kno10
5b27cb80fe movement improvements, door opening 2024-12-01 00:53:42 +01:00
kno10
e78f5cdbe9 further movement tweaks 2024-12-01 00:53:42 +01:00
kno10
e4deb9c7b5 Movement and path finding improvements. 2024-12-01 00:53:42 +01:00
kno10
77c6c34d0e Mob pushing improvements 2024-12-01 00:53:42 +01:00
kno10
b91f48b419 add and use turn_by/turn_in_direction methods 2024-12-01 00:53:42 +01:00
kno10
5eda59dc13 reduce code duplication, add mob:stand() 2024-12-01 00:53:42 +01:00