mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01:00
Make catching XP orbs easier
This commit is contained in:
parent
4d54766590
commit
6fcf1cf09f
1 changed files with 2 additions and 2 deletions
|
@ -331,8 +331,8 @@ local function xp_step(self, dtime)
|
|||
velocity = vector.multiply(direction,multiplier)
|
||||
goal = velocity
|
||||
acceleration = vector.new(goal.x-currentvel.x,goal.y-currentvel.y,goal.z-currentvel.z)
|
||||
self.object:add_velocity(vector.add(acceleration,player_velocity or vector.new(0, 0, 0)))
|
||||
elseif distance < 0.4 then
|
||||
self.object:add_velocity(vector.add(acceleration,player_velocity))
|
||||
elseif distance < 0.8 then
|
||||
local xp = self._xp
|
||||
local inv = collector:get_inventory()
|
||||
local candidates = {
|
||||
|
|
Loading…
Reference in a new issue