Compare commits

...

5 Commits

Author SHA1 Message Date
Wuzzy ae1b85f1a0 Use TRUE ephemeral sounds 2020-04-06 00:44:24 +02:00
Wuzzy 5462fba560 Turn sounds to mono 2020-04-06 00:13:32 +02:00
Wuzzy 851d890897 Remove legacy metadata format 2020-04-06 00:11:50 +02:00
Wuzzy b46e016681 Fix locale files syntax 2020-04-06 00:11:09 +02:00
Wuzzy 57a1aa7f7f Use ephemeral sounds 2020-04-06 00:09:42 +02:00
10 changed files with 22 additions and 22 deletions

View File

@ -1,3 +0,0 @@
mana?
doc?
doc_items?

View File

@ -1 +0,0 @@
Adds the “Mirror of Returning”, a magical item which teleports the user to a previously set location.

View File

@ -46,10 +46,10 @@ returnmirror.set_position_inactive = function(itemstack, user, pointed_thing)
if returnmirror.mana_check(user, returnmirror.cost_set) then
local newitem = ItemStack("returnmirror:mirror_active")
newitem:set_metadata(minetest.pos_to_string(pos))
minetest.sound_play( {name="returnmirror_set", gain=1}, {pos=pos, max_hear_distance=12})
minetest.sound_play( {name="returnmirror_set", gain=1}, {pos=pos, max_hear_distance=12}, true)
return newitem
else
minetest.sound_play( {name="returnmirror_fail", gain=1}, {pos=pos, max_hear_distance=18})
minetest.sound_play( {name="returnmirror_fail", gain=1}, {pos=pos, max_hear_distance=18}, true)
end
end
@ -67,10 +67,10 @@ returnmirror.set_position_active = function(itemstack, user, pointed_thing)
local pos = user:getpos()
if returnmirror.mana_check(user, returnmirror.cost_set) then
itemstack:set_metadata(minetest.pos_to_string(pos))
minetest.sound_play( {name="returnmirror_set", gain=1}, {pos=pos, max_hear_distance=12})
minetest.sound_play( {name="returnmirror_set", gain=1}, {pos=pos, max_hear_distance=12}, true)
return itemstack
else
minetest.sound_play( {name="returnmirror_fail", gain=1}, {pos=pos, max_hear_distance=18})
minetest.sound_play( {name="returnmirror_fail", gain=1}, {pos=pos, max_hear_distance=18}, true)
end
end
@ -95,7 +95,7 @@ minetest.register_tool("returnmirror:mirror_inactive", {
groups = { disable_repair = 1 },
range = 2,
on_use = function(itemstack, user, pointed_thing)
minetest.sound_play( {name="returnmirror_fail", gain=1}, {pos=user:getpos(), max_hear_distance=18})
minetest.sound_play( {name="returnmirror_fail", gain=1}, {pos=user:getpos(), max_hear_distance=18}, true)
end,
on_place = returnmirror.set_position_inactive,
on_secondary_use = returnmirror.set_position_inactive,
@ -118,7 +118,7 @@ minetest.register_tool("returnmirror:mirror_active", {
if dest ~= nil then
if returnmirror.mana_check(user, returnmirror.cost_teleport) then
fail = false
minetest.sound_play( {name="returnmirror_teleport", gain=1}, {pos=src, max_hear_distance=30})
minetest.sound_play( {name="returnmirror_teleport", gain=1}, {pos=src, max_hear_distance=30}, true)
minetest.add_particlespawner({
amount = 50,
time = 0.1,
@ -133,7 +133,7 @@ minetest.register_tool("returnmirror:mirror_active", {
texture = "returnmirror_particle_departure.png",
})
user:setpos(dest)
minetest.sound_play( {name="returnmirror_teleport", gain=1}, {pos=dest, max_hear_distance=30})
minetest.sound_play( {name="returnmirror_teleport", gain=1}, {pos=dest, max_hear_distance=30}, true)
minetest.add_particlespawner({
amount = 100,
time = 0.1,
@ -150,7 +150,7 @@ minetest.register_tool("returnmirror:mirror_active", {
end
end
if fail then
minetest.sound_play( {name="returnmirror_fail", gain=1}, {pos=src, max_hear_distance=18})
minetest.sound_play( {name="returnmirror_fail", gain=1}, {pos=src, max_hear_distance=18}, true)
end
end,
on_place = returnmirror.set_position_active,

View File

@ -1,5 +0,0 @@
Mirror of Returning = Spiegel der Rückkehr
Rightclick to set the mirror's teleport location. Leftclick to immediately teleport back to the mirror's teleport location. = Rechtsklicken, um die Teleportationsposition des Spiegels zu setzen. Linksklicken, um eine sofortige Teleportation zur Teleportationsposition des Spiegels vorzunehmen.
Setting the teleport location costs @1 mana, teleporting costs @2 mana. = Das Setzen der Teleportationsposition kostet @1 Mana. Das Teleportieren kostet @2 Mana.
This item allows to teleport its user back to a previously set location. = Dieser Gegenstand ermöglicht es seinem Benutzer, sich zu einer zuvor gesetzen Position zurück zu teleportieren.
This item allows to teleport the user back to a previously set location, at the cost of mana. = Dieser Gegenstand ermöglicht es dem Benutzer, sich auf Kosten von Mana zu einer zuvor gesetzten Position zurück zu teleportieren.

View File

@ -0,0 +1,6 @@
# textdomain:returnmirror
Mirror of Returning=Spiegel der Rückkehr
Rightclick to set the mirror's teleport location. Leftclick to immediately teleport back to the mirror's teleport location.=Rechtsklicken, um die Teleportationsposition des Spiegels zu setzen. Linksklicken, um eine sofortige Teleportation zur Teleportationsposition des Spiegels vorzunehmen.
Setting the teleport location costs @1 mana, teleporting costs @2 mana.=Das Setzen der Teleportationsposition kostet @1 Mana. Das Teleportieren kostet @2 Mana.
This item allows to teleport its user back to a previously set location.=Dieser Gegenstand ermöglicht es seinem Benutzer, sich zu einer zuvor gesetzen Position zurück zu teleportieren.
This item allows to teleport the user back to a previously set location, at the cost of mana.=Dieser Gegenstand ermöglicht es dem Benutzer, sich auf Kosten von Mana zu einer zuvor gesetzten Position zurück zu teleportieren.

View File

@ -1,5 +1,6 @@
Mirror of Returning =
Rightclick to set the mirror's teleport location. Leftclick to immediately teleport back to the mirror's teleport location. =
Setting the teleport location costs @1 mana, teleporting costs @2 mana. =
This item allows to teleport its user back to a previously set location. =
This item allows to teleport the user back to a previously set location, at the cost of mana. =
# textdomain:returnmirror
Mirror of Returning=
Rightclick to set the mirror's teleport location. Leftclick to immediately teleport back to the mirror's teleport location.=
Setting the teleport location costs @1 mana, teleporting costs @2 mana.=
This item allows to teleport its user back to a previously set location.=
This item allows to teleport the user back to a previously set location, at the cost of mana.=

View File

@ -1 +1,3 @@
name = returnmirror
description = Adds the “Mirror of Returning”, a magical item which teleports the user to a previously set location.
optional_depends = mana, doc, doc_items

Binary file not shown.

Binary file not shown.

Binary file not shown.