7.09 KB
minetest-mod-throwing version 1.1-1~jan+unchanged1 (unchanged) vs.
minetest-mod-throwing version 1.1+git20200510.4c50e6b-1~jan+nus1 (fresh-snapshots)
6.95 KB
minetest-mod-throwing_1.1+git20200510.4c50e6b-1_all.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2020-04-02·15:48:12.000000·debian-binary1 -rw-r--r--···0········0········0········4·2020-04-02·15:48:12.000000·debian-binary
2 -rw-r--r--···0········0········0······772·2020-04-02·15:48:12.000000·control.tar.xz2 -rw-r--r--···0········0········0······788·2020-04-02·15:48:12.000000·control.tar.xz
3 -rw-r--r--···0········0········0·····7636·2020-04-02·15:48:12.000000·data.tar.xz3 -rw-r--r--···0········0········0·····7724·2020-04-02·15:48:12.000000·data.tar.xz
461 B
control.tar.xz
433 B
control.tar
411 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./
2 -rw-r--r--···0·root·········(0)·root·········(0)······571·2020-04-02·15:48:12.000000·./control2 -rw-r--r--···0·root·········(0)·root·········(0)······585·2020-04-02·15:48:12.000000·./control
3 -rw-r--r--···0·root·········(0)·root·········(0)······417·2020-04-02·15:48:12.000000·./md5sums3 -rw-r--r--···0·root·········(0)·root·········(0)······417·2020-04-02·15:48:12.000000·./md5sums
5.95 KB
data.tar.xz
5.93 KB
data.tar
2.2 KB
file list
    
Offset 1, 14 lines modifiedOffset 1, 14 lines modified
1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./
2 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./usr/2 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./usr/
3 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./usr/share/3 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./usr/share/
4 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./usr/share/doc/4 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./usr/share/doc/
5 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./usr/share/doc/minetest-mod-throwing/5 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./usr/share/doc/minetest-mod-throwing/
6 -rw-r--r--···0·root·········(0)·root·········(0)·····2836·2020-04-02·15:17:31.000000·./usr/share/doc/minetest-mod-throwing/README.md.gz6 -rw-r--r--···0·root·········(0)·root·········(0)·····2894·2020-04-02·15:48:12.000000·./usr/share/doc/minetest-mod-throwing/README.md.gz
7 -rw-r--r--···0·root·········(0)·root·········(0)······347·2020-04-02·15:48:12.000000·./usr/share/doc/minetest-mod-throwing/changelog.Debian.gz7 -rw-r--r--···0·root·········(0)·root·········(0)······376·2020-04-02·15:48:12.000000·./usr/share/doc/minetest-mod-throwing/changelog.Debian.gz
8 -rw-r--r--···0·root·········(0)·root·········(0)······415·2020-04-02·15:48:12.000000·./usr/share/doc/minetest-mod-throwing/copyright8 -rw-r--r--···0·root·········(0)·root·········(0)······415·2020-04-02·15:48:12.000000·./usr/share/doc/minetest-mod-throwing/copyright
9 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./usr/share/games/9 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./usr/share/games/
10 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./usr/share/games/minetest/10 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./usr/share/games/minetest/
11 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./usr/share/games/minetest/mods/11 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./usr/share/games/minetest/mods/
12 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./usr/share/games/minetest/mods/throwing/12 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-04-02·15:48:12.000000·./usr/share/games/minetest/mods/throwing/
13 -rw-r--r--···0·root·········(0)·root·········(0)····14056·2020-04-02·15:17:31.000000·./usr/share/games/minetest/mods/throwing/init.lua13 -rw-r--r--···0·root·········(0)·root·········(0)····14035·2020-04-02·15:48:12.000000·./usr/share/games/minetest/mods/throwing/init.lua
14 -rw-r--r--···0·root·········(0)·root·········(0)······154·2020-04-02·15:17:31.000000·./usr/share/games/minetest/mods/throwing/mod.conf14 -rw-r--r--···0·root·········(0)·root·········(0)······154·2020-04-02·15:48:12.000000·./usr/share/games/minetest/mods/throwing/mod.conf
1.17 KB
./usr/share/doc/minetest-mod-throwing/README.md.gz
1.07 KB
README.md
    
Offset 89, 14 lines modifiedOffset 90, 15 lines modified
89 function·throwing.register_arrow(name,·definition·table)90 function·throwing.register_arrow(name,·definition·table)
90 --[[91 --[[
91 Name:·Arrow·name.·If·it·doesn't·contain·":",·the·"throwing:"·prefix·will·be·added.92 Name:·Arrow·name.·If·it·doesn't·contain·":",·the·"throwing:"·prefix·will·be·added.
92 Definition:·definition·table,·containing:93 Definition:·definition·table,·containing:
93 ··*·tiles·(essential):·tiles·of·the·arrow.94 ··*·tiles·(essential):·tiles·of·the·arrow.
94 ··*·target·(optional,·defaulting·to·throwing.target_both):·what·the·arrow·is·able·to·hit·(throwing.target_node,·throwing.target_object,·throwing.target_both).95 ··*·target·(optional,·defaulting·to·throwing.target_both):·what·the·arrow·is·able·to·hit·(throwing.target_node,·throwing.target_object,·throwing.target_both).
95 ··*·allow_protected·(optional,·defaulting·to·false):·whether·the·arrow·can·be·throw·in·a·protected·area96 ··*·allow_protected·(optional,·defaulting·to·false):·whether·the·arrow·can·be·throw·in·a·protected·area
 97 ··*·mass·(optional,·defaulting·to·1):·the·mass·of·the·arrow·(see·above)
96 ··*·on_hit_sound·(optional):·sound·played·when·the·arrow·hits·a·node·or·an·object.98 ··*·on_hit_sound·(optional):·sound·played·when·the·arrow·hits·a·node·or·an·object.
97 ··*·on_hit(self,·pos,·last_pos,·node,·object,·hitter,·data)·(optional·but·very·useful):·callback·function:99 ··*·on_hit(self,·pos,·last_pos,·node,·object,·hitter,·data)·(optional·but·very·useful):·callback·function:
98 ····-·pos:·the·position·of·the·hit·node·or·object.100 ····-·pos:·the·position·of·the·hit·node·or·object.
99 ····-·last_pos:·the·last·air·node·where·the·arrow·was101 ····-·last_pos:·the·last·air·node·where·the·arrow·was
100 ····-·node·and·object:·hit·node·or·object.·Either·node·or·object·is·nil,·depending102 ····-·node·and·object:·hit·node·or·object.·Either·node·or·object·is·nil,·depending
101 ······whether·the·arrow·hit·a·node·or·an·object.103 ······whether·the·arrow·hit·a·node·or·an·object.
102 ····-·hitter:·an·ObjectRef·to·the·thrower·player.104 ····-·hitter:·an·ObjectRef·to·the·thrower·player.
710 B
./usr/share/doc/minetest-mod-throwing/changelog.Debian.gz
596 B
changelog.Debian
    
Offset 1, 12 lines modifiedOffset 1, 13 lines modified
1 minetest-mod-throwing·(1.1+git20200510.4c50e6b-1)·unchanged;·urgency=medium1 minetest-mod-throwing·(1.1+git20200510.4c50e6b-1)·fresh-snapshots;·urgency=medium
  
 2 ··*·New·upstream·snapshot.
2 ··*·Build·for·debian-janitor·apt·repository.3 ··*·Build·for·debian-janitor·apt·repository.
  
3 ·--·Debian·Janitor·<janitor@jelmer.uk>··Mon,·06·Jul·2020·03:34:45·+00004 ·--·Debian·Janitor·<janitor@jelmer.uk>··Mon,·06·Jul·2020·03:32:34·+0000
  
4 minetest-mod-throwing·(1.1-1)·unstable;·urgency=medium5 minetest-mod-throwing·(1.1-1)·unstable;·urgency=medium
  
5 ··*·New·upstream·release.6 ··*·New·upstream·release.
  
6 ·--·Julien·Puydt·<jpuydt@debian.org>··Thu,·02·Apr·2020·17:36:37·+02007 ·--·Julien·Puydt·<jpuydt@debian.org>··Thu,·02·Apr·2020·17:36:37·+0200
  
1.85 KB
./usr/share/games/minetest/mods/throwing/init.lua
    
Offset 397, 42 lines modifiedOffset 392, 50 lines modified
397 »       »       »       minetest.sound_play(def.sound,·{to_player=user:get_player_name()})392 »       »       »       minetest.sound_play(def.sound,·{to_player=user:get_player_name()})
398 »       »       end393 »       »       end
  
399 »       »       meta:set_int("delay",·os.time()·+·(def.delay·or·0))394 »       »       meta:set_int("delay",·os.time()·+·(def.delay·or·0))
400 »       »       minetest.after(def.delay·or·0,·function()395 »       »       minetest.after(def.delay·or·0,·function()
401 »       »       »       --·Re-check·that·the·arrow·can·be·thrown.·Overwrite·the·new_stack396 »       »       »       --·Re-check·that·the·arrow·can·be·thrown.·Overwrite·the·new_stack
402 »       »       »       local·old_new_stack·=·new_stack397 »       »       »       local·old_new_stack·=·new_stack
  
 398 »       »       »       local·arrow_stack·=·user:get_inventory():get_stack("main",·arrow_index)
  
403 »       »       »       res,·new_stack·=·def.allow_shot(user,·user:get_inventory():get_stack("main",·arrow_index),·arrow_index,·true)399 »       »       »       res,·new_stack·=·def.allow_shot(user,·arrow_stack,·arrow_index,·true)
 400 »       »       »       if·not·res·then
 401 »       »       »       »       return
 402 »       »       »       end
  
404 »       »       »       if·not·new_stack·then403 »       »       »       if·not·new_stack·then
405 »       »       »       »       new_stack·=·old_new_stack404 »       »       »       »       new_stack·=·old_new_stack
406 »       »       »       end405 »       »       »       end
407 »       »       »       if·not·res·then406 »       »       »       if·not·new_stack·then
408 »       »       »       »       return407 »       »       »       »       arrow_stack:take_item()
 408 »       »       »       »       new_stack·=·arrow_stack
409 »       »       »       end409 »       »       »       end
  
410 »       »       »       --·Shoot·arrow410 »       »       »       --·Shoot·arrow
411 »       »       »       local·uses·=·65535·/·(def.uses·or·50)411 »       »       »       local·uses·=·65535·/·(def.uses·or·50)
412 »       »       »       local·toolranks_data412 »       »       »       local·toolranks_data
413 »       »       »       if·enable_toolranks·then413 »       »       »       if·enable_toolranks·then
414 »       »       »       »       toolranks_data·=·{414 »       »       »       »       toolranks_data·=·{
415 »       »       »       »       »       itemstack·=·itemstack,415 »       »       »       »       »       name·=·itemstack:get_name(),
416 »       »       »       »       »       index·=·bow_index,416 »       »       »       »       »       index·=·bow_index,
417 »       »       »       »       »       wear·=·uses417 »       »       »       »       »       wear·=·uses
418 »       »       »       »       }418 »       »       »       »       }
419 »       »       »       end419 »       »       »       end
420 »       »       »       if·shoot_arrow(def,·toolranks_data,·user,·bow_index,·def.throw_itself,·new_stack)·then420 »       »       »       if·shoot_arrow(def,·toolranks_data,·user,·bow_index,·def.throw_itself,·new_stack)·then
421 »       »       »       »       if·not·minetest.settings:get_bool("creative_mode")·then421 »       »       »       »       if·not·minetest.settings:get_bool("creative_mode")·then
422 »       »       »       »       »       itemstack:add_wear(uses)422 »       »       »       »       »       itemstack:add_wear(uses)
423 »       »       »       »       end423 »       »       »       »       end
424 »       »       »       end424 »       »       »       end
  
  
425 »       »       »       if·def.throw_itself·then425 »       »       »       if·def.throw_itself·then
426 »       »       »       »       --·This·is·a·bug.·If·we·return·ItemStack(nil),·the·player·punches·the·entity,426 »       »       »       »       --·This·is·a·bug.·If·we·return·ItemStack(nil),·the·player·punches·the·entity,
427 »       »       »       »       --·and·if·the·entity·if·a·__builtin:item,·it·gets·back·to·his·inventory.427 »       »       »       »       --·and·if·the·entity·is·a·__builtin:item,·it·gets·back·to·his·inventory.
428 »       »       »       »       minetest.after(0.1,·function()428 »       »       »       »       minetest.after(0.1,·function()
429 »       »       »       »       »       user:get_inventory():remove_item("main",·itemstack)429 »       »       »       »       »       user:get_inventory():remove_item("main",·itemstack)
430 »       »       »       »       end)430 »       »       »       »       end)
431 »       »       »       elseif·cooldown·>·0·then431 »       »       »       elseif·cooldown·>·0·then
432 »       »       »       »       meta:set_int("cooldown",·os.time()·+·cooldown)432 »       »       »       »       meta:set_int("cooldown",·os.time()·+·cooldown)
433 »       »       »       end433 »       »       »       end
434 »       »       »       user:get_inventory():set_stack("main",·bow_index,·itemstack)434 »       »       »       user:get_inventory():set_stack("main",·bow_index,·itemstack)