Commit graph

68 commits

Author SHA1 Message Date
teknomunk
a6363f779f 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-11-13 22:02:58 -06:00
teknomunk
76d654762a Fix luacheck findings for this PR: remove unused variables, remove overwritten value, add missing dependencies, fix undefined variable usage 2024-11-12 01:00:42 +01:00
teknomunk
17ed8ffa3a Undo conversions to use mcl_bows:arrow_entity and use arrow_item.."_entity" like master 2024-11-12 01:00:42 +01:00
teknomunk
6d75fc2f41 Prevent collisions with entities until projectile is at least one node from where it started (to prevent always hitting yourself), modify mcl_bows.shoot_arrow() and mcl_bows_s.shoot_arrow_crossbow() to use vl_projectile.create(), fix projectiles damaging players 2024-11-12 01:00:42 +01:00
teknomunk
da52e56397 Resolve review comments 2024-11-12 01:00:42 +01:00
teknomunk
a3cfb0c0c4 Convert rocket to use vl_projectile API using mcl_bows:arrow as a template, remove some dead code 2024-11-12 01:00:42 +01:00
teknomunk
cc1d0ce55e Fold tipped arrows into standard arrows and handle effects via item definition callback, remove arrows when they collide with entities, update handling of removing projectiles 2024-11-12 01:00:42 +01:00
teknomunk
3961a32fb4 Start mcl_bows:arrow_entity refactor 2024-11-12 01:00:42 +01:00
grorp
bd9ab16762 Add touch_interaction to (cross)bow and spyglass 2024-11-10 15:14:56 +01:00
Mikita Wiśniewski
f86a641dfa Improve shield block code and unhardcode offhand group 2024-11-10 01:34:50 +01: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
48e6ffa935 Improved tool tooltips (#4306)
Co-authored-by: Araca <araca.prod@gmail.com>
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4306
2024-05-22 18:55:07 +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: https://git.minetest.land/MineClone2/MineClone2/pulls/4078
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-30 04:21:18 +00:00
the-real-herowl
39f98ec6fb Updated doc strings for bow and crossbow
Mentioned the zoom key
2023-12-25 23:56:39 +01:00
the-real-herowl
9e3d7ce0f4 Added a workaround for mobile using zoom key
* Bow can now be used with zoom key aside of RMB
* Crossbow can now be loaded with zoom key as well
* Spyglass can now be used with zoom key
2023-12-25 23:50:06 +01:00
the-real-herowl
5bf6608483 Made bow unfocus faster 2023-12-18 22:50:52 +00:00
the-real-herowl
3a007e3bb1 Re-registered FOV mods using new API version 2023-12-18 22:50:52 +00:00
Michieal
36f661743e Set up the Bows to use the new FOV API. Bows now zoom in and clear out the zoom. 2023-12-18 22:50:52 +00:00
Eliy21
14cec16c63 Increase enchanted bow knockback 2023-12-18 21:31:38 +00:00
Eliy21
6d7ae8ba2d Add minimum unenchanted knockback to bow 2023-12-17 19:59:18 +00:00
Eliy21
7cbba73d50 Combat (mostly PvE) rebalancing (#4005)
-Added short mob invulnerability time after being hit
-Added separate shorter range for hitting mobs (as opposed to node interaction)
-Reworked mob knockback
-Slowed down natural health regeneration from saturation
-Added a setting for the saturation health regen speed

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/4005
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>
2023-11-23 00:32:23 +00:00
AFCMS
cd33d406b2 fix many codestyle issues (functions, strings, modpaths) 2021-05-29 16:12:33 +02:00
AFCMS
5f82e76862 fix many codestyle issues 2021-05-28 00:34:58 +02:00
AFCMS
b7bf566190 [mcl_bows] fix warnings 2021-05-23 01:06:34 +02:00
Elias Fleckenstein
ce0148d9a8 Rewrite armor; new damage system 2021-04-14 15:46:52 +02:00
AFCMS
339e3e2792 fix some tools not using right var 2021-04-05 14:32:48 +02:00
AFCMS
5d17a6b699 fix SO MANY pairs/ipairs 2021-03-16 17:35:46 +01:00
AFCMS
fa0ea94433 replace pairs() by ipairs() in mcl_bow 2021-02-18 15:35:52 +00:00
HimbeerserverDE
a3ccb54376 Merge branch 'master' of https://git.minetest.land/Wuzzy/MineClone2 2021-01-27 20:13:16 +01:00
HimbeerserverDE
00df587bf7 Add flame enchantment 2021-01-27 20:11:02 +01:00
Elias Fleckenstein
248272a128 Fix #1018 2021-01-27 16:01:04 +01:00
Elias Fleckenstein
5ede42bbe7 Fix #1020 2021-01-27 15:46:10 +01:00
Elias Fleckenstein
08a8b155d7 Fix #906 and #902 2021-01-06 12:43:09 +01:00
Elias Fleckenstein
a4d9d22bb0 Mending 2020-12-21 15:12:24 +01:00
kay27
5da02bb8cc Merge https://git.minetest.land/EliasFleckenstein03/MineClone2 2020-12-13 03:00:04 +04:00
Wuzzy
63e8b8cb63 New bow+arrow sounds 2020-12-08 16:07:49 +01:00
Elias Fleckenstein
ed738da016 Added Enchanting Table 2020-11-25 12:47:27 +01:00
Wuzzy
41af1eddba Reset pointing range limit for bow 2020-11-12 11:47:42 +01:00
Elias Fleckenstein
494ffb41d3 Punch 2020-11-06 15:05:31 +01:00
Elias Fleckenstein
bbc6db489e Power 2020-11-05 15:25:44 +01:00
Elias Fleckenstein
a516eccd6d Unbreaking for Bows 2020-11-02 15:09:11 +01:00
Elias Fleckenstein
e09ecb5431 Enchanted Books; Fishing Rod Support; Curse of Binding 2020-11-01 17:24:57 +01:00
Elias Fleckenstein
26f3d821a4 Proper anvil naming support 2020-11-01 13:44:05 +01:00
Elias Fleckenstein
76303ae194 Working Infinity Enchantment 2020-10-27 20:02:46 +01:00
Elias Fleckenstein
a76fb8dd57 Added tt support, made enchanted bows function properly 2020-10-27 19:53:49 +01:00
Elias Fleckenstein
1cef707c6c /enchant working 2020-10-27 18:19:49 +01:00
Elias Fleckenstein
79b624bc5c First Steps 2020-10-27 16:37:25 +01:00
Wuzzy
988056ad08 Fix bow in creative mode not having inf. ammo 2020-08-19 15:05:23 +02:00
Wuzzy
4acf953334 Add critical hit particles for bow 2020-08-19 14:45:37 +02:00
Brandon
c4271cf13d Correct crash when no arrow is in the inventory and the bow is drawn. 2020-07-21 18:55:41 -04:00