123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582 |
- dofile(minetest.get_modpath("lottweapons") .. "/special.lua")
- dofile(minetest.get_modpath("lottweapons") .. "/crafting.lua")
- --Weapons!
- -- Battle axes:
- minetest.register_tool("lottweapons:wood_battleaxe", {
- description = "Training Battleaxe",
- inventory_image = "lottweapons_wood_battleaxe.png",
- tool_capabilities = {
- full_punch_interval = 2,
- max_drop_level=1,
- groupcaps={
- choppy={times={[1]=3.75, [2]=2.75, [3]=2.05}, uses=5, maxlevel=1},
- snappy={times={[1]=2.75, [2]=1.75, [3]=0.75}, uses=5, maxlevel=1},
- },
- damage_groups = {fleshy=.50},
- },
- })
- minetest.register_tool("lottweapons:stone_battleaxe", {
- description = "Stone Battleaxe",
- inventory_image = "lottweapons_stone_battleaxe.png",
- tool_capabilities = {
- full_punch_interval = 1.50,
- max_drop_level=1,
- groupcaps={
- choppy={times={[1]=3.35, [2]=2.10, [3]=1.85}, uses=5, maxlevel=1},
- snappy={times={[1]=2.75, [2]=1.75, [3]=0.75}, uses=5, maxlevel=1},
- },
- damage_groups = {fleshy=1.50},
- },
- })
- minetest.register_tool("lottweapons:copper_battleaxe", {
- description = "Copper Battleaxe",
- inventory_image = "lottweapons_copper_battleaxe.png",
- tool_capabilities = {
- full_punch_interval = 1.25,
- max_drop_level=1,
- groupcaps={
- choppy={times={[1]=3.25, [2]=2.00, [3]=1.75}, uses=5, maxlevel=1},
- snappy={times={[1]=2.75, [2]=1.45, [3]=0.60}, uses=10, maxlevel=1},
- },
- damage_groups = {fleshy=3},
- },
- })
- minetest.register_tool("lottweapons:tin_battleaxe", {
- description = "Tin Battleaxe",
- inventory_image = "lottweapons_tin_battleaxe.png",
- tool_capabilities = {
- full_punch_interval = 1.25,
- max_drop_level=1,
- groupcaps={
- choppy={times={[1]=3.25, [2]=2.00, [3]=1.75}, uses=5, maxlevel=1},
- snappy={times={[1]=2.75, [2]=1.45, [3]=0.60}, uses=10, maxlevel=1},
- },
- damage_groups = {fleshy=3},
- },
- })
- minetest.register_tool("lottweapons:steel_battleaxe", {
- description = "Steel Battleaxe",
- inventory_image = "lottweapons_steel_battleaxe.png",
- tool_capabilities = {
- full_punch_interval = 1.05,
- max_drop_level=1,
- groupcaps={
- choppy={times={[1]=3, [2]=1.90, [3]=1.50}, uses=15, maxlevel=2},
- snappy={times={[1]=2.75, [2]=1.45, [3]=0.60}, uses=25, maxlevel=2},
- },
- damage_groups = {fleshy=4.5},
- },
- })
- minetest.register_tool("lottweapons:bronze_battleaxe", {
- description = "Bronze Battleaxe",
- inventory_image = "lottweapons_bronze_battleaxe.png",
- tool_capabilities = {
- full_punch_interval = 0.90,
- max_drop_level=1,
- groupcaps={
- choppy={times={[1]=2.80, [2]=1.70, [3]=1.30}, uses=20, maxlevel=2},
- snappy={times={[1]=2.55, [2]=1.25, [3]=0.50}, uses=30, maxlevel=2},
- },
- damage_groups = {fleshy=5},
- },
- })
- minetest.register_tool("lottweapons:silver_battleaxe", {
- description = "Silver Battleaxe",
- inventory_image = "lottweapons_silver_battleaxe.png",
- tool_capabilities = {
- full_punch_interval = 1,
- max_drop_level=1,
- groupcaps={
- choppy={times={[1]=2.80, [2]=1.70, [3]=1.30}, uses=15, maxlevel=2},
- snappy={times={[1]=2.60, [2]=1.30, [3]=0.50}, uses=25, maxlevel=2},
- },
- damage_groups = {fleshy=5.5},
- },
- })
- minetest.register_tool("lottweapons:gold_battleaxe", {
- description = "Gold Battleaxe",
- inventory_image = "lottweapons_gold_battleaxe.png",
- tool_capabilities = {
- full_punch_interval = 0.75,
- max_drop_level=1,
- groupcaps={
- choppy={times={[1]=2.80, [2]=1.70, [3]=1.30}, uses=20, maxlevel=2},
- snappy={times={[1]=2.60, [2]=1.30, [3]=0.50}, uses=30, maxlevel=2},
- },
- damage_groups = {fleshy=5.5},
- },
- })
- minetest.register_tool("lottweapons:galvorn_battleaxe", {
- description = "Galvorn Battleaxe",
- inventory_image = "lottweapons_galvorn_battleaxe.png",
- groups = {forbidden=1},
- tool_capabilities = {
- full_punch_interval = 0.5,
- max_drop_level=1,
- groupcaps={
- choppy={times={[1]=2.50, [2]=1.50, [3]=.90}, uses=25, maxlevel=2},
- snappy={times={[1]=2.50, [2]=1.50, [3]=0.85}, uses=35, maxlevel=2},
- },
- damage_groups = {fleshy=6},
- },
- })
- minetest.register_tool("lottweapons:mithril_battleaxe", {
- description = "Mithril Battleaxe",
- inventory_image = "lottweapons_mithril_battleaxe.png",
- tool_capabilities = {
- full_punch_interval = .25,
- max_drop_level=1,
- groupcaps={
- choppy={times={[1]=2, [2]=1, [3]=.50}, uses=35, maxlevel=3},
- snappy={times={[1]=1, [2]=1.10, [3]=0.50}, uses=40, maxlevel=3},
- },
- damage_groups = {fleshy=7},
- },
- })
- --Warhammers:
- minetest.register_tool("lottweapons:wood_warhammer", {
- description = "Training Warhammer",
- inventory_image = "lottweapons_wood_warhammer.png",
- range = 2,
- tool_capabilities = {
- full_punch_interval = 2,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=3.40, [2]=2.40, [3]=1.30}, uses=5, maxlevel=1},
- },
- damage_groups = {fleshy=.75},
- },
- })
- minetest.register_tool("lottweapons:stone_warhammer", {
- description = "Stone Warhammer",
- inventory_image = "lottweapons_stone_warhammer.png",
- range = 2,
- tool_capabilities = {
- full_punch_interval = 1.5,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=2.85, [2]=1.85, [3]=1.10}, uses=5, maxlevel=1},
- },
- damage_groups = {fleshy=3},
- },
- })
- minetest.register_tool("lottweapons:copper_warhammer", {
- description = "Copper Warhammer",
- inventory_image = "lottweapons_copper_warhammer.png",
- range = 2,
- tool_capabilities = {
- full_punch_interval = 1.3,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=3, [2]=1.80, [3]=1.00}, uses=5, maxlevel=1},
- },
- damage_groups = {fleshy=4.5},
- },
- })
- minetest.register_tool("lottweapons:tin_warhammer", {
- description = "Tin Warhammer",
- inventory_image = "lottweapons_tin_warhammer.png",
- range = 2,
- tool_capabilities = {
- full_punch_interval = 1.3,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=3, [2]=1.80, [3]=1.00}, uses=5, maxlevel=1},
- },
- damage_groups = {fleshy=4.5},
- },
- })
- minetest.register_tool("lottweapons:steel_warhammer", {
- description = "Steel Warhammer",
- inventory_image = "lottweapons_steel_warhammer.png",
- range = 2,
- tool_capabilities = {
- full_punch_interval = 1.2,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=2.75, [2]=1.45, [3]=0.60}, uses=25, maxlevel=2},
- },
- damage_groups = {fleshy=6},
- },
- })
- minetest.register_tool("lottweapons:bronze_warhammer", {
- description = "Bronze Warhammer",
- inventory_image = "lottweapons_bronze_warhammer.png",
- range = 2,
- tool_capabilities = {
- full_punch_interval = 1.1,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=2.75, [2]=1.45, [3]=0.60}, uses=30, maxlevel=2},
- },
- damage_groups = {fleshy=6.5},
- },
- })
- minetest.register_tool("lottweapons:silver_warhammer", {
- description = "Silver Warhammer",
- inventory_image = "lottweapons_silver_warhammer.png",
- range = 2,
- tool_capabilities = {
- full_punch_interval = 1,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=2.60, [2]=1.40, [3]=0.50}, uses=20, maxlevel=2},
- },
- damage_groups = {fleshy=7.5},
- },
- })
- minetest.register_tool("lottweapons:gold_warhammer", {
- description = "Gold Warhammer",
- inventory_image = "lottweapons_gold_warhammer.png",
- tool_capabilities = {
- full_punch_interval = 0.75,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=2.60, [2]=1.40, [3]=0.50}, uses=30, maxlevel=2},
- },
- damage_groups = {fleshy=7.5},
- },
- })
- minetest.register_tool("lottweapons:galvorn_warhammer", {
- description = "Galvorn Warhammer",
- inventory_image = "lottweapons_galvorn_warhammer.png",
- range = 2,
- groups = {forbidden=1},
- tool_capabilities = {
- full_punch_interval = 0.50,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=2.50, [2]=1.30, [3]=0.45}, uses=35, maxlevel=2},
- },
- damage_groups = {fleshy=8},
- },
- })
- minetest.register_tool("lottweapons:mithril_warhammer", {
- description = "Mithril Warhammer",
- inventory_image = "lottweapons_mithril_warhammer.png",
- range = 2,
- tool_capabilities = {
- full_punch_interval = 0.25,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=2.60, [2]=1.40, [3]=0.50}, uses=40, maxlevel=3},
- },
- damage_groups = {fleshy=9},
- },
- })
- --Spears:
- minetest.register_tool("lottweapons:wood_spear", {
- description = "Training Spear",
- inventory_image = "lottweapons_wood_spear.png",
- wield_image = "lottweapons_wood_spear.png^[transformFX",
- range = 7,
- tool_capabilities = {
- full_punch_interval = 2,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=3.70, [2]=2.70, [3]=1.70}, uses=3, maxlevel=1},
- },
- damage_groups = {fleshy=.75},
- }
- })
- minetest.register_tool("lottweapons:stone_spear", {
- description = "Stone Spear",
- inventory_image = "lottweapons_stone_spear.png",
- wield_image = "lottweapons_stone_spear.png^[transformFX",
- range = 7,
- tool_capabilities = {
- full_punch_interval = 1.50,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=2.75, [2]=1.75, [3]=0.75}, uses=5, maxlevel=1},
- },
- damage_groups = {fleshy=2},
- }
- })
- minetest.register_tool("lottweapons:copper_spear", {
- description = "Copper Spear",
- inventory_image = "lottweapons_copper_spear.png",
- wield_image = "lottweapons_copper_spear.png^[transformFX",
- range = 7,
- tool_capabilities = {
- full_punch_interval = 1.30,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=2.70, [2]=1.70, [3]=0.70}, uses=5, maxlevel=1},
- },
- damage_groups = {fleshy=4},
- }
- })
- minetest.register_tool("lottweapons:tin_spear", {
- description = "Tin Spear",
- inventory_image = "lottweapons_tin_spear.png",
- wield_image = "lottweapons_tin_spear.png^[transformFX",
- range = 7,
- tool_capabilities = {
- full_punch_interval = 1.30,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=2.70, [2]=1.70, [3]=0.70}, uses=5, maxlevel=1},
- },
- damage_groups = {fleshy=4},
- }
- })
- minetest.register_tool("lottweapons:steel_spear", {
- description = "Steel Spear",
- inventory_image = "lottweapons_steel_spear.png",
- wield_image = "lottweapons_steel_spear.png^[transformFX",
- range = 7,
- tool_capabilities = {
- full_punch_interval = 1.20,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=2.40, [2]=1.40, [3]=0.40}, uses=15, maxlevel=1},
- },
- damage_groups = {fleshy=5},
- }
- })
- minetest.register_tool("lottweapons:bronze_spear", {
- description = "Bronze Spear",
- inventory_image = "lottweapons_bronze_spear.png",
- wield_image = "lottweapons_bronze_spear.png^[transformFX",
- range = 7,
- tool_capabilities = {
- full_punch_interval = 1.10,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=2.40, [2]=1.40, [3]=0.40}, uses=20, maxlevel=1},
- },
- damage_groups = {fleshy=5.5},
- }
- })
- minetest.register_tool("lottweapons:silver_spear", {
- description = "Silver Spear",
- inventory_image = "lottweapons_silver_spear.png",
- wield_image = "lottweapons_silver_spear.png^[transformFX",
- range = 7,
- tool_capabilities = {
- full_punch_interval = 1,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=2.2, [2]=1.2, [3]=0.20}, uses=15, maxlevel=1},
- },
- damage_groups = {fleshy=6},
- }
- })
- minetest.register_tool("lottweapons:gold_spear", {
- description = "Gold Spear",
- inventory_image = "lottweapons_gold_spear.png",
- wield_image = "lottweapons_gold_spear.png^[transformFX",
- range = 7,
- tool_capabilities = {
- full_punch_interval = 0.75,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=2.2, [2]=1.2, [3]=0.20}, uses=20, maxlevel=1},
- },
- damage_groups = {fleshy=6},
- }
- })
- minetest.register_tool("lottweapons:galvorn_spear", {
- description = "Galvorn Spear",
- inventory_image = "lottweapons_galvorn_spear.png",
- wield_image = "lottweapons_galvorn_spear.png^[transformFX",
- range = 7,
- groups = {forbidden=1},
- tool_capabilities = {
- full_punch_interval = 0.50,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=2.3, [2]=1.3, [3]=0.30}, uses=25, maxlevel=1},
- },
- damage_groups = {fleshy=7},
- }
- })
- minetest.register_tool("lottweapons:mithril_spear", {
- description = "Mithril Spear",
- inventory_image = "lottweapons_mithril_spear.png",
- wield_image = "lottweapons_mithril_spear.png^[transformFX",
- range = 7,
- tool_capabilities = {
- full_punch_interval = 0.25,
- max_drop_level=1,
- groupcaps={
- snappy={times={[1]=2.00, [2]=1.00, [3]=0.20}, uses=30, maxlevel=2},
- },
- damage_groups = {fleshy=8},
- }
- })
- --Daggers:
- minetest.register_tool("lottweapons:wood_dagger", {
- description = "Training Dagger",
- inventory_image = "lottweapons_wood_dagger.png",
- range = 3,
- tool_capabilities = {
- full_punch_interval = 2,
- max_drop_level=0,
- groupcaps={
- snappy={times={[2]=2.25, [3]=1.75}, uses=2, maxlevel=1},
- },
- damage_groups = {fleshy=.10},
- }
- })
- minetest.register_tool("lottweapons:stone_dagger", {
- description = "Stone Dagger",
- inventory_image = "lottweapons_stone_dagger.png",
- range = 3,
- tool_capabilities = {
- full_punch_interval = 1.5,
- max_drop_level=0,
- groupcaps={
- snappy={times={[2]=1.35, [3]=0.85}, uses=5, maxlevel=1},
- },
- damage_groups = {fleshy=.90},
- }
- })
- minetest.register_tool("lottweapons:copper_dagger", {
- description = "Copper Dagger",
- inventory_image = "lottweapons_copper_dagger.png",
- range = 3,
- tool_capabilities = {
- full_punch_interval = 1.2,
- max_drop_level=0,
- groupcaps={
- snappy={times={[2]=1.25, [3]=0.75}, uses=5, maxlevel=1},
- },
- damage_groups = {fleshy=2.5},
- }
- })
- minetest.register_tool("lottweapons:tin_dagger", {
- description = "Tin Dagger",
- inventory_image = "lottweapons_tin_dagger.png",
- range = 3,
- tool_capabilities = {
- full_punch_interval = 1.2,
- max_drop_level=0,
- groupcaps={
- snappy={times={[2]=1.25, [3]=0.75}, uses=5, maxlevel=1},
- },
- damage_groups = {fleshy=2.5},
- }
- })
- minetest.register_tool("lottweapons:steel_dagger", {
- description = "Steel Dagger",
- inventory_image = "lottweapons_steel_dagger.png",
- range = 3,
- tool_capabilities = {
- full_punch_interval = 1.1,
- max_drop_level=0,
- groupcaps={
- snappy={times={[2]=1.00, [3]=0.50}, uses=10, maxlevel=1},
- },
- damage_groups = {fleshy=4},
- }
- })
- minetest.register_tool("lottweapons:bronze_dagger", {
- description = "Bronze Dagger",
- inventory_image = "lottweapons_bronze_dagger.png",
- range = 3,
- tool_capabilities = {
- full_punch_interval = 1.5,
- max_drop_level=0,
- groupcaps={
- snappy={times={[2]=1.00, [3]=0.50}, uses=15, maxlevel=1},
- },
- damage_groups = {fleshy=4.5},
- }
- })
- minetest.register_tool("lottweapons:silver_dagger", {
- description = "Silver Dagger",
- inventory_image = "lottweapons_silver_dagger.png",
- range = 3,
- tool_capabilities = {
- full_punch_interval = 1,
- max_drop_level=0,
- groupcaps={
- snappy={times={[2]=.80, [3]=0.40}, uses=10, maxlevel=1},
- },
- damage_groups = {fleshy=5},
- }
- })
- minetest.register_tool("lottweapons:gold_dagger", {
- description = "Gold Dagger",
- inventory_image = "lottweapons_gold_dagger.png",
- range = 3,
- tool_capabilities = {
- full_punch_interval = .6,
- max_drop_level=0,
- groupcaps={
- snappy={times={[2]=.80, [3]=0.40}, uses=15, maxlevel=1},
- },
- damage_groups = {fleshy=5},
- }
- })
- minetest.register_tool("lottweapons:galvorn_dagger", {
- description = "Galvorn Dagger",
- inventory_image = "lottweapons_galvorn_dagger.png",
- range = 3,
- groups = {forbidden=1},
- tool_capabilities = {
- full_punch_interval = .5,
- max_drop_level=0,
- groupcaps={
- snappy={times={[2]=.90, [3]=0.45}, uses=20, maxlevel=1},
- },
- damage_groups = {fleshy=5.5},
- }
- })
- minetest.register_tool("lottweapons:mithril_dagger", {
- description = "Mithril Dagger",
- inventory_image = "lottweapons_mithril_dagger.png",
- range = 3,
- tool_capabilities = {
- full_punch_interval = .25,
- max_drop_level=0,
- groupcaps={
- snappy={times={[2]=.75, [3]=0.35}, uses=25, maxlevel=2},
- },
- damage_groups = {fleshy=6.5},
- }
- })
|