236
mods/thirst/api.lua
Normal file
@ -0,0 +1,236 @@
|
||||
-- Thirst API
|
||||
|
||||
local damage_enabled = minetest.settings:get_bool("enable_damage")
|
||||
|
||||
if damage_enabled then
|
||||
|
||||
-- Position of thirst HUD
|
||||
local hud_position = {x = 0.5, y = 1}
|
||||
|
||||
-- Offset of thirst HUD
|
||||
local hud_offset = {x = -197, y = -90}
|
||||
|
||||
-- Maximum thirst value, and default for new players.
|
||||
local max_thirst = 20
|
||||
|
||||
-- Global table for the API.
|
||||
thirst = {}
|
||||
|
||||
-- Used to store HUD indexes for each player.
|
||||
thirst.hud = {}
|
||||
|
||||
-- Every x seconds, the player thirst is decreased by 1 if they're in water.
|
||||
thirst.water_quench_rate = 2
|
||||
|
||||
-- Every x seconds, if the player is not in water, their thirst is increased by 1.
|
||||
thirst.thirst_rate = 30
|
||||
|
||||
-- HP taken off a player for every thirst_rate they have insufficient thirst.
|
||||
thirst.hp_penalty = 3
|
||||
|
||||
-- Every x seconds, thirst data is saved.
|
||||
thirst.data_storage_rate = 10
|
||||
|
||||
-- Default thirst HUD def
|
||||
thirst.hud_def = {
|
||||
hud_elem_type = "statbar",
|
||||
position = hud_position,
|
||||
text = "thirst_hud_icon.png",
|
||||
scale = {x = 1, y = 1},
|
||||
offset = hud_offset,
|
||||
number = 20,
|
||||
}
|
||||
|
||||
-- Gets HUD definition with <amount> thirst, or full thirst if no amount specified.
|
||||
thirst.get_hud_def = function(amount)
|
||||
|
||||
amount = amount or 20
|
||||
|
||||
def = thirst.hud_def
|
||||
|
||||
def.number = amount
|
||||
|
||||
return def
|
||||
end
|
||||
|
||||
-- Returns the thirst a player has, or nil if the player does not exist.
|
||||
thirst.get_player_thirst = function(name)
|
||||
|
||||
local player = minetest.get_player_by_name(name)
|
||||
|
||||
if player then
|
||||
|
||||
local meta = player:get_meta()
|
||||
|
||||
local thirst = meta:get_int("thirst")
|
||||
|
||||
if not thirst then
|
||||
|
||||
meta:set_int("thirst", max_thirst)
|
||||
|
||||
thirst = max_thirst
|
||||
end
|
||||
|
||||
return thirst
|
||||
end
|
||||
|
||||
return nil
|
||||
end
|
||||
|
||||
-- Sets a player's HUD to a certain thirst level
|
||||
thirst.set_player_hud_def = function(name, amount)
|
||||
|
||||
local player = minetest.get_player_by_name(name)
|
||||
|
||||
local idx = thirst.hud[name]
|
||||
|
||||
if idx then
|
||||
|
||||
player:hud_change(idx, "number", amount)
|
||||
|
||||
else
|
||||
|
||||
thirst.hud[name] = player:hud_add(thirst.get_hud_def(amount))
|
||||
end
|
||||
end
|
||||
|
||||
-- Sets player thirst to a value.
|
||||
thirst.set_player_thirst = function(name, amount)
|
||||
|
||||
local player = minetest.get_player_by_name(name)
|
||||
|
||||
if player then
|
||||
|
||||
local meta = player:get_meta()
|
||||
|
||||
if amount > max_thirst then
|
||||
amount = max_thirst
|
||||
end
|
||||
|
||||
if amount < 0 then
|
||||
amount = 0
|
||||
end
|
||||
|
||||
meta:set_int("thirst", amount)
|
||||
|
||||
thirst.set_player_hud_def(name, amount)
|
||||
end
|
||||
end
|
||||
|
||||
-- Returns true if the player is in a drinkable liquid; false otherwise.
|
||||
thirst.is_player_in_water = function(name)
|
||||
|
||||
local player = minetest.get_player_by_name(name)
|
||||
|
||||
local pos = player:get_pos()
|
||||
|
||||
local node = minetest.get_node_or_nil(pos)
|
||||
|
||||
if node then
|
||||
|
||||
return node.name == "ws_core:water_source"
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
|
||||
-- Decreases player thirst by an amount.
|
||||
thirst.decrease_thirst = function(name, amount)
|
||||
|
||||
local pthirst = thirst.get_player_thirst(name)
|
||||
|
||||
thirst.set_player_thirst(name, pthirst + amount)
|
||||
end
|
||||
|
||||
-- Adding the thirst HUD to new players.
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
|
||||
local name = player:get_player_name()
|
||||
|
||||
thirst.set_player_hud_def(name, thirst.get_player_thirst(name))
|
||||
end)
|
||||
|
||||
minetest.register_chatcommand("set_thirst", {
|
||||
params = "",
|
||||
func = function(name, params)
|
||||
amount = tonumber(params)
|
||||
thirst.set_player_thirst(name, amount)
|
||||
minetest.chat_send_all("Current thirst data:\n" .. dump(thirst.players))
|
||||
end
|
||||
})
|
||||
|
||||
-- Reset player thirst on die.
|
||||
minetest.register_on_respawnplayer(function(player)
|
||||
|
||||
local name = player:get_player_name()
|
||||
|
||||
thirst.set_player_thirst(name, max_thirst)
|
||||
end)
|
||||
|
||||
local timer = 0
|
||||
|
||||
local timer2 = 0
|
||||
|
||||
local timer_store_data = 0
|
||||
|
||||
-- Globalstep to run everything.
|
||||
minetest.register_globalstep(function(dtime)
|
||||
|
||||
if dtime then
|
||||
|
||||
timer = timer + dtime
|
||||
|
||||
timer2 = timer2 + dtime
|
||||
|
||||
timer_store_data = timer_store_data + dtime
|
||||
end
|
||||
|
||||
if timer >= thirst.water_quench_rate then
|
||||
|
||||
timer = 0
|
||||
|
||||
for index, player in pairs(minetest.get_connected_players()) do
|
||||
|
||||
local name = player:get_player_name()
|
||||
|
||||
if name then
|
||||
|
||||
local pos = player:get_pos()
|
||||
|
||||
local node = minetest.get_node_or_nil(pos)
|
||||
|
||||
if thirst.is_player_in_water(name) then
|
||||
|
||||
thirst.decrease_thirst(name, 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if timer2 >= thirst.thirst_rate then
|
||||
|
||||
timer2 = 0
|
||||
|
||||
for index, player in pairs(minetest.get_connected_players()) do
|
||||
|
||||
local name = player:get_player_name()
|
||||
|
||||
if name then
|
||||
|
||||
if not thirst.is_player_in_water(name) then
|
||||
|
||||
if thirst.get_player_thirst(name) > 1 then
|
||||
|
||||
thirst.decrease_thirst(name, -1)
|
||||
end
|
||||
|
||||
if thirst.get_player_thirst(name) < 2 then
|
||||
|
||||
player:set_hp(player:get_hp() - thirst.hp_penalty)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
end
|
11
mods/thirst/crafts.lua
Normal file
@ -0,0 +1,11 @@
|
||||
minetest.register_craft({
|
||||
output = "thirst:straw",
|
||||
type = "shapeless",
|
||||
recipe = {"ws_core:stick", "ws_core:sandy_dirt"},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "thirst:canteen",
|
||||
type = "shapeless",
|
||||
recipe = {"bucket:bucket_empty", "ws_core:iron_lump"},
|
||||
})
|
3
mods/thirst/init.lua
Normal file
@ -0,0 +1,3 @@
|
||||
dofile(minetest.get_modpath("thirst") .. "/api.lua")
|
||||
dofile(minetest.get_modpath("thirst") .. "/tools.lua")
|
||||
dofile(minetest.get_modpath("thirst") .. "/crafts.lua")
|
Before Width: | Height: | Size: 632 B After Width: | Height: | Size: 632 B |
Before Width: | Height: | Size: 272 B After Width: | Height: | Size: 272 B |
Before Width: | Height: | Size: 431 B After Width: | Height: | Size: 431 B |
BIN
mods/thirst/textures/thirst_straw.png
Normal file
After Width: | Height: | Size: 289 B |
51
mods/thirst/tools.lua
Normal file
@ -0,0 +1,51 @@
|
||||
-- Canteen code by Bug_Rat aka Stix
|
||||
|
||||
minetest.register_tool("thirst:canteen", {
|
||||
description = "Canteen",
|
||||
inventory_image = "thirst_canteen.png",
|
||||
liquids_pointable = true,
|
||||
on_use = function(itemstack, user)
|
||||
if itemstack:get_wear() < 65500 then
|
||||
if thirst.get_player_thirst(user:get_player_name()) < 20 then
|
||||
thirst.decrease_thirst(user:get_player_name(), 5)
|
||||
itemstack:add_wear(16383)
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
end,
|
||||
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
local pos = minetest.get_pointed_thing_position(pointed_thing, false)
|
||||
if pos then
|
||||
local node = minetest.get_node_or_nil(pos)
|
||||
if node then
|
||||
if node.name == "ws_core:water_source" then
|
||||
itemstack:set_wear(0)
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_tool("thirst:straw", {
|
||||
description = "Filtering Straw",
|
||||
inventory_image = "thirst_straw.png",
|
||||
liquids_pointable = true,
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
local pos = minetest.get_pointed_thing_position(pointed_thing, false)
|
||||
if pos then
|
||||
local node = minetest.get_node_or_nil(pos)
|
||||
if node then
|
||||
if node.name == "ws_core:water_source_toxic" then
|
||||
local name = user:get_player_name()
|
||||
if thirst.get_player_thirst(name) < 20 then
|
||||
thirst.decrease_thirst(name, 4)
|
||||
itemstack:add_wear(8000)
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
})
|
@ -1,17 +0,0 @@
|
||||
Configuration for Better HUD
|
||||
----------------------------
|
||||
|
||||
The Better HUD mod positions the stat displays according to
|
||||
a 'hud.conf' file in its mod directory. If you wish to shift
|
||||
the positions of the stat displays around, you need to create or
|
||||
edit the 'hud.conf' file.
|
||||
|
||||
There should be two files in this mod directory, 'hud.conf.with_hunger'
|
||||
and 'hud.conf.no_hunger'. These can be used as the basis for your
|
||||
'hud.conf', depending on whether you are also using the Hunger mod
|
||||
(which adds a hunger display), or not.
|
||||
|
||||
The positions of the displays in those files correspond to the
|
||||
default settings in Better HUD. In most cases, it's enough to
|
||||
copy one of these files as 'hud.conf' in the Better HUD mod
|
||||
directory 'mods/hud'.
|
@ -1,505 +0,0 @@
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
(This is the first released version of the Lesser GPL. It also counts
|
||||
as the successor of the GNU Library Public License, version 2, hence
|
||||
the version number 2.1.)
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some
|
||||
specially designated software packages--typically libraries--of the
|
||||
Free Software Foundation and other authors who decide to use it. You
|
||||
can use it too, but we suggest you first think carefully about whether
|
||||
this license or the ordinary General Public License is the better
|
||||
strategy to use in any particular case, based on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use,
|
||||
not price. Our General Public Licenses are designed to make sure that
|
||||
you have the freedom to distribute copies of free software (and charge
|
||||
for this service if you wish); that you receive source code or can get
|
||||
it if you want it; that you can change the software and use pieces of
|
||||
it in new free programs; and that you are informed that you can do
|
||||
these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
distributors to deny you these rights or to ask you to surrender these
|
||||
rights. These restrictions translate to certain responsibilities for
|
||||
you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link other code with the library, you must provide
|
||||
complete object files to the recipients, so that they can relink them
|
||||
with the library after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the
|
||||
library, and (2) we offer you this license, which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that
|
||||
there is no warranty for the free library. Also, if the library is
|
||||
modified by someone else and passed on, the recipients should know
|
||||
that what they have is not the original version, so that the original
|
||||
author's reputation will not be affected by problems that might be
|
||||
introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of
|
||||
any free program. We wish to make sure that a company cannot
|
||||
effectively restrict the users of a free program by obtaining a
|
||||
restrictive license from a patent holder. Therefore, we insist that
|
||||
any patent license obtained for a version of the library must be
|
||||
consistent with the full freedom of use specified in this license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the
|
||||
ordinary GNU General Public License. This license, the GNU Lesser
|
||||
General Public License, applies to certain designated libraries, and
|
||||
is quite different from the ordinary General Public License. We use
|
||||
this license for certain libraries in order to permit linking those
|
||||
libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using
|
||||
a shared library, the combination of the two is legally speaking a
|
||||
combined work, a derivative of the original library. The ordinary
|
||||
General Public License therefore permits such linking only if the
|
||||
entire combination fits its criteria of freedom. The Lesser General
|
||||
Public License permits more lax criteria for linking other code with
|
||||
the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it
|
||||
does Less to protect the user's freedom than the ordinary General
|
||||
Public License. It also provides other free software developers Less
|
||||
of an advantage over competing non-free programs. These disadvantages
|
||||
are the reason we use the ordinary General Public License for many
|
||||
libraries. However, the Lesser license provides advantages in certain
|
||||
special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to
|
||||
encourage the widest possible use of a certain library, so that it becomes
|
||||
a de-facto standard. To achieve this, non-free programs must be
|
||||
allowed to use the library. A more frequent case is that a free
|
||||
library does the same job as widely used non-free libraries. In this
|
||||
case, there is little to gain by limiting the free library to free
|
||||
software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free
|
||||
programs enables a greater number of people to use a large body of
|
||||
free software. For example, permission to use the GNU C Library in
|
||||
non-free programs enables many more people to use the whole GNU
|
||||
operating system, as well as its variant, the GNU/Linux operating
|
||||
system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the
|
||||
users' freedom, it does ensure that the user of a program that is
|
||||
linked with the Library has the freedom and the wherewithal to run
|
||||
that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, whereas the latter must
|
||||
be combined with the library in order to run.
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other
|
||||
program which contains a notice placed by the copyright holder or
|
||||
other authorized party saying it may be distributed under the terms of
|
||||
this Lesser General Public License (also called "this License").
|
||||
Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (1) uses at run time a
|
||||
copy of the library already present on the user's computer system,
|
||||
rather than copying library functions into the executable, and (2)
|
||||
will operate properly with a modified version of the library, if
|
||||
the user installs one, as long as the modified version is
|
||||
interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the materials to be distributed need not include anything that is
|
||||
normally distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties with
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Lesser General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
{description}
|
||||
Copyright (C) {year} {fullname}
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
||||
USA
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random
|
||||
Hacker.
|
||||
|
||||
{signature of Ty Coon}, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
|
@ -1,97 +0,0 @@
|
||||
Thirsty [thirsty]
|
||||
=================
|
||||
|
||||
A Minetest mod that adds a "thirst" mechanic.
|
||||
|
||||
Version: 0.10.2
|
||||
|
||||
License:
|
||||
Code: LGPL 2.1 (see included LICENSE file)
|
||||
Textures: CC-BY-SA (see http://creativecommons.org/licenses/by-sa/4.0/)
|
||||
|
||||
Report bugs or request help on the forum topic.
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
This is a mod for MineTest. It adds a thirst mechanic to the
|
||||
game, similar to many hunger mods (but independent of them).
|
||||
Players will slowly get thirstier over time, and will need to
|
||||
drink or suffer damage.
|
||||
|
||||
The point of this mod is not to make the game more realistic,
|
||||
or harder. The point is to have another mechanic that rewards
|
||||
preparation and infrastructure. Players will now have an incentive
|
||||
to build their base next to water (or add some water to their base),
|
||||
and/or take some water with them when mining or travelling.
|
||||
|
||||
Terminology: "Thirst" vs. "hydration"
|
||||
-------------------------------------
|
||||
|
||||
"Thirst" is the absence of "hydration" (a term suggested by
|
||||
everamzah on the Minetest forums, thanks!). The overall mechanic
|
||||
is still called "thirst", but the visible bar is that of
|
||||
"hydration", meaning a full bar represents full hydration, not full
|
||||
thirst. Players lose hydration (or "hydro points") over time, and
|
||||
gain hydration when drinking.
|
||||
|
||||
Current behavior
|
||||
----------------
|
||||
|
||||
**Tier 0**: stand in water (running or standing) to slowly drink.
|
||||
You may not move during drinking (or you could cross an ocean without
|
||||
getting thirsty).
|
||||
|
||||
**Tier 1**: use a container (e.g. from `vessels`) on water to instantly
|
||||
fill your hydration. Craftable wooden bowl included.
|
||||
|
||||
**Tier 2**: craftable canteens: steel canteen holds two full hydration
|
||||
bars, bronze canteen three bars worth of water.
|
||||
|
||||
**Tier 3**: placeable drinking fountain / wash basin node: instantly
|
||||
fills your hydration when used.
|
||||
|
||||
**Tier 4+**: placeable fountain node(s) to fill the hydration of all
|
||||
players within range. Placing more nodes increases the range.
|
||||
|
||||
**Tier 5**: craftable trinkets/gadgets/amulets that constantly keep your
|
||||
hydration filled when in your inventory, solving your thirst problem
|
||||
once and for all.
|
||||
|
||||
API
|
||||
---
|
||||
Some functions of interest:
|
||||
|
||||
* thirsty.drink(player, amount, [max]) : instantly drink a bit (up to a max value, default 20)
|
||||
* thirsty.get_hydro(player) : returns the current hydration of a player
|
||||
* thirsty.set_thirst_factor(player, factor) : how fast does the given player get thirsty (default is 1.0)
|
||||
* thirsty.get_thirst_factor(player) : returns the current thirst factor of a player
|
||||
|
||||
"player" refers to a player object, i.e. with a get_player_name() method.
|
||||
|
||||
Future plans
|
||||
------------
|
||||
Better configurability and an API.
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
* default (optional but needed for included components)
|
||||
* bucket (optional but needed for some included components)
|
||||
* hud (optional): https://forum.minetest.net/viewtopic.php?f=11&t=6342 (see HUD.txt for configuration)
|
||||
* hudbars (optional): https://forum.minetest.net/viewtopic.php?f=11&t=11153
|
||||
* vessels (optional): https://forum.minetest.net/viewtopic.php?id=2574
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
Unzip the archive, rename the folder to to `thirsty` and
|
||||
place it in minetest/mods/
|
||||
|
||||
( Linux: If you have a linux system-wide installation place
|
||||
it in ~/.minetest/mods/. )
|
||||
|
||||
( If you only want this to be used in a single world, place
|
||||
the folder in worldmods/ in your worlddirectory. )
|
||||
|
||||
For further information or help see:
|
||||
http://wiki.minetest.com/wiki/Installing_Mods
|
@ -1,104 +0,0 @@
|
||||
--[[
|
||||
|
||||
Default components for Thirsty.
|
||||
|
||||
These are nodes and items that "implement" the functionality
|
||||
from functions.lua
|
||||
|
||||
See init.lua for license.
|
||||
|
||||
]]
|
||||
|
||||
|
||||
--[[
|
||||
|
||||
Drinking containers (Tier 1)
|
||||
|
||||
Defines a simple wooden bowl which can be used on water to fill
|
||||
your hydration.
|
||||
|
||||
Optionally also augments the nodes from vessels to enable drinking
|
||||
on use.
|
||||
|
||||
]]
|
||||
|
||||
if minetest.get_modpath("vessels") and thirsty.config.register_vessels then
|
||||
-- add "drinking" to vessels
|
||||
thirsty.augment_item_for_drinking('vessels:drinking_glass', 22)
|
||||
thirsty.augment_item_for_drinking('vessels:glass_bottle', 24)
|
||||
thirsty.augment_item_for_drinking('vessels:steel_bottle', 26)
|
||||
end
|
||||
|
||||
if minetest.get_modpath("ws_core") and thirsty.config.register_bowl then
|
||||
-- our own simple wooden bowl
|
||||
minetest.register_craftitem('thirsty:wooden_bowl', {
|
||||
description = "Wooden bowl",
|
||||
inventory_image = "thirsty_bowl_16.png",
|
||||
liquids_pointable = true,
|
||||
on_use = thirsty.on_use(nil),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "thirsty:wooden_bowl",
|
||||
recipe = {
|
||||
{"group:wood", "", "group:wood"},
|
||||
{"", "group:wood", ""}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
--[[
|
||||
|
||||
Hydro containers (Tier 2)
|
||||
|
||||
Defines canteens (currently two types, with different capacities),
|
||||
tools which store hydro. They use wear to show their content
|
||||
level in their durability bar; they do not disappear when used up.
|
||||
|
||||
Wear corresponds to hydro level as follows:
|
||||
- a wear of 0 shows no durability bar -> empty (initial state)
|
||||
- a wear of 1 shows a full durability bar -> full
|
||||
- a wear of 65535 shows an empty durability bar -> empty
|
||||
|
||||
]]
|
||||
|
||||
if minetest.get_modpath("ws_core") and thirsty.config.register_canteens then
|
||||
|
||||
minetest.register_tool('thirsty:steel_canteen', {
|
||||
description = 'Steel canteen',
|
||||
inventory_image = "thirsty_steel_canteen_16.png",
|
||||
liquids_pointable = true,
|
||||
stack_max = 1,
|
||||
on_use = thirsty.on_use(nil),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "thirsty:steel_canteen",
|
||||
recipe = {
|
||||
{ "group:wood", ""},
|
||||
{ "ws_core:steel_ingot", "ws_core:steel_ingot"},
|
||||
{ "ws_core:steel_ingot", "ws_core:steel_ingot"}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
--[[
|
||||
|
||||
Tier 3
|
||||
|
||||
]]
|
||||
|
||||
--[[
|
||||
|
||||
Tier 4+: the water fountains, plus extenders
|
||||
|
||||
]]
|
||||
|
||||
--[[
|
||||
|
||||
Tier 5
|
||||
|
||||
These amulets don't do much; the actual code is above, where
|
||||
they are searched for in player's inventories
|
||||
|
||||
]]
|
@ -1,64 +0,0 @@
|
||||
--[[
|
||||
|
||||
Configuration from default, moddir and worlddir, in that order.
|
||||
|
||||
See init.lua for license.
|
||||
|
||||
]]
|
||||
|
||||
-- change these for other mods
|
||||
local M = thirsty
|
||||
local modname = 'thirsty'
|
||||
local fileroot = modname
|
||||
|
||||
-- make sure config exists; keep constant reference to it
|
||||
local C = M.config or {}
|
||||
M.config = C
|
||||
|
||||
local function try_config_file(filename)
|
||||
--print("Config from "..filename)
|
||||
local file, err = io.open(filename, 'r')
|
||||
if file then
|
||||
file:close() -- was just for checking existance
|
||||
local confcode, err = loadfile(filename)
|
||||
if confcode then
|
||||
confcode()
|
||||
if C ~= M.config then
|
||||
-- M.config was overriden, merge
|
||||
for key, value in pairs(M.config) do
|
||||
if type(value) == 'table' and type(C[key]) == 'table' and not value.CLEAR then
|
||||
for k, v in pairs(value) do
|
||||
C[key][k] = value[k]
|
||||
end
|
||||
else
|
||||
-- copy (not a table, or asked to clear)
|
||||
C[key] = value
|
||||
end
|
||||
end
|
||||
else
|
||||
-- no override? Empty, or file knows what it is doing.
|
||||
end
|
||||
else
|
||||
minetest.log("error", "Could not load " .. filename .. ": " .. err)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- read starting configuration from <modname>.default.conf
|
||||
try_config_file(minetest.get_modpath(modname) .. "/" .. fileroot .. ".default.conf")
|
||||
|
||||
-- next, install-specific copy in modpath
|
||||
try_config_file(minetest.get_modpath(modname) .. "/" .. fileroot .. ".conf")
|
||||
|
||||
-- last, world-specific copy in worldpath
|
||||
try_config_file(minetest.get_worldpath() .. "/" .. fileroot .. ".conf")
|
||||
|
||||
-- remove any special keys from tables
|
||||
for key, value in pairs(C) do
|
||||
if type(value) == 'table' then
|
||||
value.CLEAR = nil
|
||||
end
|
||||
end
|
||||
|
||||
-- write back
|
||||
M.config = C
|
@ -1,5 +0,0 @@
|
||||
default?
|
||||
bucket?
|
||||
hud?
|
||||
hudbars?
|
||||
vessels?
|
@ -1,2 +0,0 @@
|
||||
A mod that adds a "thirst" mechanic, similar to hunger.
|
||||
|
@ -1,405 +0,0 @@
|
||||
--[[
|
||||
|
||||
Core functions for Thirsty.
|
||||
|
||||
See init.lua for license.
|
||||
|
||||
]]
|
||||
|
||||
local PPA = thirsty.persistent_player_attributes
|
||||
|
||||
PPA.register({
|
||||
name = 'thirsty_hydro',
|
||||
min = 0,
|
||||
max = 50,
|
||||
default = 20,
|
||||
})
|
||||
|
||||
function thirsty.on_joinplayer(player)
|
||||
local name = player:get_player_name()
|
||||
-- default entry for new players
|
||||
if not thirsty.players[name] then
|
||||
local pos = player:getpos()
|
||||
thirsty.players[name] = {
|
||||
last_pos = math.floor(pos.x) .. ':' .. math.floor(pos.z),
|
||||
time_in_pos = 0.0,
|
||||
pending_dmg = 0.0,
|
||||
thirst_factor = 1.0,
|
||||
}
|
||||
end
|
||||
thirsty.hud_init(player)
|
||||
end
|
||||
|
||||
function thirsty.on_dieplayer(player)
|
||||
local name = player:get_player_name()
|
||||
local pl = thirsty.players[name]
|
||||
-- reset after death
|
||||
PPA.set_value(player, 'thirsty_hydro', 20)
|
||||
pl.pending_dmg = 0.0
|
||||
pl.thirst_factor = 1.0
|
||||
end
|
||||
|
||||
--[[
|
||||
|
||||
Getters, setters and such
|
||||
|
||||
]]
|
||||
|
||||
function thirsty.drink(player, value, max)
|
||||
-- if max is not specified, assume 20
|
||||
if not max then
|
||||
max = 20
|
||||
end
|
||||
local hydro = PPA.get_value(player, 'thirsty_hydro')
|
||||
-- test whether we're not *above* max;
|
||||
-- this function should not remove any overhydration
|
||||
if hydro < max then
|
||||
hydro = math.min(hydro + value, max)
|
||||
--print("Drinking by "..value.." to "..hydro)
|
||||
PPA.set_value(player, 'thirsty_hydro', hydro)
|
||||
return true
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
function thirsty.get_hydro(player)
|
||||
return PPA.get_value(player, 'thirsty_hydro')
|
||||
end
|
||||
|
||||
function thirsty.set_thirst_factor(player, factor)
|
||||
local name = player:get_player_name()
|
||||
local pl = thirsty.players[name]
|
||||
pl.thirst_factor = factor
|
||||
end
|
||||
|
||||
function thirsty.get_thirst_factor(player)
|
||||
local name = player:get_player_name()
|
||||
local pl = thirsty.players[name]
|
||||
return pl.thirst_factor
|
||||
end
|
||||
|
||||
--[[
|
||||
|
||||
Main Loop (Tier 0)
|
||||
|
||||
]]
|
||||
|
||||
function thirsty.main_loop(dtime)
|
||||
-- get thirsty
|
||||
thirsty.time_next_tick = thirsty.time_next_tick - dtime
|
||||
while thirsty.time_next_tick < 0.0 do
|
||||
-- time for thirst
|
||||
thirsty.time_next_tick = thirsty.time_next_tick + thirsty.config.tick_time
|
||||
for _,player in ipairs(minetest.get_connected_players()) do
|
||||
|
||||
if player:get_hp() <= 0 then
|
||||
-- dead players don't get thirsty, or full for that matter :-P
|
||||
break
|
||||
end
|
||||
|
||||
local name = player:get_player_name()
|
||||
local pos = player:getpos()
|
||||
local pl = thirsty.players[name]
|
||||
local hydro = PPA.get_value(player, 'thirsty_hydro')
|
||||
|
||||
-- how long have we been standing "here"?
|
||||
-- (the node coordinates in X and Z should be enough)
|
||||
local pos_hash = math.floor(pos.x) .. ':' .. math.floor(pos.z)
|
||||
if pl.last_pos == pos_hash then
|
||||
pl.time_in_pos = pl.time_in_pos + thirsty.config.tick_time
|
||||
else
|
||||
-- you moved!
|
||||
pl.last_pos = pos_hash
|
||||
pl.time_in_pos = 0.0
|
||||
end
|
||||
local pl_standing = pl.time_in_pos > thirsty.config.stand_still_for_drink
|
||||
local pl_afk = pl.time_in_pos > thirsty.config.stand_still_for_afk
|
||||
--print("Standing: " .. (pl_standing and 'true' or 'false' ) .. ", AFK: " .. (pl_afk and 'true' or 'false'))
|
||||
|
||||
pos.y = pos.y + 0.1
|
||||
local node = minetest.get_node(pos)
|
||||
local drink_per_second = thirsty.config.regen_from_node[node.name] or 0
|
||||
|
||||
-- fountaining (uses pos, slight changes ok)
|
||||
for k, fountain in pairs(thirsty.fountains) do
|
||||
local dx = fountain.pos.x - pos.x
|
||||
local dy = fountain.pos.y - pos.y
|
||||
local dz = fountain.pos.z - pos.z
|
||||
local dist2 = dx * dx + dy * dy + dz * dz
|
||||
local fdist = fountain.level * thirsty.config.fountain_distance_per_level -- max 100 nodes radius
|
||||
--print (string.format("Distance from %s (%d): %f out of %f", k, fountain.level, math.sqrt(dist2), fdist ))
|
||||
if dist2 < fdist * fdist then
|
||||
-- in range, drink as if standing (still) in water
|
||||
drink_per_second = math.max(thirsty.config.regen_from_fountain or 0, drink_per_second)
|
||||
pl_standing = true
|
||||
break -- no need to check the other fountains
|
||||
end
|
||||
end
|
||||
|
||||
-- amulets
|
||||
-- TODO: I *guess* we need to optimize this, but I haven't
|
||||
-- measured it yet. No premature optimizations!
|
||||
local pl_inv = player:get_inventory()
|
||||
local extractor_max = 0.0
|
||||
local injector_max = 0.0
|
||||
local container_not_full = nil
|
||||
local container_not_empty = nil
|
||||
local inv_main = player:get_inventory():get_list('main')
|
||||
for i, itemstack in ipairs(inv_main) do
|
||||
local name = itemstack:get_name()
|
||||
local injector_this = thirsty.config.injection_for_item[name]
|
||||
if injector_this and injector_this > injector_max then
|
||||
injector_max = injector_this
|
||||
end
|
||||
local extractor_this = thirsty.config.extraction_for_item[name]
|
||||
if extractor_this and extractor_this > extractor_max then
|
||||
extractor_max = extractor_this
|
||||
end
|
||||
if thirsty.config.container_capacity[name] then
|
||||
local wear = itemstack:get_wear()
|
||||
-- can be both!
|
||||
if wear == 0 or wear > 1 then
|
||||
container_not_full = { i, itemstack }
|
||||
end
|
||||
if wear > 0 and wear < 65534 then
|
||||
container_not_empty = { i, itemstack }
|
||||
end
|
||||
end
|
||||
end
|
||||
if extractor_max > 0.0 and container_not_full then
|
||||
local i = container_not_full[1]
|
||||
local itemstack = container_not_full[2]
|
||||
local capacity = thirsty.config.container_capacity[itemstack:get_name()]
|
||||
local wear = itemstack:get_wear()
|
||||
if wear == 0 then wear = 65535.0 end
|
||||
local drink = extractor_max * thirsty.config.tick_time
|
||||
local drinkwear = drink / capacity * 65535.0
|
||||
wear = wear - drinkwear
|
||||
if wear < 1 then wear = 1 end
|
||||
itemstack:set_wear(wear)
|
||||
player:get_inventory():set_stack("main", i, itemstack)
|
||||
end
|
||||
if injector_max > 0.0 and container_not_empty then
|
||||
local i = container_not_empty[1]
|
||||
local itemstack = container_not_empty[2]
|
||||
local capacity = thirsty.config.container_capacity[itemstack:get_name()]
|
||||
local wear = itemstack:get_wear()
|
||||
if wear == 0 then wear = 65535.0 end
|
||||
local drink = injector_max * thirsty.config.tick_time
|
||||
local drink_missing = 20 - hydro
|
||||
drink = math.max(math.min(drink, drink_missing), 0)
|
||||
local drinkwear = drink / capacity * 65535.0
|
||||
wear = wear + drinkwear
|
||||
if wear > 65534 then wear = 65534 end
|
||||
itemstack:set_wear(wear)
|
||||
thirsty.drink(player, drink, 20)
|
||||
hydro = PPA.get_value(player, 'thirsty_hydro')
|
||||
player:get_inventory():set_stack("main", i, itemstack)
|
||||
end
|
||||
|
||||
|
||||
if drink_per_second > 0 and pl_standing then
|
||||
-- Drinking from the ground won't give you more than max
|
||||
thirsty.drink(player, drink_per_second * thirsty.config.tick_time, 20)
|
||||
--print("Raising hydration by "..(drink_per_second*thirsty.config.tick_time).." to "..PPA.get_value(player, 'thirsty_hydro'))
|
||||
else
|
||||
if not pl_afk then
|
||||
-- only get thirsty if not AFK
|
||||
local amount = thirsty.config.thirst_per_second * thirsty.config.tick_time * pl.thirst_factor
|
||||
PPA.set_value(player, 'thirsty_hydro', hydro - amount)
|
||||
hydro = PPA.get_value(player, 'thirsty_hydro')
|
||||
--print("Lowering hydration by "..amount.." to "..hydro)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
-- should we only update the hud on an actual change?
|
||||
thirsty.hud_update(player, hydro)
|
||||
|
||||
-- damage, if enabled
|
||||
if minetest.setting_getbool("enable_damage") then
|
||||
-- maybe not the best way to do this, but it does mean
|
||||
-- we can do anything with one tick loop
|
||||
if hydro <= 0.0 and not pl_afk then
|
||||
pl.pending_dmg = pl.pending_dmg + thirsty.config.damage_per_second * thirsty.config.tick_time
|
||||
--print("Pending damage at " .. pl.pending_dmg)
|
||||
if pl.pending_dmg > 1.0 then
|
||||
local dmg = math.floor(pl.pending_dmg)
|
||||
pl.pending_dmg = pl.pending_dmg - dmg
|
||||
player:set_hp( player:get_hp() - dmg )
|
||||
end
|
||||
else
|
||||
-- forget any pending damage when not thirsty
|
||||
pl.pending_dmg = 0.0
|
||||
end
|
||||
end
|
||||
end -- for players
|
||||
|
||||
-- check fountains for expiration
|
||||
for k, fountain in pairs(thirsty.fountains) do
|
||||
fountain.time_until_check = fountain.time_until_check - thirsty.config.tick_time
|
||||
if fountain.time_until_check <= 0 then
|
||||
-- remove fountain, the abm will set it again
|
||||
--print("Removing fountain at " .. k)
|
||||
thirsty.fountains[k] = nil
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
--[[
|
||||
|
||||
General handler
|
||||
|
||||
Most tools, nodes and craftitems use the same code, so here it is:
|
||||
|
||||
]]
|
||||
|
||||
function thirsty.drink_handler(player, itemstack, node)
|
||||
local pl = thirsty.players[player:get_player_name()]
|
||||
local hydro = PPA.get_value(player, 'thirsty_hydro')
|
||||
local old_hydro = hydro
|
||||
|
||||
-- selectors, always true, to make the following code easier
|
||||
local item_name = itemstack and itemstack:get_name() or ':'
|
||||
local node_name = node and node.name or ':'
|
||||
|
||||
if thirsty.config.node_drinkable[node_name] then
|
||||
-- we found something to drink!
|
||||
local cont_level = thirsty.config.drink_from_container[item_name] or 0
|
||||
local node_level = thirsty.config.drink_from_node[node_name] or 0
|
||||
-- drink until level
|
||||
local level = math.max(cont_level, node_level)
|
||||
--print("Drinking to level " .. level)
|
||||
thirsty.drink(player, level, level)
|
||||
|
||||
-- fill container, if applicable
|
||||
if thirsty.config.container_capacity[item_name] then
|
||||
--print("Filling a " .. item_name .. " to " .. thirsty.config.container_capacity[item_name])
|
||||
itemstack:set_wear(1) -- "looks full"
|
||||
end
|
||||
|
||||
elseif thirsty.config.container_capacity[item_name] then
|
||||
-- drinking from a container
|
||||
if itemstack:get_wear() ~= 0 then
|
||||
local capacity = thirsty.config.container_capacity[item_name]
|
||||
local hydro_missing = 20 - hydro;
|
||||
if hydro_missing > 0 then
|
||||
local wear_missing = hydro_missing / capacity * 65535.0;
|
||||
local wear = itemstack:get_wear()
|
||||
local new_wear = math.ceil(math.max(wear + wear_missing, 1))
|
||||
if (new_wear > 65534) then
|
||||
wear_missing = 65534 - wear
|
||||
new_wear = 65534
|
||||
end
|
||||
itemstack:set_wear(new_wear)
|
||||
if wear_missing > 0 then -- rounding glitches?
|
||||
thirsty.drink(player, wear_missing * capacity / 65535.0, 20)
|
||||
hydro = PPA.get_value(player, 'thirsty_hydro')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- update HUD if value changed
|
||||
if hydro ~= old_hydro then
|
||||
thirsty.hud_update(player, hydro)
|
||||
end
|
||||
end
|
||||
|
||||
--[[
|
||||
|
||||
Adapters for drink_handler to on_use and on_rightclick slots.
|
||||
These close over the next handler to call in a chain, if desired.
|
||||
|
||||
]]
|
||||
|
||||
function thirsty.on_use( old_on_use )
|
||||
return function(itemstack, player, pointed_thing)
|
||||
local node = nil
|
||||
if pointed_thing and pointed_thing.type == 'node' then
|
||||
node = minetest.get_node(pointed_thing.under)
|
||||
end
|
||||
|
||||
thirsty.drink_handler(player, itemstack, node)
|
||||
|
||||
-- call original on_use, if provided
|
||||
if old_on_use ~= nil then
|
||||
return old_on_use(itemstack, player, pointed_thing)
|
||||
else
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function thirsty.on_rightclick( old_on_rightclick )
|
||||
return function(pos, node, player, itemstack, pointed_thing)
|
||||
|
||||
thirsty.drink_handler(player, itemstack, node)
|
||||
|
||||
-- call original on_rightclick, if provided
|
||||
if old_on_rightclick ~= nil then
|
||||
return old_on_rightclick(pos, node, player, itemstack, pointed_thing)
|
||||
else
|
||||
return itemstack
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
--[[
|
||||
|
||||
Adapter to add "drink_handler" to any item (node, tool, craftitem).
|
||||
|
||||
]]
|
||||
|
||||
function thirsty.augment_item_for_drinking( itemname, level )
|
||||
local new_definition = {}
|
||||
-- we need to be able to point at the water
|
||||
new_definition.liquids_pointable = true
|
||||
-- call closure generator with original on_use handler
|
||||
new_definition.on_use = thirsty.on_use(
|
||||
minetest.registered_items[itemname].on_use
|
||||
)
|
||||
-- overwrite the node definition with almost the original
|
||||
minetest.override_item(itemname, new_definition)
|
||||
|
||||
-- add configuration settings
|
||||
thirsty.config.drink_from_container[itemname] = level
|
||||
end
|
||||
|
||||
function thirsty.fountain_abm(pos, node)
|
||||
local fountain_count = 0
|
||||
local water_count = 0
|
||||
local total_count = 0
|
||||
for y = 0, thirsty.config.fountain_height do
|
||||
for x = -y, y do
|
||||
for z = -y, y do
|
||||
local n = minetest.get_node({
|
||||
x = pos.x + x,
|
||||
y = pos.y - y + 1, -- start one *above* the fountain
|
||||
z = pos.z + z
|
||||
})
|
||||
if n then
|
||||
--print(string.format("%s at %d:%d:%d", n.name, pos.x+x, pos.y-y+1, pos.z+z))
|
||||
total_count = total_count + 1
|
||||
local type = thirsty.config.fountain_type[n.name] or ''
|
||||
if type == 'f' then
|
||||
fountain_count = fountain_count + 1
|
||||
elseif type == 'w' then
|
||||
water_count = water_count + 1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
local level = math.min(thirsty.config.fountain_max_level, math.min(fountain_count, water_count))
|
||||
--print(string.format("Fountain (%d): %d + %d / %d", level, fountain_count, water_count, total_count))
|
||||
thirsty.fountains[string.format("%d:%d:%d", pos.x, pos.y, pos.z)] = {
|
||||
pos = { x=pos.x, y=pos.y, z=pos.z },
|
||||
level = level,
|
||||
-- time until check is 20 seconds, or twice the average
|
||||
-- time until the abm ticks again. Should be enough.
|
||||
time_until_check = 20,
|
||||
}
|
||||
end
|
@ -1,40 +0,0 @@
|
||||
--[[
|
||||
|
||||
Better HUD config file, without Hunger mod.
|
||||
|
||||
This file mirrors the default settings of the Better HUD mod,
|
||||
except that it moves the "breath" bar upwards to make room
|
||||
for the "thirst" bar.
|
||||
|
||||
Use this config file as a starting point if you *don't* have the
|
||||
Hunger mod enabled.
|
||||
|
||||
For more information, see hud.conf.example in the mods/hud
|
||||
directory.
|
||||
|
||||
]]
|
||||
|
||||
HUD_SB_SIZE = { x = 24, y = 24 }
|
||||
|
||||
--[[ Layout:
|
||||
|
||||
ARMOR | (AIR)
|
||||
HEALTH | THIRST
|
||||
|
||||
]]
|
||||
|
||||
HUD_HEALTH_POS = { x = 0.5, y = 1 }
|
||||
HUD_HEALTH_OFFSET = { x = -262, y = -87 }
|
||||
|
||||
-- not used
|
||||
HUD_HUNGER_POS = { x = 0.5, y = 1 }
|
||||
HUD_HUNGER_OFFSET = { x = 15, y = -133 }
|
||||
|
||||
HUD_AIR_POS = { x = 0.5, y = 1 }
|
||||
HUD_AIR_OFFSET = { x = 15, y = -110 }
|
||||
|
||||
HUD_ARMOR_POS = { x = 0.5, y = 1 }
|
||||
HUD_ARMOR_OFFSET = { x = -262, y = -110 }
|
||||
|
||||
HUD_THIRST_POS = { x = 0.5, y = 1 }
|
||||
HUD_THIRST_OFFSET = { x = 15, y = -87 }
|
@ -1,43 +0,0 @@
|
||||
--[[
|
||||
|
||||
Better HUD config file, with Hunger mod.
|
||||
|
||||
This file mirrors the default settings of the Better HUD mod,
|
||||
except that it moves the "breath" bar upwards to make room
|
||||
for the "thirst" bar.
|
||||
|
||||
Use this config file as a starting point if you *do* have the
|
||||
Hunger mod enabled.
|
||||
|
||||
For more information, see hud.conf.example in the mods/hud
|
||||
directory.
|
||||
|
||||
]]
|
||||
|
||||
HUD_SB_SIZE = { x = 24, y = 24 }
|
||||
|
||||
--[[ Layout:
|
||||
|
||||
(AIR)
|
||||
ARMOR | THIRST
|
||||
HEALTH | HUNGER
|
||||
|
||||
]]
|
||||
|
||||
HUD_HEALTH_POS = { x = 0.5, y = 1 }
|
||||
HUD_HEALTH_OFFSET = { x = -262, y = -87 }
|
||||
|
||||
-- At the time of writing, the Hunger mod contains code to swap
|
||||
-- the positions of "hunger" and "air", so these positions are
|
||||
-- "un-swapped"...
|
||||
HUD_HUNGER_POS = { x = 0.5, y = 1 }
|
||||
HUD_HUNGER_OFFSET = { x = 15, y = -133 }
|
||||
|
||||
HUD_AIR_POS = { x = 0.5, y = 1 }
|
||||
HUD_AIR_OFFSET = { x = 15, y = -87 }
|
||||
|
||||
HUD_ARMOR_POS = { x = 0.5, y = 1 }
|
||||
HUD_ARMOR_OFFSET = { x = -262, y = -110 }
|
||||
|
||||
HUD_THIRST_POS = { x = 0.5, y = 1 }
|
||||
HUD_THIRST_OFFSET = { x = 15, y = -110 }
|
@ -1,87 +0,0 @@
|
||||
--[[
|
||||
|
||||
HUD definitions for Thirsty
|
||||
|
||||
Optionally from one of the supported mods
|
||||
|
||||
Any hud needs to define the following functions:
|
||||
|
||||
- thirsty.hud_init(player)
|
||||
Initialize the HUD for a new player.
|
||||
|
||||
- thirsty.hud_update(player, value)
|
||||
Display the new value "value" for the given player. "value" is
|
||||
a floating point number, not necessarily bounded. You can use the
|
||||
"thirsty.hud_clamp(value)" function to get an integer between 0
|
||||
and 20.
|
||||
|
||||
]]
|
||||
|
||||
local PPA = thirsty.persistent_player_attributes
|
||||
|
||||
function thirsty.hud_clamp(value)
|
||||
if value < 0 then
|
||||
return 0
|
||||
elseif value > 20 then
|
||||
return 20
|
||||
else
|
||||
return math.ceil(value)
|
||||
end
|
||||
end
|
||||
|
||||
if minetest.get_modpath("hudbars") then
|
||||
hb.register_hudbar('thirst', 0xffffff, "Hydration", {
|
||||
bar = 'thirsty_hudbars_bar.png',
|
||||
icon = 'thirsty_cup_100_16.png'
|
||||
}, 20, 20, false)
|
||||
function thirsty.hud_init(player)
|
||||
hb.init_hudbar(player, 'thirst',
|
||||
thirsty.hud_clamp(PPA.get_value(player, 'thirsty_hydro')),
|
||||
20, false)
|
||||
end
|
||||
function thirsty.hud_update(player, value)
|
||||
hb.change_hudbar(player, 'thirst', thirsty.hud_clamp(value), 20)
|
||||
end
|
||||
elseif minetest.get_modpath("hud") then
|
||||
-- default positions follow [hud] defaults
|
||||
local position = HUD_THIRST_POS or { x=0.5, y=1 }
|
||||
local offset = HUD_THIRST_OFFSET or { x=15, y=-133} -- above AIR
|
||||
hud.register('thirst', {
|
||||
hud_elem_type = "statbar",
|
||||
position = position,
|
||||
text = "thirsty_cup_100_24.png",
|
||||
background = "thirsty_cup_0_24.png",
|
||||
number = 20,
|
||||
max = 20,
|
||||
size = HUD_SB_SIZE, -- by default { x=24, y=24 },
|
||||
offset = offset,
|
||||
})
|
||||
function thirsty.hud_init(player)
|
||||
-- automatic by [hud]
|
||||
end
|
||||
function thirsty.hud_update(player, value)
|
||||
hud.change_item(player, 'thirst', {
|
||||
number = thirsty.hud_clamp(value)
|
||||
})
|
||||
end
|
||||
else
|
||||
-- 'builtin' hud
|
||||
function thirsty.hud_init(player)
|
||||
-- above breath bar, for now
|
||||
local name = player:get_player_name()
|
||||
thirsty.players[name].hud_id = player:hud_add({
|
||||
hud_elem_type = "statbar",
|
||||
position = { x=0.5, y=1 },
|
||||
text = "thirsty_cup_100_24.png",
|
||||
number = thirsty.hud_clamp(PPA.get_value(player, 'thirsty_hydro')),
|
||||
direction = 0,
|
||||
size = { x=24, y=24 },
|
||||
offset = { x=25, y=-(48+24+16+32)},
|
||||
})
|
||||
end
|
||||
function thirsty.hud_update(player, value)
|
||||
local name = player:get_player_name()
|
||||
local hud_id = thirsty.players[name].hud_id
|
||||
player:hud_change(hud_id, 'number', thirsty.hud_clamp(value))
|
||||
end
|
||||
end
|
@ -1,91 +0,0 @@
|
||||
--[[
|
||||
|
||||
Thirsty mod [thirsty]
|
||||
==========================
|
||||
|
||||
A mod that adds a "thirst" mechanic, similar to hunger.
|
||||
|
||||
Copyright (C) 2015 Ben Deutsch <ben@bendeutsch.de>
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
||||
USA
|
||||
|
||||
Terminology: "Thirst" vs. "hydration"
|
||||
-------------------------------------
|
||||
|
||||
"Thirst" is the absence of "hydration" (a term suggested by
|
||||
everamzah on the Minetest forums, thanks!). The overall mechanic
|
||||
is still called "thirst", but the visible bar is that of
|
||||
"hydration", filled with "hydro points".
|
||||
|
||||
]]
|
||||
|
||||
-- the main module variable
|
||||
thirsty = {
|
||||
|
||||
-- Configuration variables
|
||||
config = {
|
||||
-- configuration in thirsty.default.conf
|
||||
},
|
||||
|
||||
-- the players' values
|
||||
players = {
|
||||
--[[
|
||||
name = {
|
||||
last_pos = '-10:3',
|
||||
time_in_pos = 0.0,
|
||||
pending_dmg = 0.0,
|
||||
thirst_factor = 1.0,
|
||||
}
|
||||
]]
|
||||
},
|
||||
|
||||
-- water fountains
|
||||
fountains = {
|
||||
--[[
|
||||
x:y:z = {
|
||||
pos = { x=x, y=y, z=z },
|
||||
level = 4,
|
||||
time_until_check = 20,
|
||||
-- something about times
|
||||
}
|
||||
]]
|
||||
},
|
||||
|
||||
-- general settings
|
||||
time_next_tick = 0.0,
|
||||
}
|
||||
local M = thirsty
|
||||
|
||||
dofile(minetest.get_modpath('thirsty')..'/configuration.lua')
|
||||
local C = M.config
|
||||
|
||||
dofile(minetest.get_modpath('thirsty')..'/persistent_player_attributes.lua')
|
||||
local PPA = M.persistent_player_attributes
|
||||
|
||||
thirsty.time_next_tick = thirsty.config.tick_time
|
||||
|
||||
dofile(minetest.get_modpath('thirsty')..'/hud.lua')
|
||||
dofile(minetest.get_modpath('thirsty')..'/functions.lua')
|
||||
--[[ temporary disable for dev server
|
||||
minetest.register_on_joinplayer(thirsty.on_joinplayer)
|
||||
minetest.register_on_dieplayer(thirsty.on_dieplayer)
|
||||
minetest.register_globalstep(thirsty.main_loop)
|
||||
--]]
|
||||
dofile(minetest.get_modpath('thirsty')..'/components.lua')
|
||||
|
@ -1,111 +0,0 @@
|
||||
--[[
|
||||
|
||||
Persistent player attributes
|
||||
|
||||
]]
|
||||
|
||||
-- change this to inject into other module
|
||||
local M = thirsty
|
||||
|
||||
M.persistent_player_attributes = {}
|
||||
local PPA = M.persistent_player_attributes
|
||||
|
||||
--[[
|
||||
Helper functions that take care of the conversions *and* the
|
||||
clamping for us
|
||||
]]
|
||||
|
||||
local function _count_for_val(value, def)
|
||||
local count = math.floor((value - def.min) / (def.max - def.min) * 65535)
|
||||
if count < 0 then count = 0 end
|
||||
if count > 65535 then count = 65535 end
|
||||
return count
|
||||
end
|
||||
local function _val_for_count(count, def)
|
||||
local value = count / 65535 * (def.max - def.min) + def.min
|
||||
if value < def.min then value = def.min end
|
||||
if value > def.max then value = def.max end
|
||||
return value
|
||||
end
|
||||
-- end helper functions
|
||||
|
||||
-- the stash of registered attributes
|
||||
|
||||
PPA.defs = {--[[
|
||||
name = {
|
||||
name = "mymod_attr1",
|
||||
min = 0,
|
||||
max = 10,
|
||||
default = 5,
|
||||
},
|
||||
]]}
|
||||
|
||||
PPA.read_cache = {--[[
|
||||
player_name = {
|
||||
attr1 = value1,
|
||||
attr2 = value2,
|
||||
},
|
||||
]]}
|
||||
|
||||
--[[
|
||||
How to register a new attribute, with named parameters:
|
||||
PPA.register({ name = "mymod_attr1", min = 0, ... })
|
||||
]]
|
||||
|
||||
PPA.register = function(def)
|
||||
PPA.defs[def.name] = {
|
||||
name = def.name,
|
||||
min = def.min or 0.0,
|
||||
max = def.max or 1.0,
|
||||
default = def.default or def.min or 0.0,
|
||||
}
|
||||
end
|
||||
|
||||
-- The on_joinplayer handler
|
||||
|
||||
PPA.on_joinplayer = function(player)
|
||||
local inv = player:get_inventory()
|
||||
local player_name = player:get_player_name()
|
||||
PPA.read_cache[player_name] = {}
|
||||
for name, def in pairs(PPA.defs) do
|
||||
inv:set_size(name, 1)
|
||||
if inv:is_empty(name) then
|
||||
-- set default value
|
||||
inv:set_stack(name, 1, ItemStack({ name = ":", count = _count_for_val(def.default, def) }))
|
||||
-- cache default value
|
||||
PPA.read_cache[player_name][name] = def.default
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
minetest.register_on_joinplayer(PPA.on_joinplayer)
|
||||
|
||||
|
||||
--[[ get an attribute, procedural style:
|
||||
local attr1 = PPA.get_value(player, "mymod_attr1")
|
||||
]]
|
||||
|
||||
PPA.get_value = function(player, name)
|
||||
local player_name = player:get_player_name()
|
||||
if PPA.read_cache[player_name][name] == nil then
|
||||
local def = PPA.defs[name]
|
||||
local inv = player:get_inventory()
|
||||
local count = inv:get_stack(name, 1):get_count()
|
||||
PPA.read_cache[player_name][name] = _val_for_count(count, def)
|
||||
end
|
||||
return PPA.read_cache[player_name][name]
|
||||
end
|
||||
|
||||
--[[ set an attribute, procedural style:
|
||||
PPA.set_value(player, "mymod_attr1", attr1)
|
||||
]]
|
||||
|
||||
PPA.set_value = function(player, name, value)
|
||||
local def = PPA.defs[name]
|
||||
local inv = player:get_inventory()
|
||||
local player_name = player:get_player_name()
|
||||
if value > def.max then value = def.max end
|
||||
if value < def.min then value = def.min end
|
||||
PPA.read_cache[player_name][name] = value
|
||||
inv:set_stack(name, 1, ItemStack({ name = ":", count = _count_for_val(value, def) }))
|
||||
end
|
@ -1,132 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.4 r9939"
|
||||
sodipodi:docname="bowl.svg"
|
||||
inkscape:export-filename="/home/ben/progs/minetest/minetest-thirsty/textures/thirsty_bowl_32.png"
|
||||
inkscape:export-xdpi="180"
|
||||
inkscape:export-ydpi="180">
|
||||
<defs
|
||||
id="defs4">
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3824"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3820"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761-8"
|
||||
is_visible="true" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#838181"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="6.537478"
|
||||
inkscape:cy="7.4852095"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="744"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:snap-global="false">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid3755"
|
||||
empspacing="5"
|
||||
visible="true"
|
||||
enabled="true"
|
||||
snapvisiblegridlinesonly="true" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<path
|
||||
sodipodi:type="arc"
|
||||
style="fill:#8e5700;fill-opacity:1;stroke:none"
|
||||
id="path3757-8"
|
||||
sodipodi:cx="340"
|
||||
sodipodi:cy="252.36218"
|
||||
sodipodi:rx="180"
|
||||
sodipodi:ry="60"
|
||||
d="m 520,252.36218 c 0,33.13709 -80.58875,60 -180,60 -99.41125,0 -180,-26.86291 -180,-60 0,0 0,0 0,0"
|
||||
transform="matrix(0.0331251,0,0,0.09946417,-3.2760155,1018.2645)"
|
||||
sodipodi:start="0"
|
||||
sodipodi:end="3.1415927"
|
||||
sodipodi:open="true" />
|
||||
<path
|
||||
sodipodi:type="arc"
|
||||
style="fill:#b36e00;fill-opacity:1;stroke:none"
|
||||
id="path3757-8-9"
|
||||
sodipodi:cx="340"
|
||||
sodipodi:cy="252.36218"
|
||||
sodipodi:rx="180"
|
||||
sodipodi:ry="60"
|
||||
d="m 520,252.36218 c 0,33.02374 -80.05876,59.83946 -179.1288,59.9993 L 340,252.36218 z"
|
||||
transform="matrix(0.01804296,0,0,0.09946417,1.8203443,1018.2479)"
|
||||
sodipodi:start="0"
|
||||
sodipodi:end="1.5659563" />
|
||||
<path
|
||||
sodipodi:type="arc"
|
||||
style="fill:#b36e00;fill-opacity:1;stroke:none"
|
||||
id="path3757-8-7"
|
||||
sodipodi:cx="340"
|
||||
sodipodi:cy="252.36218"
|
||||
sodipodi:rx="180"
|
||||
sodipodi:ry="60"
|
||||
d="m 340.89962,312.36143 c -99.41001,0.16562 -180.40052,-26.5627 -180.89737,-59.69937 -7.6e-4,-0.0508 -0.001,-0.1017 -0.002,-0.15255 L 340,252.36218 z"
|
||||
transform="matrix(0.0331251,0,0,0.09946417,-3.3075828,1018.2795)"
|
||||
sodipodi:start="1.5657984"
|
||||
sodipodi:end="3.1391372" />
|
||||
<path
|
||||
sodipodi:type="arc"
|
||||
style="fill:#563500;fill-opacity:1;stroke:none"
|
||||
id="path3757"
|
||||
sodipodi:cx="340"
|
||||
sodipodi:cy="252.36218"
|
||||
sodipodi:rx="180"
|
||||
sodipodi:ry="60"
|
||||
d="m 520,252.36218 c 0,33.13709 -80.58875,60 -180,60 -99.41125,0 -180,-26.86291 -180,-60 0,-33.13708 80.58875,-60 180,-60 99.41125,0 180,26.86292 180,60 z"
|
||||
transform="matrix(0.0331251,0,0,0.0326468,-3.2695864,1035.128)" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 4.2 KiB |
@ -1,139 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.4 r9939"
|
||||
sodipodi:docname="canteen.svg"
|
||||
inkscape:export-filename="/home/ben/progs/minetest/minetest-thirsty/textures/thirsty_bowl_16.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90">
|
||||
<defs
|
||||
id="defs4">
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3824"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3820"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761-8"
|
||||
is_visible="true" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#838181"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="7.6921211"
|
||||
inkscape:cy="7.4852095"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="744"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:snap-global="false">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid3755"
|
||||
empspacing="5"
|
||||
visible="true"
|
||||
enabled="true"
|
||||
snapvisiblegridlinesonly="true" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<g
|
||||
id="g3784"
|
||||
style="fill:#e28b1a;fill-opacity:1">
|
||||
<path
|
||||
transform="translate(0,1037.3408)"
|
||||
d="m 13.005714,8.0134811 a 5.0034118,4.987628 0 1 1 -10.0068236,0 5.0034118,4.987628 0 1 1 10.0068236,0 z"
|
||||
sodipodi:ry="4.987628"
|
||||
sodipodi:rx="5.0034118"
|
||||
sodipodi:cy="8.0134811"
|
||||
sodipodi:cx="8.0023022"
|
||||
id="path3010"
|
||||
style="fill:#e28b1a;fill-opacity:1;stroke:none"
|
||||
sodipodi:type="arc" />
|
||||
<rect
|
||||
transform="translate(0,1036.3622)"
|
||||
y="2.0157008"
|
||||
x="5.9977808"
|
||||
height="1.0101526"
|
||||
width="4.0090427"
|
||||
id="rect3780"
|
||||
style="fill:#e28b1a;fill-opacity:1;stroke:none" />
|
||||
<rect
|
||||
transform="translate(0,1036.3622)"
|
||||
y="3.0258534"
|
||||
x="6.976366"
|
||||
height="1.9887378"
|
||||
width="2.0518723"
|
||||
id="rect3782"
|
||||
style="fill:#e28b1a;fill-opacity:1;stroke:none" />
|
||||
</g>
|
||||
<rect
|
||||
style="fill:#000000;fill-opacity:1;stroke:none"
|
||||
id="rect3789"
|
||||
width="2.0203052"
|
||||
height="0.97858524"
|
||||
x="7.0079331"
|
||||
y="1.0371156"
|
||||
transform="translate(0,1036.3622)" />
|
||||
<rect
|
||||
style="fill:#562f00;fill-opacity:1;stroke:none"
|
||||
id="rect3791"
|
||||
width="11.016976"
|
||||
height="2.0203052"
|
||||
x="562.01971"
|
||||
y="876.90887"
|
||||
transform="matrix(0.84395175,0.53641909,-0.53641909,0.84395175,0,0)" />
|
||||
<rect
|
||||
style="fill:#562f00;fill-opacity:1;stroke:none"
|
||||
id="rect3791-4"
|
||||
width="11.016976"
|
||||
height="2.0203052"
|
||||
x="548.4823"
|
||||
y="885.47589"
|
||||
transform="matrix(-0.84395175,0.53641909,0.53641909,0.84395175,0,0)" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 4.0 KiB |
@ -1,151 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.4 r9939"
|
||||
sodipodi:docname="cup_0.svg"
|
||||
inkscape:export-filename="/home/ben/progs/minetest/minetest-thirsty/textures/thirsty_cup_50_32.png"
|
||||
inkscape:export-xdpi="180"
|
||||
inkscape:export-ydpi="180">
|
||||
<defs
|
||||
id="defs4">
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3824"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3820"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761-8"
|
||||
is_visible="true" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#838181"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="5.2747873"
|
||||
inkscape:cy="10.523682"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="744"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:snap-global="false">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid3755"
|
||||
empspacing="5"
|
||||
visible="true"
|
||||
enabled="true"
|
||||
snapvisiblegridlinesonly="true" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<g
|
||||
id="g3901"
|
||||
transform="translate(-0.06313453,-0.2841054)">
|
||||
<path
|
||||
transform="matrix(0.02586702,0,0,0.02586702,-0.759071,1034.7695)"
|
||||
d="m 520,252.36218 c 0,33.13709 -80.58875,60 -180,60 -99.41125,0 -180,-26.86291 -180,-60 0,-33.13708 80.58875,-60 180,-60 99.41125,0 180,26.86292 180,60 z"
|
||||
sodipodi:ry="60"
|
||||
sodipodi:rx="180"
|
||||
sodipodi:cy="252.36218"
|
||||
sodipodi:cx="340"
|
||||
id="path3757-7"
|
||||
style="fill:none;stroke:#000000;stroke-width:38.65926743;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
sodipodi:type="arc" />
|
||||
<path
|
||||
sodipodi:nodetypes="cccc"
|
||||
inkscape:connector-curvature="0"
|
||||
inkscape:original-d="m 3.379651,1041.2974 2.0693612,8.7948 m 5.1734018,0 2.069363,-8.7948"
|
||||
inkscape:path-effect="#path-effect3761-8"
|
||||
id="path3759-1"
|
||||
d="m 3.379651,1041.2974 2.0693612,8.7948 m 5.1734018,0 2.069363,-8.7948"
|
||||
style="fill:none;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
|
||||
<path
|
||||
sodipodi:end="12.190499"
|
||||
sodipodi:start="6.1411257"
|
||||
d="m 518.18677,243.86725 c 14.07487,32.80327 -54.29213,63.1989 -152.70196,67.89052 -98.40984,4.69163 -189.59671,-18.09737 -203.67158,-50.90065 -14.07487,-32.80328 54.29213,-63.1989 152.70196,-67.89053 82.50666,-3.93345 162.32363,11.52802 192.91865,37.37059"
|
||||
sodipodi:ry="60"
|
||||
sodipodi:rx="180"
|
||||
sodipodi:cy="252.36218"
|
||||
sodipodi:cx="340"
|
||||
id="path3757-2-9"
|
||||
style="fill:none;stroke:#000000;stroke-width:69.22486115;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
sodipodi:type="arc"
|
||||
transform="matrix(0.0143204,0,0,0.01457205,3.175878,1046.32)"
|
||||
sodipodi:open="true" />
|
||||
</g>
|
||||
<path
|
||||
sodipodi:type="arc"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:38.65926743;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
id="path3757"
|
||||
sodipodi:cx="340"
|
||||
sodipodi:cy="252.36218"
|
||||
sodipodi:rx="180"
|
||||
sodipodi:ry="60"
|
||||
d="m 520,252.36218 c 0,33.13709 -80.58875,60 -180,60 -99.41125,0 -180,-26.86291 -180,-60 0,-33.13708 80.58875,-60 180,-60 99.41125,0 180,26.86292 180,60 z"
|
||||
transform="matrix(0.02586702,0,0,0.02586702,-1.6068063,1033.8716)" />
|
||||
<path
|
||||
style="fill:none;stroke:#ffffff;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 2.5319162,1040.3995 2.0693612,8.7948 m 5.1734015,0 2.0693631,-8.7948"
|
||||
id="path3759"
|
||||
inkscape:path-effect="#path-effect3761"
|
||||
inkscape:original-d="m 2.5319162,1040.3995 2.0693612,8.7948 m 5.1734015,0 2.0693631,-8.7948"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<path
|
||||
transform="matrix(0.0143204,0,0,0.01457205,2.3281432,1045.4221)"
|
||||
sodipodi:type="arc"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:69.22486115;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
id="path3757-2"
|
||||
sodipodi:cx="340"
|
||||
sodipodi:cy="252.36218"
|
||||
sodipodi:rx="180"
|
||||
sodipodi:ry="60"
|
||||
d="m 519.45086,257.04536 c -7.75934,33.03599 -94.39241,57.72022 -193.50038,55.13378 -99.10797,-2.58645 -173.16068,-31.46414 -165.40134,-64.50013 7.75934,-33.03599 94.39241,-57.72023 193.50038,-55.13378 91.69188,2.39291 163.2237,27.44217 165.87564,58.08691"
|
||||
sodipodi:start="0.07813237"
|
||||
sodipodi:end="6.2543473"
|
||||
sodipodi:open="true" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 6.0 KiB |
@ -1,167 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.4 r9939"
|
||||
sodipodi:docname="cup.svg"
|
||||
inkscape:export-filename="/home/ben/progs/minetest/minetest-thirsty/textures/thirsty_cup_100_16.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90">
|
||||
<defs
|
||||
id="defs4">
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3824"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3820"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761-8"
|
||||
is_visible="true" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#838181"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="5.2747873"
|
||||
inkscape:cy="10.523682"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="744"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:snap-global="false">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid3755"
|
||||
empspacing="5"
|
||||
visible="true"
|
||||
enabled="true"
|
||||
snapvisiblegridlinesonly="true" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<g
|
||||
id="g3901"
|
||||
transform="translate(-0.06313453,-0.2841054)">
|
||||
<path
|
||||
transform="matrix(0.02586702,0,0,0.02586702,-0.759071,1034.7695)"
|
||||
d="m 520,252.36218 c 0,33.13709 -80.58875,60 -180,60 -99.41125,0 -180,-26.86291 -180,-60 0,-33.13708 80.58875,-60 180,-60 99.41125,0 180,26.86292 180,60 z"
|
||||
sodipodi:ry="60"
|
||||
sodipodi:rx="180"
|
||||
sodipodi:cy="252.36218"
|
||||
sodipodi:cx="340"
|
||||
id="path3757-7"
|
||||
style="fill:none;stroke:#000000;stroke-width:38.65926743;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
sodipodi:type="arc" />
|
||||
<path
|
||||
sodipodi:nodetypes="cccc"
|
||||
inkscape:connector-curvature="0"
|
||||
inkscape:original-d="m 3.379651,1041.2974 2.0693612,8.7948 m 5.1734018,0 2.069363,-8.7948"
|
||||
inkscape:path-effect="#path-effect3761-8"
|
||||
id="path3759-1"
|
||||
d="m 3.379651,1041.2974 2.0693612,8.7948 m 5.1734018,0 2.069363,-8.7948"
|
||||
style="fill:none;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
|
||||
<path
|
||||
sodipodi:open="true"
|
||||
sodipodi:end="3.1415927"
|
||||
sodipodi:start="0"
|
||||
d="m 520,252.36218 c 0,33.13709 -80.58875,60 -180,60 -99.41125,0 -180,-26.86291 -180,-60 0,0 0,0 0,0"
|
||||
sodipodi:ry="60"
|
||||
sodipodi:rx="180"
|
||||
sodipodi:cy="252.36218"
|
||||
sodipodi:cx="340"
|
||||
id="path3757-2-9"
|
||||
style="fill:none;stroke:#000000;stroke-width:69.22486115;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
sodipodi:type="arc"
|
||||
transform="matrix(0.0143204,0,0,0.01457205,3.175878,1046.32)" />
|
||||
</g>
|
||||
<path
|
||||
style="fill:#0000ff;fill-opacity:1;stroke:none"
|
||||
d="m 3.1527235,1042.7275 c 0,0 1.0346817,4.1388 1.5520204,6.4668 1.3456112,1.113 3.7701452,1.0024 5.173404,0 0.5173421,-2.328 1.5520201,-6.4668 1.5520201,-6.4668"
|
||||
id="path3822"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<path
|
||||
transform="matrix(0.02383471,0,0,0.02383471,-0.81511342,1036.4749)"
|
||||
sodipodi:type="arc"
|
||||
style="fill:#0080ff;fill-opacity:1;stroke:none"
|
||||
id="path3757-25"
|
||||
sodipodi:cx="340"
|
||||
sodipodi:cy="252.36218"
|
||||
sodipodi:rx="180"
|
||||
sodipodi:ry="60"
|
||||
d="m 520,252.36218 a 180,60 0 1 1 -360,0 180,60 0 1 1 360,0 z" />
|
||||
<path
|
||||
sodipodi:type="arc"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:38.65926743;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
id="path3757"
|
||||
sodipodi:cx="340"
|
||||
sodipodi:cy="252.36218"
|
||||
sodipodi:rx="180"
|
||||
sodipodi:ry="60"
|
||||
d="m 520,252.36218 a 180,60 0 1 1 -360,0 180,60 0 1 1 360,0 z"
|
||||
transform="matrix(0.02586702,0,0,0.02586702,-1.6068063,1033.8716)" />
|
||||
<path
|
||||
style="fill:none;stroke:#ffffff;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 2.5319162,1040.3995 2.0693612,8.7948 m 5.1734015,0 2.0693631,-8.7948"
|
||||
id="path3759"
|
||||
inkscape:path-effect="#path-effect3761"
|
||||
inkscape:original-d="m 2.5319162,1040.3995 2.0693612,8.7948 m 5.1734015,0 2.0693631,-8.7948"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<path
|
||||
transform="matrix(0.0143204,0,0,0.01457205,2.3281432,1045.4221)"
|
||||
sodipodi:type="arc"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:69.22486115;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
id="path3757-2"
|
||||
sodipodi:cx="340"
|
||||
sodipodi:cy="252.36218"
|
||||
sodipodi:rx="180"
|
||||
sodipodi:ry="60"
|
||||
d="m 520,252.36218 a 180,60 0 1 1 -360,0"
|
||||
sodipodi:start="0"
|
||||
sodipodi:end="3.1415927"
|
||||
sodipodi:open="true" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 6.2 KiB |
@ -1,167 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.4 r9939"
|
||||
sodipodi:docname="cup_100.svg"
|
||||
inkscape:export-filename="/home/ben/progs/minetest/minetest-thirsty/textures/thirsty_cup_100_16.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90">
|
||||
<defs
|
||||
id="defs4">
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3824"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3820"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761-8"
|
||||
is_visible="true" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#838181"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="5.2747873"
|
||||
inkscape:cy="10.523682"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="744"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:snap-global="false">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid3755"
|
||||
empspacing="5"
|
||||
visible="true"
|
||||
enabled="true"
|
||||
snapvisiblegridlinesonly="true" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<g
|
||||
id="g3901"
|
||||
transform="translate(-0.06313453,-0.2841054)">
|
||||
<path
|
||||
transform="matrix(0.02586702,0,0,0.02586702,-0.759071,1034.7695)"
|
||||
d="m 520,252.36218 c 0,33.13709 -80.58875,60 -180,60 -99.41125,0 -180,-26.86291 -180,-60 0,-33.13708 80.58875,-60 180,-60 99.41125,0 180,26.86292 180,60 z"
|
||||
sodipodi:ry="60"
|
||||
sodipodi:rx="180"
|
||||
sodipodi:cy="252.36218"
|
||||
sodipodi:cx="340"
|
||||
id="path3757-7"
|
||||
style="fill:none;stroke:#000000;stroke-width:38.65926743;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
sodipodi:type="arc" />
|
||||
<path
|
||||
sodipodi:nodetypes="cccc"
|
||||
inkscape:connector-curvature="0"
|
||||
inkscape:original-d="m 3.379651,1041.2974 2.0693612,8.7948 m 5.1734018,0 2.069363,-8.7948"
|
||||
inkscape:path-effect="#path-effect3761-8"
|
||||
id="path3759-1"
|
||||
d="m 3.379651,1041.2974 2.0693612,8.7948 m 5.1734018,0 2.069363,-8.7948"
|
||||
style="fill:none;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
|
||||
<path
|
||||
sodipodi:open="true"
|
||||
sodipodi:end="3.1415927"
|
||||
sodipodi:start="0"
|
||||
d="m 520,252.36218 c 0,33.13709 -80.58875,60 -180,60 -99.41125,0 -180,-26.86291 -180,-60 0,0 0,0 0,0"
|
||||
sodipodi:ry="60"
|
||||
sodipodi:rx="180"
|
||||
sodipodi:cy="252.36218"
|
||||
sodipodi:cx="340"
|
||||
id="path3757-2-9"
|
||||
style="fill:none;stroke:#000000;stroke-width:69.22486115;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
sodipodi:type="arc"
|
||||
transform="matrix(0.0143204,0,0,0.01457205,3.175878,1046.32)" />
|
||||
</g>
|
||||
<path
|
||||
style="fill:#0000ff;fill-opacity:1;stroke:none"
|
||||
d="m 3.689367,1045.095 c 0,0 0.4980382,1.7713 1.0153769,4.0993 1.3456112,1.113 3.7701452,1.0024 5.173404,0 0.5173421,-2.328 0.8891071,-3.973 0.8891071,-3.973"
|
||||
id="path3822"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<path
|
||||
transform="matrix(0.01909962,0,0,0.01909962,0.73168267,1040.2584)"
|
||||
sodipodi:type="arc"
|
||||
style="fill:#0080ff;fill-opacity:1;stroke:none"
|
||||
id="path3757-25"
|
||||
sodipodi:cx="340"
|
||||
sodipodi:cy="252.36218"
|
||||
sodipodi:rx="180"
|
||||
sodipodi:ry="60"
|
||||
d="m 520,252.36218 a 180,60 0 1 1 -360,0 180,60 0 1 1 360,0 z" />
|
||||
<path
|
||||
sodipodi:type="arc"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:38.65926743;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
id="path3757"
|
||||
sodipodi:cx="340"
|
||||
sodipodi:cy="252.36218"
|
||||
sodipodi:rx="180"
|
||||
sodipodi:ry="60"
|
||||
d="m 520,252.36218 a 180,60 0 1 1 -360,0 180,60 0 1 1 360,0 z"
|
||||
transform="matrix(0.02586702,0,0,0.02586702,-1.6068063,1033.8716)" />
|
||||
<path
|
||||
style="fill:none;stroke:#ffffff;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 2.5319162,1040.3995 2.0693612,8.7948 m 5.1734015,0 2.0693631,-8.7948"
|
||||
id="path3759"
|
||||
inkscape:path-effect="#path-effect3761"
|
||||
inkscape:original-d="m 2.5319162,1040.3995 2.0693612,8.7948 m 5.1734015,0 2.0693631,-8.7948"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<path
|
||||
transform="matrix(0.0143204,0,0,0.01457205,2.3281432,1045.4221)"
|
||||
sodipodi:type="arc"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:69.22486115;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
id="path3757-2"
|
||||
sodipodi:cx="340"
|
||||
sodipodi:cy="252.36218"
|
||||
sodipodi:rx="180"
|
||||
sodipodi:ry="60"
|
||||
d="m 520,252.36218 a 180,60 0 1 1 -360,0"
|
||||
sodipodi:start="0"
|
||||
sodipodi:end="3.1415927"
|
||||
sodipodi:open="true" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 6.2 KiB |
@ -1,100 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.4 r9939"
|
||||
sodipodi:docname="birdbath_side.svg"
|
||||
inkscape:export-filename="/home/ben/progs/minetest/minetest-thirsty/textures/thirsty_birdbath_side.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90">
|
||||
<defs
|
||||
id="defs4">
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3824"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3820"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761-8"
|
||||
is_visible="true" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#838181"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="9.7439934"
|
||||
inkscape:cy="7.3273732"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="744"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:snap-global="true"
|
||||
inkscape:snap-bbox="true">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid3755"
|
||||
empspacing="5"
|
||||
visible="true"
|
||||
enabled="true"
|
||||
snapvisiblegridlinesonly="true" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<rect
|
||||
style="fill:#b9b9b9;fill-opacity:1;stroke:none"
|
||||
id="rect3861-5"
|
||||
width="16"
|
||||
height="15.999983"
|
||||
x="0"
|
||||
y="1036.3622" />
|
||||
<rect
|
||||
style="fill:#878787;fill-opacity:1;stroke:none"
|
||||
id="rect3861-5-7"
|
||||
width="14"
|
||||
height="14.000017"
|
||||
x="1"
|
||||
y="1037.3622" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 2.7 KiB |
@ -1,115 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.4 r9939"
|
||||
sodipodi:docname="drinkfount_side.svg"
|
||||
inkscape:export-filename="/home/ben/progs/minetest/minetest-thirsty/textures/thirsty_drinkfount_side.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90">
|
||||
<defs
|
||||
id="defs4">
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3824"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3820"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761-8"
|
||||
is_visible="true" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#838181"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="9.7124262"
|
||||
inkscape:cy="9.316111"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="744"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:snap-global="true"
|
||||
inkscape:snap-bbox="true">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid3755"
|
||||
empspacing="5"
|
||||
visible="true"
|
||||
enabled="true"
|
||||
snapvisiblegridlinesonly="true" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<rect
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none"
|
||||
id="rect3015"
|
||||
width="16"
|
||||
height="16"
|
||||
x="0"
|
||||
y="0"
|
||||
transform="translate(0,1036.3622)" />
|
||||
<rect
|
||||
style="fill:#b9b9b9;fill-opacity:1;stroke:none"
|
||||
id="rect3861"
|
||||
width="16"
|
||||
height="1.0000174"
|
||||
x="0"
|
||||
y="1040.3622" />
|
||||
<rect
|
||||
style="fill:#b9b9b9;fill-opacity:1;stroke:none"
|
||||
id="rect3861-5-5"
|
||||
width="1"
|
||||
height="11.000017"
|
||||
x="6"
|
||||
y="1041.3622" />
|
||||
<rect
|
||||
style="fill:#b9b9b9;fill-opacity:1;stroke:none"
|
||||
id="rect3861-5-5-0"
|
||||
width="1"
|
||||
height="11.000017"
|
||||
x="9"
|
||||
y="1041.3622" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 3.1 KiB |
@ -1,114 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.4 r9939"
|
||||
sodipodi:docname="birdbath_top.svg"
|
||||
inkscape:export-filename="/home/ben/progs/minetest/minetest-thirsty/textures/thirsty_birdbath_top.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90">
|
||||
<defs
|
||||
id="defs4">
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3824"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3820"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761-8"
|
||||
is_visible="true" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#838181"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="7.3448812"
|
||||
inkscape:cy="8.5584966"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="744"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:snap-global="true">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid3755"
|
||||
empspacing="5"
|
||||
visible="true"
|
||||
enabled="true"
|
||||
snapvisiblegridlinesonly="true" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<rect
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none"
|
||||
id="rect3015"
|
||||
width="16"
|
||||
height="16"
|
||||
x="0"
|
||||
y="0"
|
||||
transform="translate(0,1036.3622)" />
|
||||
<rect
|
||||
style="fill:#c5c5c5;fill-opacity:1;stroke:none"
|
||||
id="rect3785-8"
|
||||
width="13.988738"
|
||||
height="13.95717"
|
||||
x="1"
|
||||
y="1037.3723" />
|
||||
<rect
|
||||
style="fill:#0063c8;fill-opacity:1;stroke:none"
|
||||
id="rect3785"
|
||||
width="12"
|
||||
height="12"
|
||||
x="2.0315673"
|
||||
y="1038.3622" />
|
||||
<rect
|
||||
style="fill:#0681ff;fill-opacity:1;stroke:none"
|
||||
id="rect3785-9"
|
||||
width="10.04283"
|
||||
height="10.04283"
|
||||
x="2.9988904"
|
||||
y="1039.3081" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 3.1 KiB |
@ -1,140 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.4 r9939"
|
||||
sodipodi:docname="extractor.svg"
|
||||
inkscape:export-filename="/home/ben/progs/minetest/minetest-thirsty/textures/thirsty_birdbath_top.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90">
|
||||
<defs
|
||||
id="defs4">
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3012"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3824"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3820"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761-8"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3012-7"
|
||||
is_visible="true" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#838181"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="5.9243542"
|
||||
inkscape:cy="7.3905077"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="744"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:snap-global="true"
|
||||
inkscape:snap-bbox="true"
|
||||
inkscape:snap-bbox-midpoints="false">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid3755"
|
||||
empspacing="5"
|
||||
visible="true"
|
||||
enabled="true"
|
||||
snapvisiblegridlinesonly="true" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<path
|
||||
style="fill:#ffff03;fill-opacity:1;stroke:none"
|
||||
d="m 6,1038.3622 -4,4 0,4 4,4 3.9999999,0 4.0000001,-4 0,-4 -4.0000001,-4 -3.9999999,0"
|
||||
id="path3010-8"
|
||||
inkscape:path-effect="#path-effect3012-7"
|
||||
inkscape:original-d="m 6,1038.3622 -4,4 0,4 4,4 3.9999999,0 4.0000001,-4 0,-4 -4.0000001,-4 z"
|
||||
inkscape:connector-curvature="0" />
|
||||
<g
|
||||
id="g3859">
|
||||
<path
|
||||
transform="translate(0,1036.3622)"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3803"
|
||||
d="M 6,2 8,8 10,2 z"
|
||||
style="fill:#00ffff;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3803-7"
|
||||
d="m 2,1046.3622 6,-2 -6,-2 z"
|
||||
style="fill:#00ffff;fill-opacity:1;stroke:none" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3803-7-4"
|
||||
d="m 10,1050.3622 -2,-6 -2,6 z"
|
||||
style="fill:#00ffff;fill-opacity:1;stroke:none" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3803-7-4-9"
|
||||
d="m 14,1042.3622 -6,2 6,2 z"
|
||||
style="fill:#00ffff;fill-opacity:1;stroke:none" />
|
||||
</g>
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="m 6,2 -4,4 0,4 4,4 4,0 4,-4 0,-4 -4,-4 -4,0"
|
||||
id="path3010"
|
||||
inkscape:path-effect="#path-effect3012"
|
||||
inkscape:original-d="m 6,2 -4,4 0,4 4,4 4,0 4,-4 0,-4 -4,-4 z"
|
||||
inkscape:connector-curvature="0"
|
||||
transform="translate(0,1036.3622)" />
|
||||
<path
|
||||
style="fill:#0000ff;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1"
|
||||
d="M 7,6 6,7 6,9 7,10 9,10 10,9 10,7 9,6 z"
|
||||
id="path3865"
|
||||
inkscape:connector-curvature="0"
|
||||
transform="translate(0,1036.3622)" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 4.5 KiB |
@ -1,141 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.4 r9939"
|
||||
sodipodi:docname="extractor.svg"
|
||||
inkscape:export-filename="/home/ben/progs/minetest/minetest-thirsty/textures/thirsty_extractor.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90">
|
||||
<defs
|
||||
id="defs4">
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3012"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3824"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3820"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761-8"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3012-7"
|
||||
is_visible="true" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#838181"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="5.9243542"
|
||||
inkscape:cy="7.3905077"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="744"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:snap-global="true"
|
||||
inkscape:snap-bbox="true"
|
||||
inkscape:snap-bbox-midpoints="false">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid3755"
|
||||
empspacing="5"
|
||||
visible="true"
|
||||
enabled="true"
|
||||
snapvisiblegridlinesonly="true" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<path
|
||||
style="fill:#00ffff;fill-opacity:1;stroke:none"
|
||||
d="m 6,1038.3622 -4,4 0,4 4,4 3.9999999,0 4.0000001,-4 0,-4 -4.0000001,-4 -3.9999999,0"
|
||||
id="path3010-8"
|
||||
inkscape:path-effect="#path-effect3012-7"
|
||||
inkscape:original-d="m 6,1038.3622 -4,4 0,4 4,4 3.9999999,0 4.0000001,-4 0,-4 -4.0000001,-4 z"
|
||||
inkscape:connector-curvature="0" />
|
||||
<g
|
||||
id="g3859"
|
||||
style="fill:#ffff00;fill-opacity:1">
|
||||
<path
|
||||
transform="translate(0,1036.3622)"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3803"
|
||||
d="M 6,2 8,8 10,2 z"
|
||||
style="fill:#ffff00;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3803-7"
|
||||
d="m 2,1046.3622 6,-2 -6,-2 z"
|
||||
style="fill:#ffff00;fill-opacity:1;stroke:none" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3803-7-4"
|
||||
d="m 10,1050.3622 -2,-6 -2,6 z"
|
||||
style="fill:#ffff00;fill-opacity:1;stroke:none" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path3803-7-4-9"
|
||||
d="m 14,1042.3622 -6,2 6,2 z"
|
||||
style="fill:#ffff00;fill-opacity:1;stroke:none" />
|
||||
</g>
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="m 6,2 -4,4 0,4 4,4 4,0 4,-4 0,-4 -4,-4 -4,0"
|
||||
id="path3010"
|
||||
inkscape:path-effect="#path-effect3012"
|
||||
inkscape:original-d="m 6,2 -4,4 0,4 4,4 4,0 4,-4 0,-4 -4,-4 z"
|
||||
inkscape:connector-curvature="0"
|
||||
transform="translate(0,1036.3622)" />
|
||||
<path
|
||||
style="fill:#0000ff;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1"
|
||||
d="M 7,6 6,7 6,9 7,10 9,10 10,9 10,7 9,6 z"
|
||||
id="path3865"
|
||||
inkscape:connector-curvature="0"
|
||||
transform="translate(0,1036.3622)" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 4.6 KiB |
@ -1,139 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.4 r9939"
|
||||
sodipodi:docname="bronze_canteen.svg"
|
||||
inkscape:export-filename="/home/ben/progs/minetest/minetest-thirsty/textures/thirsty_bowl_16.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90">
|
||||
<defs
|
||||
id="defs4">
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3824"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3820"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761-8"
|
||||
is_visible="true" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#838181"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="7.6921211"
|
||||
inkscape:cy="7.4852095"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="744"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:snap-global="false">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid3755"
|
||||
empspacing="5"
|
||||
visible="true"
|
||||
enabled="true"
|
||||
snapvisiblegridlinesonly="true" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<g
|
||||
id="g3784"
|
||||
style="fill:#949494;fill-opacity:1">
|
||||
<path
|
||||
transform="translate(0,1037.3408)"
|
||||
d="m 13.005714,8.0134811 a 5.0034118,4.987628 0 1 1 -10.0068236,0 5.0034118,4.987628 0 1 1 10.0068236,0 z"
|
||||
sodipodi:ry="4.987628"
|
||||
sodipodi:rx="5.0034118"
|
||||
sodipodi:cy="8.0134811"
|
||||
sodipodi:cx="8.0023022"
|
||||
id="path3010"
|
||||
style="fill:#949494;fill-opacity:1;stroke:none"
|
||||
sodipodi:type="arc" />
|
||||
<rect
|
||||
transform="translate(0,1036.3622)"
|
||||
y="2.0157008"
|
||||
x="5.9977808"
|
||||
height="1.0101526"
|
||||
width="4.0090427"
|
||||
id="rect3780"
|
||||
style="fill:#949494;fill-opacity:1;stroke:none" />
|
||||
<rect
|
||||
transform="translate(0,1036.3622)"
|
||||
y="3.0258534"
|
||||
x="6.976366"
|
||||
height="1.9887378"
|
||||
width="2.0518723"
|
||||
id="rect3782"
|
||||
style="fill:#949494;fill-opacity:1;stroke:none" />
|
||||
</g>
|
||||
<rect
|
||||
style="fill:#000000;fill-opacity:1;stroke:none"
|
||||
id="rect3789"
|
||||
width="2.0203052"
|
||||
height="0.97858524"
|
||||
x="7.0079331"
|
||||
y="1.0371156"
|
||||
transform="translate(0,1036.3622)" />
|
||||
<rect
|
||||
style="fill:#562f00;fill-opacity:1;stroke:none"
|
||||
id="rect3791"
|
||||
width="11.016976"
|
||||
height="2.0203052"
|
||||
x="562.01971"
|
||||
y="876.90887"
|
||||
transform="matrix(0.84395175,0.53641909,-0.53641909,0.84395175,0,0)" />
|
||||
<rect
|
||||
style="fill:#562f00;fill-opacity:1;stroke:none"
|
||||
id="rect3791-4"
|
||||
width="11.016976"
|
||||
height="2.0203052"
|
||||
x="548.4823"
|
||||
y="885.47589"
|
||||
transform="matrix(-0.84395175,0.53641909,0.53641909,0.84395175,0,0)" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 4.0 KiB |
@ -1,244 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.4 r9939"
|
||||
sodipodi:docname="waterextender_top.svg"
|
||||
inkscape:export-filename="/home/ben/progs/minetest/minetest-thirsty/textures/thirsty_birdbath_top.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90">
|
||||
<defs
|
||||
id="defs4">
|
||||
<linearGradient
|
||||
id="linearGradient3761">
|
||||
<stop
|
||||
style="stop-color:#aa4400;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3763" />
|
||||
<stop
|
||||
style="stop-color:#ffda2f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3765" />
|
||||
</linearGradient>
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3824"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3820"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761-8"
|
||||
is_visible="true" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3761"
|
||||
id="linearGradient3767"
|
||||
x1="7"
|
||||
y1="8"
|
||||
x2="9"
|
||||
y2="8"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3761-6"
|
||||
id="linearGradient3767-4"
|
||||
x1="7"
|
||||
y1="8"
|
||||
x2="9"
|
||||
y2="8"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
id="linearGradient3761-6">
|
||||
<stop
|
||||
style="stop-color:#aa4400;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3763-2" />
|
||||
<stop
|
||||
style="stop-color:#ffda2f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3765-8" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
gradientTransform="matrix(1,0,0,0.56397713,-4.9876282,1036.3611)"
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3809-6"
|
||||
xlink:href="#linearGradient3761-6-2"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
id="linearGradient3761-6-2">
|
||||
<stop
|
||||
style="stop-color:#aa4400;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3763-2-2" />
|
||||
<stop
|
||||
style="stop-color:#ffda2f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3765-8-9" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
gradientTransform="matrix(1,0,0,0.56397713,-4.9876282,1036.3611)"
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3809-63"
|
||||
xlink:href="#linearGradient3761-6-28"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
id="linearGradient3761-6-28">
|
||||
<stop
|
||||
style="stop-color:#aa4400;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3763-2-4" />
|
||||
<stop
|
||||
style="stop-color:#ffda2f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3765-8-0" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientTransform="matrix(9.0998777e-4,-0.99999959,0.5639769,5.1321229e-4,2.2813658,1052.4044)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3878"
|
||||
xlink:href="#linearGradient3761-6-28"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientTransform="matrix(9.0998777e-4,-0.99999959,0.5639769,5.1321229e-4,2.2813658,1052.4044)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3878-5"
|
||||
xlink:href="#linearGradient3761-6-28-1"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
id="linearGradient3761-6-28-1">
|
||||
<stop
|
||||
style="stop-color:#aa4400;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3763-2-4-7" />
|
||||
<stop
|
||||
style="stop-color:#ffda2f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3765-8-0-4" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientTransform="matrix(-9.0998777e-4,-0.99999959,-0.5639769,5.1321229e-4,13.707372,1052.3728)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3912"
|
||||
xlink:href="#linearGradient3761-6-28-1"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3761-6-28-1-0"
|
||||
id="linearGradient3958-0"
|
||||
x1="1"
|
||||
y1="13"
|
||||
x2="5"
|
||||
y2="13"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
id="linearGradient3761-6-28-1-0">
|
||||
<stop
|
||||
style="stop-color:#aa4400;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3763-2-4-7-4" />
|
||||
<stop
|
||||
style="stop-color:#ffda2f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3765-8-0-4-5" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#838181"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="8.1024956"
|
||||
inkscape:cy="8.1165549"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="744"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:snap-global="true">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid3755"
|
||||
empspacing="5"
|
||||
visible="true"
|
||||
enabled="true"
|
||||
snapvisiblegridlinesonly="true" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<rect
|
||||
style="fill:#6a5f55;fill-opacity:1;stroke:none"
|
||||
id="rect3015"
|
||||
width="16"
|
||||
height="16.000017"
|
||||
x="0"
|
||||
y="1036.3622" />
|
||||
<rect
|
||||
style="fill:url(#linearGradient3767);fill-opacity:1;stroke:none"
|
||||
id="rect3759"
|
||||
width="2"
|
||||
height="16"
|
||||
x="7"
|
||||
y="0"
|
||||
transform="translate(0,1036.3622)" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 6.8 KiB |
@ -1,309 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.4 r9939"
|
||||
sodipodi:docname="waterfountain_top.svg"
|
||||
inkscape:export-filename="/home/ben/progs/minetest/minetest-thirsty/textures/thirsty_birdbath_top.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90">
|
||||
<defs
|
||||
id="defs4">
|
||||
<linearGradient
|
||||
id="linearGradient3761">
|
||||
<stop
|
||||
style="stop-color:#aa4400;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3763" />
|
||||
<stop
|
||||
style="stop-color:#ffda2f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3765" />
|
||||
</linearGradient>
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3824"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3820"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761-8"
|
||||
is_visible="true" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3761"
|
||||
id="linearGradient3767"
|
||||
x1="7"
|
||||
y1="8"
|
||||
x2="9"
|
||||
y2="8"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3761-6"
|
||||
id="linearGradient3767-4"
|
||||
x1="7"
|
||||
y1="8"
|
||||
x2="9"
|
||||
y2="8"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
id="linearGradient3761-6">
|
||||
<stop
|
||||
style="stop-color:#aa4400;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3763-2" />
|
||||
<stop
|
||||
style="stop-color:#ffda2f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3765-8" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
gradientTransform="matrix(1,0,0,0.56397713,-4.9876282,1036.3611)"
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3809"
|
||||
xlink:href="#linearGradient3761-6"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
gradientTransform="matrix(1,0,0,0.56397713,-4.9876282,1036.3611)"
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3809-6"
|
||||
xlink:href="#linearGradient3761-6-2"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
id="linearGradient3761-6-2">
|
||||
<stop
|
||||
style="stop-color:#aa4400;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3763-2-2" />
|
||||
<stop
|
||||
style="stop-color:#ffda2f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3765-8-9" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientTransform="matrix(1,0,0,0.56397713,4.9977807,1036.3498)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3844"
|
||||
xlink:href="#linearGradient3761-6-2"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
gradientTransform="matrix(1,0,0,0.56397713,-4.9876282,1036.3611)"
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3809-63"
|
||||
xlink:href="#linearGradient3761-6-28"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
id="linearGradient3761-6-28">
|
||||
<stop
|
||||
style="stop-color:#aa4400;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3763-2-4" />
|
||||
<stop
|
||||
style="stop-color:#ffda2f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3765-8-0" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientTransform="matrix(9.0998777e-4,-0.99999959,0.5639769,5.1321229e-4,2.2813658,1052.4044)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3878"
|
||||
xlink:href="#linearGradient3761-6-28"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientTransform="matrix(9.0998777e-4,-0.99999959,0.5639769,5.1321229e-4,2.2813658,1052.4044)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3878-5"
|
||||
xlink:href="#linearGradient3761-6-28-1"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
id="linearGradient3761-6-28-1">
|
||||
<stop
|
||||
style="stop-color:#aa4400;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3763-2-4-7" />
|
||||
<stop
|
||||
style="stop-color:#ffda2f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3765-8-0-4" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientTransform="matrix(-9.0998777e-4,-0.99999959,-0.5639769,5.1321229e-4,13.707372,1052.3728)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3912"
|
||||
xlink:href="#linearGradient3761-6-28-1"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3761-6-28-1"
|
||||
id="linearGradient3958"
|
||||
x1="1"
|
||||
y1="13"
|
||||
x2="5"
|
||||
y2="13"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3761-6-28-1-0"
|
||||
id="linearGradient3958-0"
|
||||
x1="1"
|
||||
y1="13"
|
||||
x2="5"
|
||||
y2="13"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
id="linearGradient3761-6-28-1-0">
|
||||
<stop
|
||||
style="stop-color:#aa4400;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3763-2-4-7-4" />
|
||||
<stop
|
||||
style="stop-color:#ffda2f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3765-8-0-4-5" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#838181"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="8.1024956"
|
||||
inkscape:cy="8.1165549"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="744"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:snap-global="true">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid3755"
|
||||
empspacing="5"
|
||||
visible="true"
|
||||
enabled="true"
|
||||
snapvisiblegridlinesonly="true" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<rect
|
||||
style="fill:#6a5f55;fill-opacity:1;stroke:none"
|
||||
id="rect3015"
|
||||
width="16"
|
||||
height="16.000017"
|
||||
x="0"
|
||||
y="1036.3622" />
|
||||
<rect
|
||||
style="fill:url(#linearGradient3767);fill-opacity:1;stroke:none"
|
||||
id="rect3759"
|
||||
width="2"
|
||||
height="16"
|
||||
x="7"
|
||||
y="0"
|
||||
transform="translate(0,1036.3622)" />
|
||||
<path
|
||||
style="fill:url(#linearGradient3878);fill-opacity:1;stroke:none"
|
||||
d="m 0,1045.3622 0,-2 7,0 0,2 z"
|
||||
id="rect3759-4-5"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccccc" />
|
||||
<path
|
||||
style="fill:url(#linearGradient3912);fill-opacity:1;stroke:none"
|
||||
d="m 16,1045.3622 0,-2 -7.0112622,-0.032 0,2 z"
|
||||
id="rect3759-4-5-0"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccccc" />
|
||||
<g
|
||||
transform="translate(4.9988903,-5.0090429)"
|
||||
id="g3996">
|
||||
<path
|
||||
transform="translate(0,1036.3622)"
|
||||
d="m 5,13 c 0,1.104569 -0.8954305,2 -2,2 -1.1045695,0 -2,-0.895431 -2,-2 0,-1.104569 0.8954305,-2 2,-2 1.1045695,0 2,0.895431 2,2 z"
|
||||
sodipodi:ry="2"
|
||||
sodipodi:rx="2"
|
||||
sodipodi:cy="13"
|
||||
sodipodi:cx="3"
|
||||
id="path3950"
|
||||
style="fill:url(#linearGradient3958-0);fill-opacity:1;stroke:none"
|
||||
sodipodi:type="arc" />
|
||||
<path
|
||||
transform="translate(0,1036.3622)"
|
||||
d="m 4,13 c 0,0.552285 -0.4477153,1 -1,1 -0.5522847,0 -1,-0.447715 -1,-1 0,-0.552285 0.4477153,-1 1,-1 0.5522847,0 1,0.447715 1,1 z"
|
||||
sodipodi:ry="1"
|
||||
sodipodi:rx="1"
|
||||
sodipodi:cy="13"
|
||||
sodipodi:cx="3"
|
||||
id="path3960"
|
||||
style="fill:#000000;fill-opacity:1;stroke:none"
|
||||
sodipodi:type="arc" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 9.0 KiB |
@ -1,268 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.4 r9939"
|
||||
sodipodi:docname="waterfountain.svg"
|
||||
inkscape:export-filename="/home/ben/progs/minetest/minetest-thirsty/textures/thirsty_birdbath_top.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90">
|
||||
<defs
|
||||
id="defs4">
|
||||
<linearGradient
|
||||
id="linearGradient3761">
|
||||
<stop
|
||||
style="stop-color:#aa4400;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3763" />
|
||||
<stop
|
||||
style="stop-color:#ffda2f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3765" />
|
||||
</linearGradient>
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3824"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3820"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761"
|
||||
is_visible="true" />
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect3761-8"
|
||||
is_visible="true" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3761"
|
||||
id="linearGradient3767"
|
||||
x1="7"
|
||||
y1="8"
|
||||
x2="9"
|
||||
y2="8"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient3761-6"
|
||||
id="linearGradient3767-4"
|
||||
x1="7"
|
||||
y1="8"
|
||||
x2="9"
|
||||
y2="8"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
<linearGradient
|
||||
id="linearGradient3761-6">
|
||||
<stop
|
||||
style="stop-color:#aa4400;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3763-2" />
|
||||
<stop
|
||||
style="stop-color:#ffda2f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3765-8" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
gradientTransform="matrix(1,0,0,0.56397713,-4.9876282,1036.3611)"
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3809"
|
||||
xlink:href="#linearGradient3761-6"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
gradientTransform="matrix(1,0,0,0.56397713,-4.9876282,1036.3611)"
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3809-6"
|
||||
xlink:href="#linearGradient3761-6-2"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
id="linearGradient3761-6-2">
|
||||
<stop
|
||||
style="stop-color:#aa4400;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3763-2-2" />
|
||||
<stop
|
||||
style="stop-color:#ffda2f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3765-8-9" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientTransform="matrix(1,0,0,0.56397713,4.9977807,1036.3498)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3844"
|
||||
xlink:href="#linearGradient3761-6-2"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
gradientTransform="matrix(1,0,0,0.56397713,-4.9876282,1036.3611)"
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3809-63"
|
||||
xlink:href="#linearGradient3761-6-28"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
id="linearGradient3761-6-28">
|
||||
<stop
|
||||
style="stop-color:#aa4400;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3763-2-4" />
|
||||
<stop
|
||||
style="stop-color:#ffda2f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3765-8-0" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientTransform="matrix(9.0998777e-4,-0.99999959,0.5639769,5.1321229e-4,2.2813658,1052.4044)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3878"
|
||||
xlink:href="#linearGradient3761-6-28"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientTransform="matrix(9.0998777e-4,-0.99999959,0.5639769,5.1321229e-4,2.2813658,1052.4044)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3878-5"
|
||||
xlink:href="#linearGradient3761-6-28-1"
|
||||
inkscape:collect="always" />
|
||||
<linearGradient
|
||||
id="linearGradient3761-6-28-1">
|
||||
<stop
|
||||
style="stop-color:#aa4400;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop3763-2-4-7" />
|
||||
<stop
|
||||
style="stop-color:#ffda2f;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop3765-8-0-4" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
y2="8"
|
||||
x2="9"
|
||||
y1="8"
|
||||
x1="7"
|
||||
gradientTransform="matrix(-9.0998777e-4,-0.99999959,-0.5639769,5.1321229e-4,13.707372,1052.3728)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient3912"
|
||||
xlink:href="#linearGradient3761-6-28-1"
|
||||
inkscape:collect="always" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#838181"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="8.1024956"
|
||||
inkscape:cy="8.1165549"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="744"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:snap-global="true">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid3755"
|
||||
empspacing="5"
|
||||
visible="true"
|
||||
enabled="true"
|
||||
snapvisiblegridlinesonly="true" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<rect
|
||||
style="fill:#6a5f55;fill-opacity:1;stroke:none"
|
||||
id="rect3015"
|
||||
width="16"
|
||||
height="16.000017"
|
||||
x="0"
|
||||
y="1036.3622" />
|
||||
<rect
|
||||
style="fill:url(#linearGradient3767);fill-opacity:1;stroke:none"
|
||||
id="rect3759"
|
||||
width="2"
|
||||
height="16"
|
||||
x="7"
|
||||
y="0"
|
||||
transform="translate(0,1036.3622)" />
|
||||
<path
|
||||
style="fill:url(#linearGradient3809);fill-opacity:1;stroke:none"
|
||||
d="m 2.0123718,1036.3611 2,0 L 4,1043.3622 l -1.9876282,2.0225 z"
|
||||
id="rect3759-4"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccccc" />
|
||||
<path
|
||||
style="fill:url(#linearGradient3844);fill-opacity:1;stroke:none"
|
||||
d="m 12,1036.3622 2,0 0,9 -2,-2 z"
|
||||
id="rect3759-4-4"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccccc" />
|
||||
<path
|
||||
style="fill:url(#linearGradient3878);fill-opacity:1;stroke:none"
|
||||
d="m 2,1045.3622 2,-2 3,0 0,2 z"
|
||||
id="rect3759-4-5"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccccc" />
|
||||
<path
|
||||
style="fill:url(#linearGradient3912);fill-opacity:1;stroke:none"
|
||||
d="m 13.988738,1045.3306 -2,-2 -3.0000002,0 0,2 z"
|
||||
id="rect3759-4-5-0"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccccc" />
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 352 B |
Before Width: | Height: | Size: 714 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 651 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 272 B |
Before Width: | Height: | Size: 272 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 431 B |
Before Width: | Height: | Size: 518 B |
Before Width: | Height: | Size: 184 B |
Before Width: | Height: | Size: 182 B |
Before Width: | Height: | Size: 236 B |
Before Width: | Height: | Size: 453 B |
Before Width: | Height: | Size: 172 B |
Before Width: | Height: | Size: 438 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 176 B |
Before Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 280 B |
Before Width: | Height: | Size: 750 B |
@ -1,193 +0,0 @@
|
||||
--[[
|
||||
|
||||
Thirsty configuration
|
||||
-----------------------------
|
||||
|
||||
To modify the configuration without fear of it being overwritten
|
||||
by an update of this mod, copy this file to
|
||||
|
||||
thirsty.conf
|
||||
|
||||
in the mod directory or the directory of a specific world, and
|
||||
modify away. The mod will read configuration first from the
|
||||
default file, then from the mod directory copy, and finally from
|
||||
the world directory copy.
|
||||
|
||||
The settings from these locations will be merged together in an
|
||||
intelligent fashion. Normal entries in the config table will get
|
||||
overwritten. Table entries (those with {} at the left of the =)
|
||||
will get merged together, unless the special table entry 'CLEAR'
|
||||
is given, with a true value. This merging does not go deeper than
|
||||
one level, but this should be sufficient.
|
||||
|
||||
]]
|
||||
|
||||
thirsty.config = {
|
||||
|
||||
--[[ The period, in seconds, in which this mod updates values.
|
||||
Changing this will not directly affect other values, but
|
||||
may change computation load or accuracy.
|
||||
]]
|
||||
tick_time = 0.5,
|
||||
|
||||
-------------------------------------------
|
||||
-- Tier 0: basics, and standing in water --
|
||||
-------------------------------------------
|
||||
|
||||
-- Thirst per second (full hydration is 20 hydro points)
|
||||
thirst_per_second = 1.0 / 20.0,
|
||||
|
||||
-- Damage per second if completely thirsty / out of hydration
|
||||
damage_per_second = 1.0 / 10.0,
|
||||
|
||||
--[[ How long in seconds you have to remain still to drink
|
||||
from standing in water
|
||||
]]
|
||||
stand_still_for_drink = 1.0,
|
||||
|
||||
--[[ How long in seconds of not moving before a player is deemed
|
||||
AFK (away from keyboard), such players no longer get thirsty
|
||||
or damaged
|
||||
]]
|
||||
stand_still_for_afk = 120.0, -- 2 Minutes
|
||||
|
||||
--[[ regen_from_node is a table defining, for each node type, the
|
||||
amount of hydro per second a player drinks by standing in it.
|
||||
Assign 0 to stop a player from drinking from this node type.
|
||||
]]
|
||||
regen_from_node = {
|
||||
['default:water_source'] = 0.5,
|
||||
['default:water_flowing'] = 0.5,
|
||||
['default:river_water_source'] = 0.5,
|
||||
['default:river_water_flowing'] = 0.5,
|
||||
},
|
||||
|
||||
---------------------------------
|
||||
-- Tier 1: drinking with bowls --
|
||||
---------------------------------
|
||||
|
||||
--[[ node_drinkable: which nodes can we drink from, given a
|
||||
container (a cup, a bowl etc.)
|
||||
]]
|
||||
node_drinkable = {
|
||||
['default:water_source'] = true,
|
||||
['default:water_flowing'] = true,
|
||||
['default:river_water_source'] = true,
|
||||
['default:river_water_flowing'] = true,
|
||||
['thirsty:drinking_fountain'] = true,
|
||||
},
|
||||
|
||||
--[[ drink_from_container: the hydration you drink to when
|
||||
using each container. Remember that "full hydration" is
|
||||
20 points; these should be more to reward using them.
|
||||
]]
|
||||
drink_from_container = {
|
||||
['thirsty:wooden_bowl'] = 25,
|
||||
['thirsty:steel_canteen'] = 25,
|
||||
['thirsty:bronze_canteen'] = 25,
|
||||
},
|
||||
|
||||
----------------------
|
||||
-- Tier 2: canteens --
|
||||
----------------------
|
||||
|
||||
--[[ container_capacity: how much hydration each container
|
||||
(canteens) can hold. Remember that "full hydration" is
|
||||
20 points
|
||||
]]
|
||||
container_capacity = {
|
||||
['thirsty:steel_canteen'] = 40,
|
||||
['thirsty:bronze_canteen'] = 60,
|
||||
},
|
||||
|
||||
--------------------------------
|
||||
-- Tier 3: drinking fountains --
|
||||
--------------------------------
|
||||
|
||||
--[[ drink_from_node: if you use one of these node
|
||||
(i.e. fountains), even without cups or bowls, how full
|
||||
will you get?
|
||||
]]
|
||||
drink_from_node = {
|
||||
['thirsty:drinking_fountain'] = 30,
|
||||
},
|
||||
|
||||
-------------------------------------
|
||||
-- Tier 4: free-standing fountains --
|
||||
-------------------------------------
|
||||
|
||||
--[[ fountain_type: when scanning the surroundings of fountains,
|
||||
which nodes are "fountains" and which are "water"? You need
|
||||
at least one "fountain" and one "water" per fountain level.
|
||||
]]
|
||||
fountain_type = {
|
||||
['thirsty:water_fountain'] = 'f',
|
||||
['thirsty:water_extender'] = 'f',
|
||||
['default:water_source'] = 'w',
|
||||
['default:water_flowing'] = 'w',
|
||||
['default:river_water_source'] = 'w',
|
||||
['default:river_water_flowing'] = 'w',
|
||||
},
|
||||
|
||||
--[[ Regeneration from being within a fountain's radius; see also
|
||||
regen_from_node (it's as if you're standing in water)
|
||||
]]
|
||||
regen_from_fountain = 0.5,
|
||||
|
||||
-- How far should the fountain scanning pyramid go?
|
||||
fountain_height = 4,
|
||||
|
||||
-- The max level of a fountain
|
||||
fountain_max_level = 20,
|
||||
|
||||
--[[ How many nodes away can you still benefit from a fountain,
|
||||
per fountain level
|
||||
]]
|
||||
fountain_distance_per_level = 5,
|
||||
|
||||
---------------------
|
||||
-- Tier 5: amulets --
|
||||
---------------------
|
||||
|
||||
--[[ How much hydration does a given item *extract*
|
||||
(pull out of the air)
|
||||
]]
|
||||
extraction_for_item = {
|
||||
['thirsty:extractor']= 0.6,
|
||||
},
|
||||
|
||||
--[[ How much hydration does a given item *inject*
|
||||
(fill you up with)
|
||||
]]
|
||||
injection_for_item = {
|
||||
['thirsty:injector'] = 0.5,
|
||||
},
|
||||
|
||||
---------------------------------------
|
||||
-- Toggle node and craft definitions --
|
||||
---------------------------------------
|
||||
|
||||
--[[ These flags enable or disable the predefined components
|
||||
included in this mod. They do *not* enable or disable
|
||||
the functionality.
|
||||
]]
|
||||
|
||||
-- Should we augment the vessels from the "vessels" mod?
|
||||
register_vessels = true,
|
||||
|
||||
-- Add the wooden bowl and crafting recipe?
|
||||
register_bowl = true,
|
||||
|
||||
-- Add the canteens and crafting recipes?
|
||||
register_canteens = true,
|
||||
|
||||
-- Add the drinking fountain and crafting recipes?
|
||||
register_drinking_fountain = true,
|
||||
|
||||
-- Add the fountain and extenders and crafting recipes?
|
||||
register_fountains = true,
|
||||
|
||||
-- Add the amulets (extractor / injector) and crafting recipes?
|
||||
register_amulets = true,
|
||||
|
||||
}
|