Browse Source

Increase default item_drop.magnet_radius.

master
poikilos 12 months ago
parent
commit
82f232cffc
  1. 2
      Bucket_Game-base/item_drop_larger_pickup_radius-vs-211114a/mods/codercore/item_drop/init.lua
  2. 4
      Bucket_Game-branches/item_drop_larger_pickup_radius-vs-211114a/mods/codercore/item_drop/init.lua
  3. 2
      Bucket_Game-branches/item_drop_larger_pickup_radius-vs-211114a/mods/codercore/item_drop/settingtypes.txt
  4. 34
      Bucket_Game-branches/item_drop_larger_pickup_radius-vs-240106master.patch

2
Bucket_Game-base/item_drop_larger_pickup_radius-vs-211114a/mods/codercore/item_drop/init.lua

@ -99,7 +99,7 @@ if legacy_setting_getbool("item_drop.enable_item_pickup",
minetest.sound_play("item_drop_pickup", { minetest.sound_play("item_drop_pickup", {
pos = pos, pos = pos,
gain = pickup_gain, gain = pickup_gain,
}) }, true)
if pickup_particle then if pickup_particle then
local item = minetest.registered_nodes[ local item = minetest.registered_nodes[
ent.itemstring:gsub("(.*)%s.*$", "%1")] ent.itemstring:gsub("(.*)%s.*$", "%1")]

4
Bucket_Game-branches/item_drop_larger_pickup_radius-vs-211114a/mods/codercore/item_drop/init.lua

@ -49,7 +49,7 @@ if legacy_setting_getbool("item_drop.enable_item_pickup",
local pickup_radius = legacy_setting_getnumber("item_drop.pickup_radius", local pickup_radius = legacy_setting_getnumber("item_drop.pickup_radius",
"item_pickup_radius", 1.425) "item_pickup_radius", 1.425)
local magnet_radius = tonumber( local magnet_radius = tonumber(
minetest.settings:get("item_drop.magnet_radius")) or -1 minetest.settings:get("item_drop.magnet_radius")) or 2.0
local magnet_time = tonumber( local magnet_time = tonumber(
minetest.settings:get("item_drop.magnet_time")) or 5.0 minetest.settings:get("item_drop.magnet_time")) or 5.0
local pickup_age = tonumber( local pickup_age = tonumber(
@ -99,7 +99,7 @@ if legacy_setting_getbool("item_drop.enable_item_pickup",
minetest.sound_play("item_drop_pickup", { minetest.sound_play("item_drop_pickup", {
pos = pos, pos = pos,
gain = pickup_gain, gain = pickup_gain,
}) }, true)
if pickup_particle then if pickup_particle then
local item = minetest.registered_nodes[ local item = minetest.registered_nodes[
ent.itemstring:gsub("(.*)%s.*$", "%1")] ent.itemstring:gsub("(.*)%s.*$", "%1")]

2
Bucket_Game-branches/item_drop_larger_pickup_radius-vs-211114a/mods/codercore/item_drop/settingtypes.txt

@ -25,7 +25,7 @@ item_drop.pickup_radius (Pickup radius) float 1.425
#Magnet radius, items between pickup_radius and this begin flying to the player #Magnet radius, items between pickup_radius and this begin flying to the player
#Set it to -1 (or something else smaller than pickup_radius) to disable item #Set it to -1 (or something else smaller than pickup_radius) to disable item
#flying #flying
item_drop.magnet_radius (Magnet radius) float -1 item_drop.magnet_radius (Magnet radius) float 2.0
#Item flight duration, items flying for more than this time are added to the #Item flight duration, items flying for more than this time are added to the
#player's inventory #player's inventory

34
Bucket_Game-branches/item_drop_larger_pickup_radius-vs-240106master.patch

@ -0,0 +1,34 @@
diff -ru Bucket_Game-base/item_drop_larger_pickup_radius-vs-211114a/mods/codercore/item_drop/init.lua Bucket_Game-branches/item_drop_larger_pickup_radius-vs-211114a/mods/codercore/item_drop/init.lua
--- Bucket_Game-base/item_drop_larger_pickup_radius-vs-211114a/mods/codercore/item_drop/init.lua 2024-01-07 15:31:52.094924122 -0500
+++ Bucket_Game-branches/item_drop_larger_pickup_radius-vs-211114a/mods/codercore/item_drop/init.lua 2024-01-07 15:30:18.254688388 -0500
@@ -47,9 +47,9 @@
local pickup_particle =
minetest.settings:get_bool("item_drop.pickup_particle", true)
local pickup_radius = legacy_setting_getnumber("item_drop.pickup_radius",
- "item_pickup_radius", 0.75)
+ "item_pickup_radius", 1.425)
local magnet_radius = tonumber(
- minetest.settings:get("item_drop.magnet_radius")) or -1
+ minetest.settings:get("item_drop.magnet_radius")) or 2.0
local magnet_time = tonumber(
minetest.settings:get("item_drop.magnet_time")) or 5.0
local pickup_age = tonumber(
Only in Bucket_Game-base/item_drop_larger_pickup_radius-vs-211114a/mods/codercore/item_drop: LICENSE
diff -ru Bucket_Game-base/item_drop_larger_pickup_radius-vs-211114a/mods/codercore/item_drop/settingtypes.txt Bucket_Game-branches/item_drop_larger_pickup_radius-vs-211114a/mods/codercore/item_drop/settingtypes.txt
--- Bucket_Game-base/item_drop_larger_pickup_radius-vs-211114a/mods/codercore/item_drop/settingtypes.txt 2022-01-10 17:45:45.764325296 -0500
+++ Bucket_Game-branches/item_drop_larger_pickup_radius-vs-211114a/mods/codercore/item_drop/settingtypes.txt 2024-01-07 15:30:22.042697904 -0500
@@ -20,12 +20,12 @@
item_drop.pickup_particle (Pickup particle) bool true
#Player pickup radius, the maximum distance from which items can be collected
-item_drop.pickup_radius (Pickup radius) float 0.75
+item_drop.pickup_radius (Pickup radius) float 1.425
#Magnet radius, items between pickup_radius and this begin flying to the player
#Set it to -1 (or something else smaller than pickup_radius) to disable item
#flying
-item_drop.magnet_radius (Magnet radius) float -1
+item_drop.magnet_radius (Magnet radius) float 2.0
#Item flight duration, items flying for more than this time are added to the
#player's inventory
Loading…
Cancel
Save