From 82aea283b76e0c4c88cbced115489b5560daff1a Mon Sep 17 00:00:00 2001 From: rainer Date: Fri, 22 Aug 2025 02:30:16 +0200 Subject: [PATCH] first commit --- .github/workflows/luacheck.yml | 11 + .luacheckrc | 21 ++ LICENSE | 600 +++++++++++++++++++++++++++++++++ Money_Info.txt | 36 ++ README.md | 12 + barter.lua | 212 ++++++++++++ crafting.lua | 167 +++++++++ craftitems.lua | 63 ++++ income.lua | 56 +++ init.lua | 28 ++ locale/currency.de.tr | 45 +++ locale/currency.es.tr | 46 +++ locale/currency.fr.tr | 47 +++ locale/currency.id.tr | 45 +++ locale/currency.it.tr | 45 +++ locale/currency.ms.tr | 46 +++ locale/currency.ru.tr | 45 +++ locale/currency.uk.tr | 43 +++ locale/template.txt | 45 +++ loot.lua | 49 +++ mod.conf | 7 + safe.lua | 111 ++++++ settingtypes.txt | 14 + shop.lua | 340 +++++++++++++++++++ textures/barter_base.png | Bin 0 -> 86 bytes textures/barter_side.png | Bin 0 -> 529 bytes textures/barter_side.png.old | Bin 0 -> 1400 bytes textures/barter_top.png | Bin 0 -> 520 bytes textures/barter_top.png.old | Bin 0 -> 896 bytes textures/minegeld.png | Bin 0 -> 3563 bytes textures/minegeld_10.png | Bin 0 -> 3509 bytes textures/minegeld_100.png | Bin 0 -> 3527 bytes textures/minegeld_5.png | Bin 0 -> 3365 bytes textures/minegeld_50.png | Bin 0 -> 1014 bytes textures/minegeld_bundle.png | Bin 0 -> 5092 bytes textures/minegeld_cent_10.png | Bin 0 -> 2326 bytes textures/minegeld_cent_25.png | Bin 0 -> 2900 bytes textures/minegeld_cent_5.png | Bin 0 -> 2992 bytes textures/safe_front.png | Bin 0 -> 309 bytes textures/safe_side.png | Bin 0 -> 150 bytes textures/shop_front.png | Bin 0 -> 822 bytes textures/shop_front_empty.png | Bin 0 -> 925 bytes textures/shop_side.png | Bin 0 -> 755 bytes textures/shop_side_empty.png | Bin 0 -> 929 bytes textures/shop_top.png | Bin 0 -> 734 bytes 45 files changed, 2134 insertions(+) create mode 100644 .github/workflows/luacheck.yml create mode 100644 .luacheckrc create mode 100644 LICENSE create mode 100644 Money_Info.txt create mode 100644 README.md create mode 100644 barter.lua create mode 100644 crafting.lua create mode 100644 craftitems.lua create mode 100644 income.lua create mode 100644 init.lua create mode 100644 locale/currency.de.tr create mode 100644 locale/currency.es.tr create mode 100644 locale/currency.fr.tr create mode 100644 locale/currency.id.tr create mode 100644 locale/currency.it.tr create mode 100644 locale/currency.ms.tr create mode 100644 locale/currency.ru.tr create mode 100644 locale/currency.uk.tr create mode 100644 locale/template.txt create mode 100644 loot.lua create mode 100644 mod.conf create mode 100644 safe.lua create mode 100644 settingtypes.txt create mode 100644 shop.lua create mode 100644 textures/barter_base.png create mode 100644 textures/barter_side.png create mode 100644 textures/barter_side.png.old create mode 100644 textures/barter_top.png create mode 100644 textures/barter_top.png.old create mode 100644 textures/minegeld.png create mode 100644 textures/minegeld_10.png create mode 100644 textures/minegeld_100.png create mode 100644 textures/minegeld_5.png create mode 100644 textures/minegeld_50.png create mode 100644 textures/minegeld_bundle.png create mode 100644 textures/minegeld_cent_10.png create mode 100644 textures/minegeld_cent_25.png create mode 100644 textures/minegeld_cent_5.png create mode 100644 textures/safe_front.png create mode 100644 textures/safe_side.png create mode 100644 textures/shop_front.png create mode 100644 textures/shop_front_empty.png create mode 100644 textures/shop_side.png create mode 100644 textures/shop_side_empty.png create mode 100644 textures/shop_top.png diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml new file mode 100644 index 0000000..5290e24 --- /dev/null +++ b/.github/workflows/luacheck.yml @@ -0,0 +1,11 @@ +on: [push, pull_request] +name: luacheck +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: lint + uses: Roang-zero1/factorio-mod-luacheck@master + with: + luacheckrc_url: "" diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..1d23b4a --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,21 @@ +unused = false + +globals = { + "currency", "barter", + "default" +} + +read_globals = { + -- Lua + string = {fields = {"split", "trim"}}, + table = {fields = {"copy", "getn"}}, + + -- Minetest + "minetest", + "PseudoRandom", "ItemStack", + "VoxelArea", "VoxelManip", + "Settings", "vector", + + -- Mods + "loot", "pipeworks" +} diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..c5885ae --- /dev/null +++ b/LICENSE @@ -0,0 +1,600 @@ +License for code: LGPL 3.0 +License for media and all other assets: CC-by-SA 4.0 + +############################################################################### + + GNU LESSER GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + + This version of the GNU Lesser General Public License incorporates +the terms and conditions of version 3 of the GNU General Public +License, supplemented by the additional permissions listed below. + + 0. Additional Definitions. + + As used herein, "this License" refers to version 3 of the GNU Lesser +General Public License, and the "GNU GPL" refers to version 3 of the GNU +General Public License. + + "The Library" refers to a covered work governed by this License, +other than an Application or a Combined Work as defined below. + + An "Application" is any work that makes use of an interface provided +by the Library, but which is not otherwise based on the Library. +Defining a subclass of a class defined by the Library is deemed a mode +of using an interface provided by the Library. + + A "Combined Work" is a work produced by combining or linking an +Application with the Library. The particular version of the Library +with which the Combined Work was made is also called the "Linked +Version". + + The "Minimal Corresponding Source" for a Combined Work means the +Corresponding Source for the Combined Work, excluding any source code +for portions of the Combined Work that, considered in isolation, are +based on the Application, and not on the Linked Version. + + The "Corresponding Application Code" for a Combined Work means the +object code and/or source code for the Application, including any data +and utility programs needed for reproducing the Combined Work from the +Application, but excluding the System Libraries of the Combined Work. + + 1. Exception to Section 3 of the GNU GPL. + + You may convey a covered work under sections 3 and 4 of this License +without being bound by section 3 of the GNU GPL. + + 2. Conveying Modified Versions. + + If you modify a copy of the Library, and, in your modifications, a +facility refers to a function or data to be supplied by an Application +that uses the facility (other than as an argument passed when the +facility is invoked), then you may convey a copy of the modified +version: + + a) under this License, provided that you make a good faith effort to + ensure that, in the event an Application does not supply the + function or data, the facility still operates, and performs + whatever part of its purpose remains meaningful, or + + b) under the GNU GPL, with none of the additional permissions of + this License applicable to that copy. + + 3. Object Code Incorporating Material from Library Header Files. + + The object code form of an Application may incorporate material from +a header file that is part of the Library. You may convey such object +code under terms of your choice, provided that, if the incorporated +material is not limited to numerical parameters, data structure +layouts and accessors, or small macros, inline functions and templates +(ten or fewer lines in length), you do both of the following: + + a) Give prominent notice with each copy of the object code that the + Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the object code with a copy of the GNU GPL and this license + document. + + 4. Combined Works. + + You may convey a Combined Work under terms of your choice that, +taken together, effectively do not restrict modification of the +portions of the Library contained in the Combined Work and reverse +engineering for debugging such modifications, if you also do each of +the following: + + a) Give prominent notice with each copy of the Combined Work that + the Library is used in it and that the Library and its use are + covered by this License. + + b) Accompany the Combined Work with a copy of the GNU GPL and this license + document. + + c) For a Combined Work that displays copyright notices during + execution, include the copyright notice for the Library among + these notices, as well as a reference directing the user to the + copies of the GNU GPL and this license document. + + d) Do one of the following: + + 0) Convey the Minimal Corresponding Source under the terms of this + License, and the Corresponding Application Code in a form + suitable for, and under terms that permit, the user to + recombine or relink the Application with a modified version of + the Linked Version to produce a modified Combined Work, in the + manner specified by section 6 of the GNU GPL for conveying + Corresponding Source. + + 1) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (a) uses at run time + a copy of the Library already present on the user's computer + system, and (b) will operate properly with a modified version + of the Library that is interface-compatible with the Linked + Version. + + e) Provide Installation Information, but only if you would otherwise + be required to provide such information under section 6 of the + GNU GPL, and only to the extent that such information is + necessary to install and execute a modified version of the + Combined Work produced by recombining or relinking the + Application with a modified version of the Linked Version. (If + you use option 4d0, the Installation Information must accompany + the Minimal Corresponding Source and Corresponding Application + Code. If you use option 4d1, you must provide the Installation + Information in the manner specified by section 6 of the GNU GPL + for conveying Corresponding Source.) + + 5. Combined Libraries. + + 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 that are not Applications and are not covered by this +License, and convey such a combined library under terms of your +choice, if you do both of the following: + + a) Accompany the combined library with a copy of the same work based + on the Library, uncombined with any other library facilities, + conveyed under the terms of this License. + + b) Give prominent notice with the combined library that part of it + is a work based on the Library, and explaining where to find the + accompanying uncombined form of the same work. + + 6. Revised Versions of the GNU Lesser General Public License. + + The Free Software Foundation may publish revised and/or new versions +of the GNU 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 as you received it specifies that a certain numbered version +of the GNU Lesser General Public License "or any later version" +applies to it, you have the option of following the terms and +conditions either of that published version or of any later version +published by the Free Software Foundation. If the Library as you +received it does not specify a version number of the GNU Lesser +General Public License, you may choose any version of the GNU Lesser +General Public License ever published by the Free Software Foundation. + + If the Library as you received it specifies that a proxy can decide +whether future versions of the GNU Lesser General Public License shall +apply, that proxy's public statement of acceptance of any version is +permanent authorization for you to choose that version for the +Library. + +############################################################################### + +Attribution-ShareAlike 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution-ShareAlike 4.0 International Public +License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution-ShareAlike 4.0 International Public License ("Public +License"). To the extent this Public License may be interpreted as a +contract, You are granted the Licensed Rights in consideration of Your +acceptance of these terms and conditions, and the Licensor grants You +such rights in consideration of benefits the Licensor receives from +making the Licensed Material available under these terms and +conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. BY-SA Compatible License means a license listed at + creativecommons.org/compatiblelicenses, approved by Creative + Commons as essentially the equivalent of this Public License. + + d. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + e. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + f. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + g. License Elements means the license attributes listed in the name + of a Creative Commons Public License. The License Elements of this + Public License are Attribution and ShareAlike. + + h. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + i. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + j. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + k. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + l. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + m. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part; and + + b. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. Additional offer from the Licensor -- Adapted Material. + Every recipient of Adapted Material from You + automatically receives an offer from the Licensor to + exercise the Licensed Rights in the Adapted Material + under the conditions of the Adapter's License You apply. + + c. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified + form), You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + b. ShareAlike. + + In addition to the conditions in Section 3(a), if You Share + Adapted Material You produce, the following conditions also apply. + + 1. The Adapter's License You apply must be a Creative Commons + license with the same License Elements, this version or + later, or a BY-SA Compatible License. + + 2. You must include the text of, or the URI or hyperlink to, the + Adapter's License You apply. You may satisfy this condition + in any reasonable manner based on the medium, means, and + context in which You Share Adapted Material. + + 3. You may not offer or impose any additional or different terms + or conditions on, or apply any Effective Technological + Measures to, Adapted Material that restrict exercise of the + rights granted under the Adapter's License You apply. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material, + + including for purposes of Section 3(b); and + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + + +======================================================================= + +Creative Commons is not a party to its public +licenses. Notwithstanding, Creative Commons may elect to apply one of +its public licenses to material it publishes and in those instances +will be considered the “Licensor.” The text of the Creative Commons +public licenses is dedicated to the public domain under the CC0 Public +Domain Dedication. Except for the limited purpose of indicating that +material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the +public licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git a/Money_Info.txt b/Money_Info.txt new file mode 100644 index 0000000..9bb769c --- /dev/null +++ b/Money_Info.txt @@ -0,0 +1,36 @@ +Minegeld +--------- + +They have no recipe. + +In general, one Mg equals one US dollar, as of Sept. 2018. + +A good starting amount is about 250 Mg on a server + +You currently get a basic income of 10 Minegeld per day, so long as you dig at +least one node in that day and have an empty inventory slot for the money to +go in. + +Lump Conversion suggestions: + +Coal Lump 1 Mg +Iron Lump 4 Mg +Copper Lump 4 Mg +Gold Lump 5 Mg +Mese Crystal 40 Mg +Diamond 50 Mg + +Ingot Conversion + +Steel Ingot 5 Mg +Copper Ingot 5 Mg +Gold Ingot 6 Mg + +Block Conversion + +Coal Block 9 Mg +Steel Block 45 Mg +Copper Block 45 Mg +Gold Block 54 Mg +Mese Block 360 Mg +Diamond Block 450 Mg diff --git a/README.md b/README.md new file mode 100644 index 0000000..61a5af8 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +currency +======== + +Repo for Currency Mod + +# Settings + +Settings with default values: +``` +# After how much idle-time barter table is reset (seconds) +barter.chest.expireafter 15 * 60 +``` diff --git a/barter.lua b/barter.lua new file mode 100644 index 0000000..ffc3768 --- /dev/null +++ b/barter.lua @@ -0,0 +1,212 @@ +currency.barter = {} +barter = currency.barter -- Kept as a global variable for compatibility + +local S = minetest.get_translator("currency") + +barter.chest = {} +barter.chest.expire_after = tonumber(minetest.settings:get('barter.chest.expireafter')) or 15 * 60 +barter.chest.formspec = { + main = "size[8,9]".. + "list[current_name;pl1;0,0;3,4;]".. + "list[current_name;pl2;5,0;3,4;]".. + "list[current_player;main;0,5;8,4;]", + pl1 = { + start = "button[0,4;3,1;pl1_start;" .. S("Start") .. "]", + player = function(name) return "label[0,4;"..name.."]" end, + accept1 = "button[2.9,1;1.2,1;pl1_accept1;" .. S("Confirm") .. "]".. + "button[2.9,2;1.2,1;pl1_cancel;" .. S("Cancel") .. "]", + accept2 = "button[2.9,1;1.2,1;pl1_accept2;" .. S("Exchange") .. "]".. + "button[2.9,2;1.2,1;pl1_cancel;" .. S("Cancel") .. "]", + }, + pl2 = { + start = "button[5,4;3,1;pl2_start;" .. S("Start") .. "]", + player = function(name) return "label[5,4;"..name.."]" end, + accept1 = "button[3.9,1;1.2,1;pl2_accept1;" .. S("Confirm") .. "]".. + "button[3.9,2;1.2,1;pl2_cancel;" .. S("Cancel") .. "]", + accept2 = "button[3.9,1;1.2,1;pl2_accept2;" .. S("Exchange") .. "]".. + "button[3.9,2;1.2,1;pl2_cancel;" .. S("Cancel") .. "]", + }, +} + +barter.chest.check_privilege = function(listname,playername,meta) + if listname == "pl1" then + if playername ~= meta:get_string("pl1") then + return false + elseif meta:get_int("pl1step") ~= 1 then + return false + end + end + if listname == "pl2" then + if playername ~= meta:get_string("pl2") then + return false + elseif meta:get_int("pl2step") ~= 1 then + return false + end + end + return true +end + +barter.chest.update_formspec = function(meta) + local formspec = barter.chest.formspec.main + local pl_formspec = function (n) + if meta:get_int(n.."step")==0 then + formspec = formspec .. barter.chest.formspec[n].start + else + formspec = formspec .. barter.chest.formspec[n].player(meta:get_string(n)) + if meta:get_int(n.."step") == 1 then + formspec = formspec .. barter.chest.formspec[n].accept1 + elseif meta:get_int(n.."step") == 2 then + formspec = formspec .. barter.chest.formspec[n].accept2 + end + end + end + pl_formspec("pl1") pl_formspec("pl2") + meta:set_string("formspec",formspec) +end + +barter.chest.give_inventory = function(inv,list,playername) + local player = minetest.get_player_by_name(playername) + if player then + for _,v in ipairs(inv:get_list(list)) do + if player:get_inventory():room_for_item("main",v) then + player:get_inventory():add_item("main",v) + else + minetest.add_item(player:get_pos(),v) + end + inv:remove_item(list,v) + end + end +end + +barter.chest.cancel = function(meta) + barter.chest.give_inventory(meta:get_inventory(),"pl1",meta:get_string("pl1")) + barter.chest.give_inventory(meta:get_inventory(),"pl2",meta:get_string("pl2")) + meta:set_string("pl1","") + meta:set_string("pl2","") + meta:set_int("pl1step",0) + meta:set_int("pl2step",0) + meta:set_int("clean",1) + meta:set_int("timer",0) +end + +barter.chest.exchange = function(meta) + barter.chest.give_inventory(meta:get_inventory(),"pl1",meta:get_string("pl2")) + barter.chest.give_inventory(meta:get_inventory(),"pl2",meta:get_string("pl1")) + meta:set_string("pl1","") + meta:set_string("pl2","") + meta:set_int("pl1step",0) + meta:set_int("pl2step",0) + meta:set_int("clean",1) + meta:set_int("timer",0) +end + +barter.chest.start_timer = function(pos, meta) + meta:set_int("clean",0) + meta:set_int("timer",0) + local node_timer = minetest.get_node_timer(pos) + if node_timer:is_started() then return end + node_timer:start(22) +end + +minetest.register_node("currency:barter", { + drawtype = "nodebox", + description = S("Barter Table"), + paramtype = "light", + paramtype2 = "facedir", + tiles = { + "barter_top.png", + "barter_base.png", + "barter_side.png" + }, + inventory_image = "barter_top.png", + node_box = { + type = "fixed", + fixed = { + {-0.500000,0.312500,-0.500000,0.500000,0.500000,0.500000}, + {-0.437500,-0.500000,-0.437500,-0.250000,0.500000,-0.250000}, + {-0.437500,-0.500000,0.250000,-0.250000,0.500000,0.437500}, + {0.250000,-0.500000,-0.437500,0.437500,0.500000,-0.250000}, + {0.250000,-0.500000,0.250000,0.437500,0.500000,0.447500}, + }, + }, + groups = {choppy=2,oddly_breakable_by_hand=2}, + is_ground_content = false, + sounds = currency.node_sound_wood_defaults(), + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("infotext", S("Barter Table")) + meta:set_string("pl1","") + meta:set_string("pl2","") + meta:set_int("clean",1) + meta:set_int("timer",0) + barter.chest.update_formspec(meta) + local inv = meta:get_inventory() + inv:set_size("pl1", 12) -- 3*4 + inv:set_size("pl2", 12) -- 3*4 + end, + on_receive_fields = function(pos, formname, fields, sender) + local meta = minetest.get_meta(pos) + barter.chest.start_timer(pos, meta) + local pl_receive_fields = function(n) + if fields[n.."_start"] and meta:get_string(n) == "" then + meta:set_string(n,sender:get_player_name()) + end + if meta:get_string(n) == "" then + meta:set_int(n.."step",0) + elseif meta:get_int(n.."step")==0 then + meta:set_int(n.."step",1) + end + if sender:get_player_name() == meta:get_string(n) then + if meta:get_int(n.."step")==1 and fields[n.."_accept1"] then + meta:set_int(n.."step",2) + end + if meta:get_int(n.."step")==2 and fields[n.."_accept2"] then + meta:set_int(n.."step",3) + if n == "pl1" and meta:get_int("pl2step") == 3 then barter.chest.exchange(meta) end + if n == "pl2" and meta:get_int("pl1step") == 3 then barter.chest.exchange(meta) end + end + if fields[n.."_cancel"] then barter.chest.cancel(meta) end + end + end + pl_receive_fields("pl1") pl_receive_fields("pl2") + -- End + barter.chest.update_formspec(meta) + end, + allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + local meta = minetest.get_meta(pos) + barter.chest.start_timer(pos, meta) + if not barter.chest.check_privilege(from_list,player:get_player_name(),meta) then return 0 end + if not barter.chest.check_privilege(to_list,player:get_player_name(),meta) then return 0 end + return count + end, + allow_metadata_inventory_put = function(pos, listname, index, stack, player) + local meta = minetest.get_meta(pos) + barter.chest.start_timer(pos, meta) + if not barter.chest.check_privilege(listname,player:get_player_name(),meta) then return 0 end + return stack:get_count() + end, + allow_metadata_inventory_take = function(pos, listname, index, stack, player) + local meta = minetest.get_meta(pos) + barter.chest.start_timer(pos, meta) + if not barter.chest.check_privilege(listname,player:get_player_name(),meta) then return 0 end + return stack:get_count() + end, + on_timer = function(pos, dtime) + local meta = minetest.get_meta(pos) + if 1 == meta:get_int("clean") then return false end + + local timer = meta:get_int("timer") + timer = timer + dtime + if timer > barter.chest.expire_after then + -- attempt to return items to owners + barter.chest.cancel(meta) + -- also clear out items of offline users + local inv = meta:get_inventory() + inv:set_list("pl1", {}) + inv:set_list("pl2", {}) + return false + end + meta:set_int("timer",timer) + return true + end +}) diff --git a/crafting.lua b/crafting.lua new file mode 100644 index 0000000..9abeaab --- /dev/null +++ b/crafting.lua @@ -0,0 +1,167 @@ +if minetest.get_modpath("default") then + minetest.register_craft({ + output = "currency:safe", + recipe = { + {"default:steel_ingot", "default:steel_ingot", + "default:steel_ingot"}, + {"default:steel_ingot", "default:mese_crystal", + "default:steel_ingot"}, + {"default:steel_ingot", "default:steel_ingot", + "default:steel_ingot"}, + } + }) + + minetest.register_craft({ + output = "currency:shop", + recipe = { + {"default:sign_wall"}, + {"default:chest_locked"}, + } + }) + + minetest.register_craft({ + output = "currency:barter", + recipe = { + {"default:sign_wall"}, + {"default:chest"}, + } + }) +end + +minetest.register_craft({ + type = "shapeless", + output = "currency:minegeld_cent_10", + recipe = { + "currency:minegeld_cent_5", + "currency:minegeld_cent_5" + }, +}) + +minetest.register_craft({ + type = "shapeless", + output = "currency:minegeld_cent_5 2", + recipe = {"currency:minegeld_cent_10"}, +}) + +minetest.register_craft({ + type = "shapeless", + output = "currency:minegeld_cent_25", + recipe = { + "currency:minegeld_cent_5", + "currency:minegeld_cent_5", + "currency:minegeld_cent_5", + "currency:minegeld_cent_5", + "currency:minegeld_cent_5" + }, +}) + +minetest.register_craft({ + type = "shapeless", + output = "currency:minegeld_cent_5 5", + recipe = {"currency:minegeld_cent_25"}, +}) + +minetest.register_craft({ + type = "shapeless", + output = "currency:minegeld", + recipe = { + "currency:minegeld_cent_25", + "currency:minegeld_cent_25", + "currency:minegeld_cent_25", + "currency:minegeld_cent_25" + }, +}) + +minetest.register_craft({ + type = "shapeless", + output = "currency:minegeld_cent_25 4", + recipe = {"currency:minegeld"}, +}) + +minetest.register_craft({ + type = "shapeless", + output = "currency:minegeld_5", + recipe = { + "currency:minegeld", + "currency:minegeld", + "currency:minegeld", + "currency:minegeld", + "currency:minegeld" + }, +}) + +minetest.register_craft({ + type = "shapeless", + output = "currency:minegeld 5", + recipe = {"currency:minegeld_5"}, +}) + +minetest.register_craft({ + type = "shapeless", + output = "currency:minegeld_10", + recipe = { + "currency:minegeld_5", + "currency:minegeld_5" + }, +}) + +minetest.register_craft({ + type = "shapeless", + output = "currency:minegeld_5 2", + recipe = {"currency:minegeld_10"}, +}) + +minetest.register_craft({ + type = "shapeless", + output = "currency:minegeld_10 5", + recipe = {"currency:minegeld_50"}, +}) + +minetest.register_craft({ + type = "shapeless", + output = "currency:minegeld_50", + recipe = { + "currency:minegeld_10", + "currency:minegeld_10", + "currency:minegeld_10", + "currency:minegeld_10", + "currency:minegeld_10" + }, +}) + +minetest.register_craft({ + type = "shapeless", + output = "currency:minegeld_100", + recipe = { + "currency:minegeld_50", + "currency:minegeld_50" + }, +}) + +minetest.register_craft({ + type = "shapeless", + output = "currency:minegeld_50 2", + recipe = {"currency:minegeld_100" }, +}) + +minetest.register_craft({ + type = "shapeless", + output = "currency:minegeld_bundle", + recipe = { + "group:minegeld_note", + "group:minegeld_note", + "group:minegeld_note", + "group:minegeld_note", + "group:minegeld_note", + "group:minegeld_note", + "group:minegeld_note", + "group:minegeld_note", + "group:minegeld_note" + }, +}) + +minetest.register_craft({ + type = "fuel", + recipe = "currency:minegeld_bundle", + burntime = 1, +}) diff --git a/craftitems.lua b/craftitems.lua new file mode 100644 index 0000000..3201b84 --- /dev/null +++ b/craftitems.lua @@ -0,0 +1,63 @@ +local S = minetest.get_translator("currency") + +minetest.register_craftitem("currency:minegeld_cent_5", { + description = S("@1 Minegeld cent coin", "5"), + inventory_image = "minegeld_cent_5.png", + stack_max = 1000, + groups = {minegeld = 1, minegeld_coin = 1} +}) + +minetest.register_craftitem("currency:minegeld_cent_10", { + description = S("@1 Minegeld cent coin", "10"), + inventory_image = "minegeld_cent_10.png", + stack_max = 1000, + groups = {minegeld = 1, minegeld_coin = 1} +}) + +minetest.register_craftitem("currency:minegeld_cent_25", { + description = S("@1 Minegeld cent coin", "25"), + inventory_image = "minegeld_cent_25.png", + stack_max = 1000, + groups = {minegeld = 1, minegeld_coin = 1} +}) + +minetest.register_craftitem("currency:minegeld", { + description = S("@1 Minegeld Note", "1"), + inventory_image = "minegeld.png", + stack_max = 65535, + groups = {minegeld = 1, minegeld_note = 1} +}) + +minetest.register_craftitem("currency:minegeld_5", { + description = S("@1 Minegeld Note", "5"), + inventory_image = "minegeld_5.png", + stack_max = 65535, + groups = {minegeld = 1, minegeld_note = 1} +}) + +minetest.register_craftitem("currency:minegeld_10", { + description = S("@1 Minegeld Note", "10"), + inventory_image = "minegeld_10.png", + stack_max = 65535, + groups = {minegeld = 1, minegeld_note = 1} +}) + +minetest.register_craftitem("currency:minegeld_50", { + description = S("@1 Minegeld Note", "50"), + inventory_image = "minegeld_50.png", + stack_max = 65535, + groups = {minegeld = 1, minegeld_note = 1} +}) + +minetest.register_craftitem("currency:minegeld_100", { + description = S("@1 Minegeld Note", "100"), + inventory_image = "minegeld_100.png", + stack_max = 65535, + groups = {minegeld = 1, minegeld_note = 1} +}) + +minetest.register_craftitem("currency:minegeld_bundle", { + description = S("Bundle of random Minegeld notes"), + inventory_image = "minegeld_bundle.png", + stack_max = 65535, +}) diff --git a/income.lua b/income.lua new file mode 100644 index 0000000..f701203 --- /dev/null +++ b/income.lua @@ -0,0 +1,56 @@ +local players_income = {} + +local income_enabled = minetest.settings:get_bool("currency.income_enabled", true) +local creative_income_enabled = minetest.settings:get_bool("currency.creative_income_enabled", true) +local income_item = minetest.settings:get("currency.income_item") or "currency:minegeld_10" +local income_count = tonumber(minetest.settings:get("currency.income_count")) or 1 +local income_period = tonumber(minetest.settings:get("currency.income_period")) or 720 + +if income_enabled then + local timer = 0 + if creative_income_enabled then + minetest.register_globalstep(function(dtime) + timer = timer + dtime; + if timer >= income_period then + timer = 0 + for _, player in ipairs(minetest.get_connected_players()) do + local name = player:get_player_name() + players_income[name] = income_count + minetest.log("info", "[Currency] basic income for "..name) + end + end + end) + else + minetest.register_globalstep(function(dtime) + timer = timer + dtime; + if timer >= income_period then + timer = 0 + for _, player in ipairs(minetest.get_connected_players()) do + local name = player:get_player_name() + local privs = minetest.get_player_privs(name) + if not (privs.creative or privs.give) then + players_income[name] = income_count + minetest.log("info", "[Currency] basic income for "..name) + end + end + end + end) + end + + local function earn_income(player) + if not player or player.is_fake_player then return end + local name = player:get_player_name() + + local ic = players_income[name] + if ic and ic > 0 then + local inv = player:get_inventory() + inv:add_item("main", {name=income_item, count=ic}) + players_income[name] = nil + minetest.log("info", "[Currency] added basic income for "..name.." to inventory") + end + end + + minetest.register_on_dignode(function(pos, oldnode, digger) earn_income(digger) end) + minetest.register_on_placenode(function(pos, node, placer) earn_income(placer) end) + minetest.register_on_craft(function(itemstack, player, old_craft_grid, craft_inv) earn_income(player) end) +end diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..2ac2b57 --- /dev/null +++ b/init.lua @@ -0,0 +1,28 @@ +local modpath = minetest.get_modpath("currency") + +minetest.log("info", "Currency mod loading...") + +currency = {} +if minetest.global_exists("default") then + currency.node_sound_wood_defaults = default.node_sound_wood_defaults +else + currency.node_sound_wood_defaults = function() end +end + +dofile(modpath.."/craftitems.lua") +minetest.log("info", "[Currency] Craft_items Loaded!") +dofile(modpath.."/shop.lua") +minetest.log("info", "[Currency] Shop Loaded!") +dofile(modpath.."/barter.lua") +minetest.log("info", "[Currency] Barter Loaded!") +dofile(modpath.."/safe.lua") +minetest.log("info", "[Currency] Safe Loaded!") +dofile(modpath.."/crafting.lua") +minetest.log("info", "[Currency] Crafting Loaded!") + +if minetest.settings:get_bool("creative_mode") then + minetest.log("info", "[Currency] Creative mode in use, skipping basic income.") +else + dofile(modpath.."/income.lua") + minetest.log("info", "[Currency] Income Loaded!") +end diff --git a/locale/currency.de.tr b/locale/currency.de.tr new file mode 100644 index 0000000..75c284e --- /dev/null +++ b/locale/currency.de.tr @@ -0,0 +1,45 @@ +# textdomain: currency +# A.C.M. , 2018 + +### barter.lua ### + +Barter Table=Handelstisch +Cancel=Abbruch +Confirm=Bestätigen +Start=Start + +### shop.lua ### + +Exchange=Tauschen + +### craftitems.lua ### + +@1 Minegeld Note=@1-Minegeld-Banknote +@1 Minegeld cent coin=@1-Minegeldcent-Münze +Bundle of random Minegeld notes=Bündel mit beliebigen Minegeld-Banknoten + +### safe.lua ### + +Safe=Tresor +Safe (owned by @1)=Tresor (gehört @1) + +### shop.lua ### + +Customer gets:=Kunde erhält: +Customer gives (pay here!)=Kunde gibt (hier bezahlen!) +Customers gave:=Kunde gab: +Exchange can not be done, check if you put all items!=Tausch kann nicht abgeschlossen werden. Prüfen, ob alle Gegenstände platziert wurden! +Exchange can not be done, contact the shop owner.=Tausch kann nicht abgeschlossen werden. Geschäftsinhaber benachrichtigen! +Exchange shop (owned by @1)=Tauschgeschäft (gehört @1) +Exchanged!=Getauscht! +In exchange, you give:=Im Tausch geben Sie: +out of stock=Ausverkauft +Owner gives:=Inhaber gibt: +Owner wants:=Inhaber will: + +Owner, Use (E)+Place (right mouse button) for customer interface=Inhaber: (E)+Platzieren (rechte Maustaste) drücken für Kundeninterface ... + +Shop=Geschäft +This is your own shop, you can't exchange to yourself!=Dies ist Ihr eigenes Geschäft, Sie können nicht mit sich selbst tauschen! +You want:=Sie wollen: +Your stock:=Ihr Lager: diff --git a/locale/currency.es.tr b/locale/currency.es.tr new file mode 100644 index 0000000..6ae527e --- /dev/null +++ b/locale/currency.es.tr @@ -0,0 +1,46 @@ +# textdomain: currency +# author: PsycoJaker + + +### barter.lua ### + +Barter Table=Mesa de intercambios +Cancel=Denegar +Confirm=Aceptar +Start=Intercambiar + +### shop.lua ### + +Exchange=Trato + +### craftitems.lua ### + +@1 Minegeld Note=Billete de @1 Minegeld +@1 Minegeld cent coin= Moneda de @1 Minegeld +Bundle of random Minegeld notes=Monton de dinero + +### safe.lua ### + +Safe=Caja fuerte +Safe (owned by @1)=Caja fuerte de @1 + +### shop.lua ### + +Customer gets:=Tu compra: +Customer gives (pay here!)=Paga aqui +Customers gave:=Los compradores ofrecieron: +Exchange can not be done, check if you put all items!=La compra ha fallado, comprueba tu pago +Exchange can not be done, contact the shop owner.=La compra ha fallado, comunicate con el vendedor +Exchange shop (owned by @1)=Tienda de @1 +Exchanged!=Comprado +In exchange, you give:=Vendes: +out of stock=Sin exsitencias +Owner gives:=Vendedor ofrece: +Owner wants:=Vendedor pide: + +Owner, Use (E)+Place (right mouse button) for customer interface=Usa, las teclas (especial + boton derecho del raton) para ver a la interfaz del comprador + +Shop=Tienda +This is your own shop, you can't exchange to yourself!=No puedes comprar en tu propia tienda +You want:=Tu pides: +Your stock:=Tus existencias: diff --git a/locale/currency.fr.tr b/locale/currency.fr.tr new file mode 100644 index 0000000..55d13ef --- /dev/null +++ b/locale/currency.fr.tr @@ -0,0 +1,47 @@ +# textdomain: currency +# Papou30, 2018. +# Louis Royer, 2020. + +### barter.lua ### + +Barter Table=Table de troc +Cancel=Annuler +Confirm=Valider +Start=Commencer + +### shop.lua ### + +Exchange=Troquer + +### craftitems.lua ### + +@1 Minegeld Note=@1 MineGeld +@1 Minegeld cent coin=Pièce de @1 centimes de MineGeld +Bundle of random Minegeld notes=Liasse de Minegeld de diverses valeurs + +### safe.lua ### + +Safe=Coffre-fort +Safe (owned by @1)=Coffre-fort (appartenant à @1) + +### shop.lua ### + +Customer gets:=Client obtient: +Customer gives (pay here!)=Client donne (payer ici!) +Customers gave:=Le client a donné: +Exchange can not be done, check if you put all items!=L'echange ne peut pas être fait, vérifiez que vous avez placé tous les articles! +Exchange can not be done, contact the shop owner.=L'échange ne peut être fait, contactez le propriétaire du magasin. +Exchange shop (owned by @1)=Boutique d'échange (appartenant à @1) +Exchanged!=Échangé! +In exchange, you give:=En échange, vous donnez : +Owner gives:=Le propriétaire donne : +Owner wants:=Le propriétaire veut : + +Owner, Use (E)+Place (right mouse button) for customer interface=Propriétaire, utilisez Spécial+clic droit pour l'interface client + +Shop=Boutique +This is your own shop, you can't exchange to yourself!=C'est votre propre boutique, vous ne pouvez pas échanger avec vous-même! +You want:=Vous voulez : +Your stock:=Votre stock : + + diff --git a/locale/currency.id.tr b/locale/currency.id.tr new file mode 100644 index 0000000..13a0dfc --- /dev/null +++ b/locale/currency.id.tr @@ -0,0 +1,45 @@ +# textdomain: currency + + +### barter.lua ### + +Barter Table=Meja Barter +Cancel=Batal +Confirm=Sah +Start=Mulai + +### shop.lua ### + +Exchange=Tukar + +### craftitems.lua ### + +@1 Minegeld Note=Uang @1 Minegeld +@1 Minegeld cent coin=Koin @1 Sen Minegeld +Bundle of random Minegeld notes=Bundel Uang Minegeld Acak + +### safe.lua ### + +Safe=Brankas +Safe (owned by @1)=Brankas (dimiliki oleh @1) + +### shop.lua ### + +Customer gets:=Pelanggan dapat: +Customer gives (pay here!)=Pelanggan memberi (bayar di sini!) +Customers gave:=Pelanggan memberi: +Exchange can not be done, check if you put all items!=Penukaran tidak dapat diselesaikan. Periksa bahwa Anda menaruh semua yang pemilik inginkan! +Exchange can not be done, contact the shop owner.=Penukaran tidak dapat diselesaikan. Hubungi pemilik toko. +Exchange shop (owned by @1)=Toko Penukaran (dimiliki oleh @1) +Exchanged!=Ditukar! +In exchange, you give:=Anda memberi: +out of stock=stok habis +Owner gives:=Pemilik memberi: +Owner wants:=Pemilik ingin: + +Owner, Use (E)+Place (right mouse button) for customer interface=Pemilik. Tekan (E) + Taruh (klik kanan) untuk tampilan pelanggan + +Shop=Toko +This is your own shop, you can't exchange to yourself!=Ini toko milik Anda. Anda tidak bisa bertukar dengan diri sendiri! +You want:=Anda ingin: +Your stock:=Stok Anda: diff --git a/locale/currency.it.tr b/locale/currency.it.tr new file mode 100644 index 0000000..f02c0f6 --- /dev/null +++ b/locale/currency.it.tr @@ -0,0 +1,45 @@ +# textdomain: currency +# Saturn, 2020-10-23 + + +### barter.lua ### + +Barter Table=Tavolo di baratto +Cancel=Annulla +Confirm=Conferma +Start=Inizia + +### shop.lua ### + +Exchange=Scambia + +### craftitems.lua ### + +@1 Minegeld Note=Banconota da @1 Minegeld +@1 Minegeld cent coin=Moneta da @1 centesimo/i Minegeld +Bundle of random Minegeld notes=Pacchetto di banconote Minegeld casuali + +### safe.lua ### + +Safe=Cassaforte +Safe (owned by @1)=Cassaforte (di proprietà di @1) + +### shop.lua ### + +Customer gets:=Il cliente ottiene: +Customer gives (pay here!)=Il cliente dà (paga qui!) +Customers gave:=I clienti hanno dato: +Exchange can not be done, check if you put all items!=Lo scambio non può essere fatto, controlla di avere messo tutti gli oggetti! +Exchange can not be done, contact the shop owner.=Lo scambio non può essere fatto, contatta il proprietario del negozio. +Exchange shop (owned by @1)=Negozio di scambio (di proprietà di @1) +Exchanged!=Scambiato! +In exchange, you give:=In cambio, tu dai: +Owner gives:=Il proprietario dà: +Owner wants:=Il proprietario vuole: + +Owner, Use (E)+Place (right mouse button) for customer interface=Proprietario, usa (E)+Posiziona (click destro) per l'UI cliente + +Shop=Negozio +This is your own shop, you can't exchange to yourself!=Questo è il tuo negozio, non puoi fare scambi con te stesso! +You want:=Tu vuoi: +Your stock:=La tua scorta: diff --git a/locale/currency.ms.tr b/locale/currency.ms.tr new file mode 100644 index 0000000..99b7088 --- /dev/null +++ b/locale/currency.ms.tr @@ -0,0 +1,46 @@ +# textdomain: currency + + +### barter.lua ### + +Barter Table=Meja Barter +Cancel=Batal +Confirm=Sah +Start=Mula + +### shop.lua ### + +Exchange=Tukar + +### craftitems.lua ### + +@1 Minegeld Note=Wang @1 MineGeld +@1 Minegeld cent coin= +Bundle of random Minegeld notes=Seberkas wang Minegeld rawak + +### safe.lua ### + +Safe=Peti besi +Safe (owned by @1)=Peti besi (pemilik: @1) + +### shop.lua ### + +Customer gets:=Pelanggan dapat: +Customer gives (pay here!)=Pelanggan beri (bayar sini!) +Customers gave:=Pelanggan berikan: +Exchange can not be done, check if you put all items!=Tak boleh jual, pastikan anda ada apa yang penjual mahukan! +Exchange can not be done, contact the shop owner.=Tak boleh jual, hubungi penjual. +Exchange shop (owned by @1)=Kedai (pemilik: @1) +Exchanged!=Jual! +In exchange, you give:=Anda berikan: +Owner gives:=Penjual berikan: +Owner wants:=Penjual inginkan: + +Owner, Use (E)+Place (right mouse button) for customer interface=Penjual, Gunakan (E) + Letak (butang tetikus kanan) untuk antaramuka pelanggan + +Shop=Kedai +This is your own shop, you can't exchange to yourself!=Ini kedai anda, anda tidak boleh menjual kepada diri sendiri! +You want:=Anda mahukan: +Your stock:=Stok anda: + + diff --git a/locale/currency.ru.tr b/locale/currency.ru.tr new file mode 100644 index 0000000..0945e6e --- /dev/null +++ b/locale/currency.ru.tr @@ -0,0 +1,45 @@ +# textdomain: currency + + +### barter.lua ### + +Barter Table=Бартерный Стол +Cancel=Отменить +Confirm=Подтвердить +Start=Начать + +### shop.lua ### + +Exchange=Обмен + +### craftitems.lua ### + +@1 Minegeld Note=Банконота @1 Minegeld +@1 Minegeld cent coin=Монета @1 центов Minegeld +Bundle of random Minegeld notes=Мешок случайных банкнот Minegeld + +### safe.lua ### + +Safe=Сейф +Safe (owned by @1)=Сейф (владелец: @1) + +### shop.lua ### + +Customer gets:=Покупатель получает: +Customer gives (pay here!)=Покупатели дают (платить здесь!) +Customers gave:=Покупатели дали: +Exchange can not be done, check if you put all items!=Обмен невозможен, проверьте, все ли предметы вы положили! +Exchange can not be done, contact the shop owner.=Обмен невозможен, обратитесь к владельцу магазина. +Exchange shop (owned by @1)=Обменный магазин (владелец: @1) +Exchanged!=Обмен завершён! +In exchange, you give:=В обмен, вы даёте: +out of stock=нет в наличии +Owner gives:=Владелец даёт: +Owner wants:=Владелец хочет: + +Owner, Use (E)+Place (right mouse button) for customer interface=Владелец, Используйте (E)+Поставить (правая кнопка мыши) для интерфейса покупателя + +Shop=Магазин +This is your own shop, you can't exchange to yourself!=Это ваш собственный магазин, вы не можете обмениваться с самим собой! +You want:=Вы хотите: +Your stock:=Ваш запас: diff --git a/locale/currency.uk.tr b/locale/currency.uk.tr new file mode 100644 index 0000000..a22671a --- /dev/null +++ b/locale/currency.uk.tr @@ -0,0 +1,43 @@ +# textdomain: currency + + +### barter.lua ### + +Barter Table=Бартерний Стіл +Cancel=Скасувати +Confirm=Підтвердити +Start=Почати + +### shop.lua ### + +Exchange=Обмін + +### craftitems.lua ### + +@1 Minegeld Note=Банкнота @1 Minegeld +@1 Minegeld cent coin=Монета @1 цент Minegeld +Bundle of random Minegeld notes=Пачка випадкових банкнот Minegeld + +### safe.lua ### + +Safe=Сейф +Safe (owned by @1)=Сейф (належить @1) + +### shop.lua ### + +Customer gets:=Покупець отримує: +Customer gives (pay here!)=Покупець віддає (тут оплата!) +Customers gave:=Покупець віддав: +Exchange can not be done, check if you put all items!=Обмін неможливий, перевірте, чи точно ви поклали усі предмети! +Exchange can not be done, contact the shop owner.=Обмін неможливий, зв'яжіться із власником магазину. +Exchange shop (owned by @1)=Пункт обміну (належить @1) +Exchanged!=Обмін відбувся! +In exchange, you give:=Натомість ви даєте: +Owner gives:=Власник віддає: +Owner wants:=Власник хоче: + +Owner, Use (E)+Place (right mouse button) for customer interface=Власник, використовуйте (E)+Розмістити (ПКМ), аби відкрити інтерфейс покупця +Shop=Магазин +This is your own shop, you can't exchange to yourself!=Ви не можете обмінюватися з самим собою у своєму ж магазині! +You want:=Ви хочете: +Your stock:=Ваш запас: diff --git a/locale/template.txt b/locale/template.txt new file mode 100644 index 0000000..2d4e4d5 --- /dev/null +++ b/locale/template.txt @@ -0,0 +1,45 @@ +# textdomain: currency + + +### barter.lua ### + +Barter Table= +Cancel= +Confirm= +Start= + +### shop.lua ### + +Exchange= + +### craftitems.lua ### + +@1 Minegeld Note= +@1 Minegeld cent coin= +Bundle of random Minegeld notes= + +### safe.lua ### + +Safe= +Safe (owned by @1)= + +### shop.lua ### + +Customer gets:= +Customer gives (pay here!)= +Customers gave:= +Exchange can not be done, check if you put all items!= +Exchange can not be done, contact the shop owner.= +Exchange shop (owned by @1)= +Exchanged!= +In exchange, you give:= +out of stock= +Owner gives:= +Owner wants:= + +Owner, Use (E)+Place (right mouse button) for customer interface= + +Shop= +This is your own shop, you can't exchange to yourself!= +You want:= +Your stock:= diff --git a/loot.lua b/loot.lua new file mode 100644 index 0000000..d0ea820 --- /dev/null +++ b/loot.lua @@ -0,0 +1,49 @@ +if not minetest.get_modpath("loot") then + return +end + +loot.register_loot({ + weights = { generic = 50 }, + payload = { + stack = ItemStack("currency:minegeld"), + min_size = 1, + max_size = 250, + }, +}) + +loot.register_loot({ + weights = { generic = 50 }, + payload = { + stack = ItemStack("currency:minegeld_5"), + min_size = 1, + max_size = 50, + }, +}) + +loot.register_loot({ + weights = { generic = 50 }, + payload = { + stack = ItemStack("currency:minegeld_10"), + min_size = 1, + max_size = 10, + }, +}) + + +loot.register_loot({ + weights = { generic = 50 }, + payload = { + stack = ItemStack("currency:minegeld_50"), + min_size = 1, + max_size = 10, + }, +}) + +loot.register_loot({ + weights = { generic = 50 }, + payload = { + stack = ItemStack("currency:minegeld_100"), + min_size = 1, + max_size = 10, + }, +}) diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..f9c6826 --- /dev/null +++ b/mod.conf @@ -0,0 +1,7 @@ +name = currency +optional_depends = default, loot, pipeworks +description = Provides shops, barter tables, safes, and multiple denominations of currency, called "Minegeld". +min_minetest_version = 5.2.0 +release = 31360 +author = mt-mods +title = Currency diff --git a/safe.lua b/safe.lua new file mode 100644 index 0000000..e9d0e60 --- /dev/null +++ b/safe.lua @@ -0,0 +1,111 @@ +local S = minetest.get_translator("currency") + +function currency.get_safe_formspec(pos) + local spos = pos.x .. "," .. pos.y .. "," ..pos.z + local formspec = + "size[8,9]".. + "list[nodemeta:".. spos .. ";main;1,1;6,2;]".. + "list[current_player;main;0,5;8,4;]".. + "listring[nodemeta:".. spos .. ";main]".. + "listring[current_player;main]" + return formspec +end + +if minetest.global_exists("default") then + default.get_safe_formspec = currency.get_safe_formspec +end + +local function has_safe_privilege(meta, player) + local name = "" + if player then + if minetest.check_player_privs(player, "protection_bypass") then + return true + end + name = player:get_player_name() + end + if name ~= meta:get_string("owner") then + return false + end + return true +end + +minetest.register_node("currency:safe", { + description = S("Safe"), + inventory_image = "safe_front.png", + paramtype = "light", + paramtype2 = "facedir", + tiles = {"safe_side.png", + "safe_side.png", + "safe_side.png", + "safe_side.png", + "safe_side.png", + "safe_front.png",}, + is_ground_content = false, + groups = {cracky=1}, + after_place_node = function(pos, placer) + local meta = minetest.get_meta(pos) + meta:set_string("owner", placer:get_player_name() or "") + meta:set_string("infotext", S("Safe (owned by @1)", meta:get_string("owner"))) + end, + on_construct = function(pos) + local meta = minetest.get_meta(pos) + meta:set_string("infotext", "Safe") + meta:set_string("owner", "") + local inv = meta:get_inventory() + inv:set_size("main", 6*2) + end, + can_dig = function(pos,player) + local meta = minetest.get_meta(pos); + local inv = meta:get_inventory() + return inv:is_empty("main") and has_safe_privilege(meta, player) + end, + allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + local meta = minetest.get_meta(pos) + if not has_safe_privilege(meta, player) then + minetest.log("action", player:get_player_name().." tried to access a safe belonging to " + ..meta:get_string("owner").." at " + ..minetest.pos_to_string(pos)) + return 0 + end + return count + end, + allow_metadata_inventory_put = function(pos, listname, index, stack, player) + local meta = minetest.get_meta(pos) + if not has_safe_privilege(meta, player) then + minetest.log("action", player:get_player_name().." tried to access a safe belonging to " + ..meta:get_string("owner").." at " + ..minetest.pos_to_string(pos)) + return 0 + end + return stack:get_count() + end, + allow_metadata_inventory_take = function(pos, listname, index, stack, player) + local meta = minetest.get_meta(pos) + if not has_safe_privilege(meta, player) then + minetest.log("action", player:get_player_name().." tried to access a safe belonging to " + ..meta:get_string("owner").." at " + ..minetest.pos_to_string(pos)) + return 0 + end + return stack:get_count() + end, + on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + minetest.log("action", player:get_player_name().." moves stuff in safe at "..minetest.pos_to_string(pos)) + end, + on_metadata_inventory_put = function(pos, listname, index, stack, player) + minetest.log("action", player:get_player_name().." moves stuff to safe at "..minetest.pos_to_string(pos)) + end, + on_metadata_inventory_take = function(pos, listname, index, stack, player) + minetest.log("action", player:get_player_name().." takes stuff from safe at "..minetest.pos_to_string(pos)) + end, + on_rightclick = function(pos, node, clicker) + local meta = minetest.get_meta(pos) + if has_safe_privilege(meta, clicker) then + minetest.show_formspec( + clicker:get_player_name(), + "currency:safe", + currency.get_safe_formspec(pos) + ) + end + end, +}) diff --git a/settingtypes.txt b/settingtypes.txt new file mode 100644 index 0000000..330296d --- /dev/null +++ b/settingtypes.txt @@ -0,0 +1,14 @@ +# Is income enabled? +currency.income_enabled (Is currency income enabled?) bool true + +# Is income enabled for creative players? +currency.creative_income_enabled (Is income enabled for creative players?) bool true + +# Item that is given as income by the currency mod +currency.income_item (Currency income item) string currency:minegeld_10 + +# Number of items given as income +currency.income_count (Currency income item) int 1 1 65535 + +# Length of time (in seconds) between checking if a user should get income +currency.income_period (Currency income period) int 720 diff --git a/shop.lua b/shop.lua new file mode 100644 index 0000000..154ffa0 --- /dev/null +++ b/shop.lua @@ -0,0 +1,340 @@ +local S = minetest.get_translator("currency") + +currency.shop = {} +if minetest.global_exists("default") then + default.shop = currency.shop +end + +currency.shop.current_shop = {} +currency.shop.formspec = { + customer = function(pos) + local list_name = "nodemeta:"..pos.x..','..pos.y..','..pos.z + local formspec = "size[8,9.5]".. + "label[0,0;" .. S("Customer gives (pay here!)") .. "]".. + "list[current_player;customer_gives;0,0.5;3,2;]".. + "label[0,2.5;" .. S("Customer gets:") .. "]".. + "list[current_player;customer_gets;0,3;3,2;]".. + "label[5,0;" .. S("Owner wants:") .. "]".. + "list["..list_name..";owner_wants;5,0.5;3,2;]".. + "label[5,2.5;" .. S("Owner gives:") .. "]".. + "list["..list_name..";owner_gives;5,3;3,2;]".. + "list[current_player;main;0,5.5;8,4;]".. + "button[3,2;2,1;exchange;" .. S("Exchange") .. "]" + return formspec + end, + owner = function(pos) + local list_name = "nodemeta:"..pos.x..','..pos.y..','..pos.z + local formspec = "size[8,9.5]".. + "label[0,0;" .. S("Customers gave:") .. "]".. + "list["..list_name..";customers_gave;0,0.5;3,2;]".. + "label[0,2.5;" .. S("Your stock:") .. "]".. + "list["..list_name..";stock;0,3;3,2;]".. + "label[4,0;" .. S("You want:") .. "]".. + "list["..list_name..";owner_wants;4,0.5;3,2;]".. + "label[4,2.5;" .. S("In exchange, you give:") .. "]".. + "list["..list_name..";owner_gives;4,3;3,2;]".. + "label[0,5;" .. S("Owner, Use (E)+Place (right mouse button) for customer interface") .. "]".. + "list[current_player;main;0,5.5;8,4;]" + return formspec + end, +} + +local have_pipeworks = minetest.global_exists("pipeworks") + +currency.shop.check_privilege = function(listname, playername, meta) + --[[if listname == "pl1" then + if playername ~= meta:get_string("pl1") then + return false + elseif meta:get_int("pl1step") ~= 1 then + return false + end + end + if listname == "pl2" then + if playername ~= meta:get_string("pl2") then + return false + elseif meta:get_int("pl2step") ~= 1 then + return false + end + end]] + return true +end + + +currency.shop.give_inventory = function(inv, list, playername) + local player = minetest.get_player_by_name(playername) + if player then + for k, v in ipairs(inv:get_list(list)) do + player:get_inventory():add_item("main", v) + inv:remove_item(list, v) + end + end +end + +currency.shop.cancel = function(meta) + --[[currency.shop.give_inventory(meta:get_inventory(),"pl1",meta:get_string("pl1")) + currency.shop.give_inventory(meta:get_inventory(),"pl2",meta:get_string("pl2")) + meta:set_string("pl1","") + meta:set_string("pl2","") + meta:set_int("pl1step",0) + meta:set_int("pl2step",0)]] +end + +currency.shop.exchange = function(meta) + --[[currency.shop.give_inventory(meta:get_inventory(),"pl1",meta:get_string("pl2")) + currency.shop.give_inventory(meta:get_inventory(),"pl2",meta:get_string("pl1")) + meta:set_string("pl1","") + meta:set_string("pl2","") + meta:set_int("pl1step",0) + meta:set_int("pl2step",0)]] +end + +local check_stock = function(pos) + local meta = minetest.get_meta(pos) + local minv = meta:get_inventory() + local gives = minv:get_list("owner_gives") + local can_exchange = true + for i, item in pairs(gives) do + if not minv:contains_item("stock", item) then + can_exchange = false + end + end + local owner = meta:get_string("owner") + if can_exchange then + meta:set_string("infotext", + S("Exchange shop (owned by @1)", owner) + ) + local applicable = "currency:shop" + local node = minetest.get_node(pos) + if node.name == applicable then + return + end + node.name = applicable + minetest.swap_node(pos, node) + else + meta:set_string("infotext", + S("Exchange shop (owned by @1)", owner) + .. ", " .. S("out of stock") + ) + local applicable = "currency:shop_empty" + local node = minetest.get_node(pos) + if node.name == applicable then + return + end + node.name = applicable + minetest.swap_node(pos, node) + end +end + +minetest.register_node("currency:shop", { + description = S("Shop"), + paramtype2 = "facedir", + tiles = { + "shop_top.png", + "shop_top.png", + "shop_side.png", + "shop_side.png", + "shop_side.png", + "shop_front.png" + }, + inventory_image = "shop_front.png", + groups = {choppy=2,oddly_breakable_by_hand=2,tubedevice=1,tubedevice_receiver=1}, + is_ground_content = false, + sounds = currency.node_sound_wood_defaults(), + after_place_node = function(pos, placer, itemstack) + local owner = placer:get_player_name() + local meta = minetest.get_meta(pos) + meta:set_string("infotext", S("Exchange shop (owned by @1)", owner)) + meta:set_string("owner", owner) + --[[meta:set_string("pl1","") + meta:set_string("pl2","")]] + local inv = meta:get_inventory() + inv:set_size("customers_gave", 3*2) + inv:set_size("stock", 3*2) + inv:set_size("owner_wants", 3*2) + inv:set_size("owner_gives", 3*2) + if have_pipeworks then pipeworks.after_place(pos) end + check_stock(pos) + end, + after_dig_node = (have_pipeworks and pipeworks and pipeworks.after_dig), + tube = { + insert_object = function(pos, node, stack, direction) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local result = inv:add_item("stock", stack) + check_stock(pos) + return result + end, + can_insert = function(pos, node, stack, direction) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + return inv:room_for_item("stock", stack) + end, + input_inventory = "customers_gave", + connect_sides = {left = 1, right = 1, back = 1, front = 1, bottom = 1, top = 1} + }, + on_rightclick = function(pos, node, clicker, itemstack) + clicker:get_inventory():set_size("customer_gives", 3*2) + clicker:get_inventory():set_size("customer_gets", 3*2) + currency.shop.current_shop[clicker:get_player_name()] = pos + local meta = minetest.get_meta(pos) + if clicker:get_player_name() == meta:get_string("owner") and not clicker:get_player_control().aux1 then + minetest.show_formspec(clicker:get_player_name(),"currency:shop_formspec",currency.shop.formspec.owner(pos)) + else + minetest.show_formspec(clicker:get_player_name(),"currency:shop_formspec",currency.shop.formspec.customer(pos)) + end + end, + allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + local meta = minetest.get_meta(pos) + if player:get_player_name() ~= meta:get_string("owner") then return 0 end + return count + end, + allow_metadata_inventory_put = function(pos, listname, index, stack, player) + local meta = minetest.get_meta(pos) + if player:get_player_name() ~= meta:get_string("owner") then return 0 end + return stack:get_count() + end, + allow_metadata_inventory_take = function(pos, listname, index, stack, player) + local meta = minetest.get_meta(pos) + if player:get_player_name() ~= meta:get_string("owner") then return 0 end + return stack:get_count() + end, + on_metadata_inventory_move = check_stock, + on_metadata_inventory_put = check_stock, + on_metadata_inventory_take = check_stock, + can_dig = function(pos, player) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + return inv:is_empty("stock") and + inv:is_empty("customers_gave") and + inv:is_empty("owner_wants") and + inv:is_empty("owner_gives") + end +}) + +minetest.register_node("currency:shop_empty", { + description = S("Shop") .. " (" .. S("out of stock") .. ")", + paramtype2 = "facedir", + tiles = { + "shop_top.png", + "shop_top.png", + "shop_side_empty.png", + "shop_side_empty.png", + "shop_side_empty.png", + "shop_front_empty.png" + }, + drop = "currency:shop", + groups = {choppy=2,oddly_breakable_by_hand=2,tubedevice=1,tubedevice_receiver=1,not_in_creative_inventory=1}, + is_ground_content = false, + sounds = currency.node_sound_wood_defaults(), + after_dig_node = (have_pipeworks and pipeworks and pipeworks.after_dig), + tube = { + insert_object = function(pos, node, stack, direction) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + local result = inv:add_item("stock", stack) + check_stock(pos) + return result + end, + can_insert = function(pos,node,stack,direction) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + return inv:room_for_item("stock", stack) + end, + input_inventory = "customers_gave", + connect_sides = {left = 1, right = 1, back = 1, front = 1, bottom = 1, top = 1} + }, + on_rightclick = function(pos, node, clicker, itemstack) + clicker:get_inventory():set_size("customer_gives", 3*2) + clicker:get_inventory():set_size("customer_gets", 3*2) + currency.shop.current_shop[clicker:get_player_name()] = pos + local meta = minetest.get_meta(pos) + if clicker:get_player_name() == meta:get_string("owner") and not clicker:get_player_control().aux1 then + minetest.show_formspec(clicker:get_player_name(),"currency:shop_formspec",currency.shop.formspec.owner(pos)) + else + minetest.show_formspec(clicker:get_player_name(),"currency:shop_formspec",currency.shop.formspec.customer(pos)) + end + end, + allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player) + local meta = minetest.get_meta(pos) + if player:get_player_name() ~= meta:get_string("owner") then return 0 end + return count + end, + allow_metadata_inventory_put = function(pos, listname, index, stack, player) + local meta = minetest.get_meta(pos) + if player:get_player_name() ~= meta:get_string("owner") then return 0 end + return stack:get_count() + end, + allow_metadata_inventory_take = function(pos, listname, index, stack, player) + local meta = minetest.get_meta(pos) + if player:get_player_name() ~= meta:get_string("owner") then return 0 end + return stack:get_count() + end, + on_metadata_inventory_move = check_stock, + on_metadata_inventory_put = check_stock, + on_metadata_inventory_take = check_stock, + can_dig = function(pos, player) + local meta = minetest.get_meta(pos) + local inv = meta:get_inventory() + return inv:is_empty("stock") and + inv:is_empty("customers_gave") and + inv:is_empty("owner_wants") and + inv:is_empty("owner_gives") + end +}) + +minetest.register_on_player_receive_fields(function(sender, formname, fields) + if formname == "currency:shop_formspec" and fields.exchange ~= nil and fields.exchange ~= "" then + local name = sender:get_player_name() + local pos = currency.shop.current_shop[name] + local meta = minetest.get_meta(pos) + if meta:get_string("owner") == name then + minetest.chat_send_player(name, S("This is your own shop, you can't exchange to yourself!")) + else + local minv = meta:get_inventory() + local pinv = sender:get_inventory() + local invlist_tostring = function(invlist) + local out = {} + for i, item in pairs(invlist) do + out[i] = item:to_string() + end + return out + end + local wants = minv:get_list("owner_wants") + local gives = minv:get_list("owner_gives") + if wants == nil or gives == nil then return end -- do not crash the server + -- Check if we can exchange + local can_exchange = true + local owners_fault = false + for i, item in pairs(wants) do + if not pinv:contains_item("customer_gives", item) then + can_exchange = false + end + end + for i, item in pairs(gives) do + if not minv:contains_item("stock", item) then + can_exchange = false + owners_fault = true + end + end + if can_exchange then + local it + for i, item in pairs(wants) do + it = pinv:remove_item("customer_gives", item) + minv:add_item("customers_gave", it) + end + for i, item in pairs(gives) do + it = minv:remove_item("stock", item) + pinv:add_item("customer_gets", it) + end + minetest.chat_send_player(name, S("Exchanged!")) + check_stock(pos) + else + if owners_fault then + minetest.chat_send_player(name, S("Exchange can not be done, contact the shop owner.")) + else + minetest.chat_send_player(name, S("Exchange can not be done, check if you put all items!")) + end + end + end + end +end) diff --git a/textures/barter_base.png b/textures/barter_base.png new file mode 100644 index 0000000000000000000000000000000000000000..f385e5e8e461f40b63e68122ad3bd99b6cc3ff4e GIT binary patch literal 86 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`vYsxEAr`&KbBr|q+cUE^bPAna j%+@1ikaZxzh=F1IQ>HDg1}PhX3K=|I{an^LB{Ts5CAbz- literal 0 HcmV?d00001 diff --git a/textures/barter_side.png b/textures/barter_side.png new file mode 100644 index 0000000000000000000000000000000000000000..56e654332d48a208003bd2f9d1f72b519ba6ec80 GIT binary patch literal 529 zcmV+s0`C2ZP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGizyJUazyWI3i3tDz0j5brK~y+TZIjQA z0YMPPt7b;b5OEO+HwO`k2U}0D?t9$q+c}GigoA__F=DX&D@w5YC8MkB&sSfUZvFZG zy4LG;nNFuN8jU2+bIGzyYPFgy77G~;hcchfC5~h1^?I^iuVpryncZr&Bw8+)+VA&u zFc@eQMH&kAa5(7Ya?y6Xt$|p(-L8s=20~q}R@&)wG!W|XcvSrukFV8gRl-J^&1T3G zLD7D{f3eeQD#fvoqA1KyK6OSAI!Gm{$f-P8@IMfDq**FKxsgS5_2NdOaZeGm@$;R_ z^P@8;4uvU0MRfNW2mppymZf!qI8I_o)0++OL(CD3fB;mXX-fTB!-yre}z@P@w Tn_%QC00000NkvXXu0mjfnl9p1 literal 0 HcmV?d00001 diff --git a/textures/barter_side.png.old b/textures/barter_side.png.old new file mode 100644 index 0000000000000000000000000000000000000000..57c1d7c124971fd9fef4f8dc90b86ac7cc45a742 GIT binary patch literal 1400 zcmZuv3ryBk6h9#1H_)L;MFhg|9}5;VqR@hrh)=tG_{jiY@#wL!p>S0YT0k?X4T;=< zgAfiaO9^NQk$Q=u;U|GPOjyXvV`joK#S(!qp11qq=6H0sd+#}S=iJ}#{Lc9(%(!ux zjiU_!EMu<)hpT(JdFw3InO_j^2e1gjLL>Fcl`~t;TvB<`yog8$fry-Q#+asQ1Rwwq zfCDf9O=T^3A_5@*5jY3NK>NQS0umq)kOODHH1*Shw1x0e2tpK`BV%0CBqDJx7(-=q zPK*gnR&g;SEBuAxNhyd>2$jeM@ zI10v5V;nS^r!^>|v*ZRYXkG?GAvqG`ss{)fpIfeZMo&cyE2=e}yZ)>QMxs+u*uhSkSI!@fz+bK7oj z%-YiLeRz|rbwXmE=j2HD63Zmro%+OHw~AX&t^UwyiD&1D9y^cx_0wNB>PgdZOzgyP!H+a=F>Ok(dIuP%ifpObbIC!15Sz+1; znGw$=l${+se_>I|^z>gY?#1uLykz?#{Mz;LsPXFzzheQ;cxvgLh}^`N%llZ-p()db zkqGbR&36MAe_rVKc3(lSuWxb8&_69H|L$|JJASpetZLvsJ^Bgg~F}OPD%@6(q D@ROia literal 0 HcmV?d00001 diff --git a/textures/barter_top.png b/textures/barter_top.png new file mode 100644 index 0000000000000000000000000000000000000000..ec75d3d1945636da57d29ebffacb17e1dae2ad91 GIT binary patch literal 520 zcmV+j0{8uiP)z@;j|==^1poj5AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* zm;eA5aGbhPJOBUzhDk(0R5;63lVMilFbsshk#nF@X!m3kPOw042BqB#)tdbwI|0AE zIJPWhW<1jV@6G^1NJ0Ps!WdzLGXXF)oJlA!W{HSj!31QGwmr==nP4+>f?#nbD6o?` z47h1UL3(~w3^Oq<1~jTF>bJJZo)jOW7KlJ;kgI#YmI0PNnB1> z93nl4b(3j|j088uz8e`DPBZB#+O{W^UuLp~G|Ps1b^Z`;t_CQT zC-~7L7?x?>a(;Ev+Lio1JYl0vu4T3ivq=nOmOIx19?#?!Gt7UJ+wui*i*{T90000< KMNUMnLSTZ^&Cfsp literal 0 HcmV?d00001 diff --git a/textures/barter_top.png.old b/textures/barter_top.png.old new file mode 100644 index 0000000000000000000000000000000000000000..8ce9256e5705b8b09abd0ddff4d774e6d425a883 GIT binary patch literal 896 zcmV-`1AqL9P)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2i*u3 z7b7LhvhV-^00RI?L_t(I%LTzph#W;6z~Nt2{kyBDr*~#|XV=a8f{5$Mh?cljg8$P(-rHLR1JSA!a=U&2IKJ)6>;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ZQiFpK~I002ovPDHLkV1mad5CZ@J literal 0 HcmV?d00001 diff --git a/textures/minegeld_10.png b/textures/minegeld_10.png new file mode 100644 index 0000000000000000000000000000000000000000..acdb05e38aa715814b01e6bdcced706441fcd7d3 GIT binary patch literal 3509 zcmZu!c{~&T|6g;hLe$DN7DCgO7IG~yG`Ct8lXJ*gNRFH-lyc|%xI+ue-B51Pq%n!+ z$_%ksWvoK3@A~ie$M28#`FK5EkJsbzdcK~|*XzjzTa4H~*?j;2K+MA26w5!2{w>M7&D&4=n=Q(%1ekO7$Bxysz;lW3 zuY>lgsBGs+N#5rbE^lqSxaQ+IpMZwC#T~8YFTi|D)W?o{h4OA~2%VFFQ&Ds1=B+Fa zyN+dmz>VSC2vTFvnYo?FcX?yuGUua+zQpMdo6{Iy?x&Za_f zUPE2WXE!T#=ye>1%1*%Y#pbT`)2P=ITHvm{HdI+qGIfIT1`OO2Vq}$5PYtyz)+R9$ z6OH#hI55bzT;a^5j-z^Yd#&y7dW!;&qpw;h*3yefrVktD3Qu}qTJym`go+8id?HKC z3~AWHfE}``3bh~o-W-`TC|U*=SEBGr!sMCHL6eQY!p@#AmE=2ssl;seK1FkD3GdO1qDjVA zeQ4E=*;ECg!mu?&<8-rWR45Wro>4OS1Nc$P=C3ue;AFay8K@qvJQ%QwDy!!F+InsQ z8*O{pV7rV_!?15Co_GZ>^>NI=?uC-cXiJMiwmoq%xTU|pAHZr;qn##`-D#hI+w*3Z z?RP6)-tcFZ?hzKTD*>A8vArjcC<+!S=$lP7&gJfv@~*T=kixyfUIEW=Ljhguc0v)7 z_tVm_L|J0RWY&0z`7=_iInkb7JF`v2d99)%3t?uT8!NUb8K`pNLVPq8caryh$P$Z)SBV3V?N!}{6HoqzJA>KNEj?J3`EI4v!PhbklFUOp+OM0ZC zG?&j$K&%AC$12Mc6|tUL4|i~K^7QphZuA+=G|loHWA(R$r@Vk`7TW-CIp8|=Fj<}v z8}r%y0|OVqLc3ccQE#tbe1?|5P`O(LchdyiIT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u@rmV@EoKSq-!Uj2v zp=kA5f&|zh*+G$0j&b!&p8wHPz>o{0893fJ&5s+t%gr9UP*gf}+!KuoOe}9W<7NXk zn!W4KO2e*pF-rsA)~dv^(oM=z(cE82`{yX)ms{XgOU(UKtA_d38z;?e{0%kGvdM|Xjahsp<3JSt>j+M+ zho=k7>OwTe7Xzim<0w9~{(kG5PcFhY{&H$UXP>C8bKi|VCSUp7_{52R#0m2GoeQ1 z$YE0XPSXC$>gsy`x%1~shh7)mObSTO%skvYb&}tt;6-hQ6Dxepo0_YKaAl&82|J&! zxzrJcUyS%?U@NPtkUBaTr%}RD&hIe7lxz53b}^Wv9pweW*mz?h&u@%EICSE~iGDg=wJv~Po^*)=&R`*` zG(Uy|3Mg~+k9_(8_DZ=#bj_ulv%PY~!XWXPHblI)|CJ9c-o5|uQZ7F+60*H)ew_;U z5;UF1gnmjC+=<%tCpVf2v63B>@9o4uL+}WL>F~VWu$j-t5SVCu45Sfz<<@a4g%RyG zcz5VvxzFN5@L;Cp{LsMZTM`b+Pm%PCHwSdCyt`GXmO7v+NI&kE1YB}tr-7j=tMCiF z8jNz`x8L?+>dVgq4L3?HA-xGlN8g;1-|5|7lN?t(ru6g2S<7N=p3cc*Nj?D=E-z#s zIXJWEq8Gy}^m(xVI4pF5D&&HZk=hCK6 b?XCcHGJX7pE}@P;jsYypY)z}tuF?Mks9)2< literal 0 HcmV?d00001 diff --git a/textures/minegeld_100.png b/textures/minegeld_100.png new file mode 100644 index 0000000000000000000000000000000000000000..0e33b7a2101a36c936b5a4b8305808b55523542a GIT binary patch literal 3527 zcmV;&4LI_NP)ubormdeE#x@=fcI3Puo%qF={|kVcfRut%x!LS zo7>#xHn+LWZEka$+uY_hx4F&j&&$MXKmM^bT4RkN>GklRu@<8>b)F-mh;%T()HOm% zbXB2}ggVcOI-T}@K*cfE7<64Dgh0kIR%=YtAmbPn$JEm)Dvl|3c8I%OOw*9|`O3b|SfHLxNqW7oE|nzI(CpM&3-*s5MVBRUw~G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d00001 diff --git a/textures/minegeld_5.png b/textures/minegeld_5.png new file mode 100644 index 0000000000000000000000000000000000000000..5c66ac6dde6054796ace6c7932c04d4e80060705 GIT binary patch literal 3365 zcmV+=4chXFP)Lhgvw)rLY-c;$+0J&hvz_g1XFJ>3&UUu5o&9r} z`1#NOGkEU^!Bdtq((fSzym$2d7AZANvyXEYAtd8CptWHbwiHE82p#~f3%vK!a{{Fb zymvS^qEvy_1;fyyRKa$8Ls>RBH&WMgoEz~zJ~xg7QYu0S2q6$cG7MYFat~`;%5p~E zZ&6B5=V&pe2B7b^KtOB5I1Y@XrLN~#+hI)2=g#h@buJKf*9{RMm{z+rKfNe>r(bvs%?`w_D1xr0Y6nvl#%+Ih=DyDW}xe zjN^!u@sieB`o5>GV@9Osl~R+_qQlCvWV_umo6Q)<5$7DkFfgCban9wnwAM%&FAe11 zg%AwGfRvJP95b%Rabz}|(Y7shT_dIB^fU&cZST;!Kx-4>Jq#TmK0KK`E_m}s^ZxxF zt5uyBR7%k_F*Al?$e(Gg^JOxr2tiR47-KNT(D!|Q{-H@JAAMJAoxh))oSa`21pq}+ zFpeWi-Sb1&bx0{O#^9WzX&UzS_5cVWP!t7S*Rfbs69nTq-oDj%@6kfQ*;$K}DwEha zjtC)m_RM1KfRvG(qIZV}iQKmk~l$RUw4P9FhJXLZIt9swz4l zVg4Z`_V@R3&aqt9939D;EK7d*%O9xgeE^K9 zI6GVO=~I&fd43*Cr}WUKruVr2*UNk~*7zWR6f`&Uf}3xLkMo-0-Mu(xm1~0VirXQB?3D< zyuo|V+qZ`GddASv6)2?;A|R#0+CFDqg1B?`{-#P5IOlRIhv2!qG`X}T75MM~$-7Z3?dSg` z9=ZR!M{7M{^FFFoRprPlr8qzDCy3l%^z^j-k$g??x?f990Sx)<^Z9&o@;ygvx7+D^ z9oEJlErjIaqU7-K?~lrnlp5z8#+Z!TSUyxvwd7GLWfnNe0mhg~A4JE!dKLJ?9~{TW zcN9fbd+7oI$H!ZwjG44r&FK4{=g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mV?d00001 diff --git a/textures/minegeld_bundle.png b/textures/minegeld_bundle.png new file mode 100644 index 0000000000000000000000000000000000000000..c6b339dc6ffaf4d627d638556575a6207c8b8cc5 GIT binary patch literal 5092 zcmV@HjaUS>F?v@R<$%GWiFv$=?Vi~zD%dZ5c=7lXwvN4H6CSwDRAHkL^$**K4 zsT3pxSyrnh6hn|SA%pE1f-Sq%vN6n5CJ$oERvX&^Qv+dY7$_*r%a*$DJ&*mGKh8eK zEeev!A7rYW-c?r7;ZCv|m@M z6s0i?k_3RUF@z9Em7;MD<2{pUN@XpBB;lK*5w9E!sGXxo5~LJ@+Bq_z#z}C){-O|Ap{`=wALhABc((sg;I*MAG{0aJ*)5E(H?+voHsv<^PV?;{QYPt z0a!ObOXD1C=4J>XP&>!;+zhEwoIf{%4*?$n(}#DXVn7oq2_YaJx!{6eyywCrd-(MF zEfg`5GQM%CX~<$UhiQuSp2oTU;Zg_$5CAP@pEW)NGOfwA=JXxc752{FZwR~1=YbQ(dh`%)2KPJiz;q-jEuBxG5N5Q6czB+s*W!ipr( zR8_;|#DLL>KnQ__D{f~ZP1~&VoF%g7)2wd>+UcC1tNy4|j^)05RrpU64PyCBt zV=BwqHE7Kfm*2{pBdY-{Ty_hCBtiNR_}P!YznwhG+8U0j2JnXe^1GaSc=t)oLs$O* zZ~o-noEJ~2wiYEN>*i;1u@~^(Gc0l-M1ZsugB<4^T5GgYlx0npWhkX^&NET8K-}St z5Q1};VUi1hGwXeTmaR36tWrKE9=b#Xp9(3*wI zZlR1kzZ^}c=VyDgeKMXvxAA8#zm=yiyM<$y-i%U;=|emFEK*7_9*+Td?2^q`>mpdf zuo$!p$}@xjW7_9+2%n}2&O3~;ENt3-QqViFoqq7HK0_bB^ydCOQc6B^`K=t?u$5=u z{#z)eIA?wqC1qc(-5d)Wx3w(LeK=7H=Ul%KACX&1$+3;wFw1Cf;nJHCLa_G8o))Y& zZ0(U6z{Ftob0->W9a=|_^u7;D6G6~9M_o76b&W9&@8d!@Z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Ps0t{>TD4WfWB$LSx zEz8Ps&f|;r&o|IO0}V9LKm!dl(7^WaU!bE^ZsVvHEC2ui07*qoM6N<$f)|N#v;Y7A literal 0 HcmV?d00001 diff --git a/textures/minegeld_cent_25.png b/textures/minegeld_cent_25.png new file mode 100644 index 0000000000000000000000000000000000000000..cf27f296a81623cc92c1669c9ef132a68577bf47 GIT binary patch literal 2900 zcmV-a3#;^rP)w7K^=Hi@Cx1|-hp%A8Z_(%+l^Cp zy?!#f{V)FfHv)h-{?Q*sQSgvR;Sk6z3WK0vJz^as4!i^P;C;F`7ank^q&w;m+y-LL zgMB-xHeM>+{+Gu-v;cVj%rTMh^Qys}hy>y_Rn~cEc!)j3*>mqfHB&rQHr*AlARYn- zA!z78tQD917q!MOClvd3t+yubqfN-E0 z5aPf%#aJ+I5tqCmxBd0kKQsV%|IBkDg-?SS!K)#05G&MEW8yN!(|2c&ea`ybyUhWS zJr)OI!8i~05{<^M<;XKnUhln|>sS6K&xu42qB4f_hSqJ091eS4);)V5;gmo`~l-(tINNvtOb0*Zx@ z;lUzfBLhr~lrW~#vU7{;oO)-rDhPw_;F@A zN7eJzJ99Yaavt!03hQN_=dXDbDg@@}o`!(;fA)PaL#R*bZ0vDXn0arhO>#1s+BeF< z>2dn{3Rvq|TB&mS-C2Co6I5w58Z58X*f&}tNo<=esS-toM?Uq@HY04seUg!*B+Cg6 z&;(7hZ#jPXE8i)8=GmwA!~;b1F!%!2L2SW#*4An*E2fHhM#}x%^|Aew`Xh`eg-AFs zIm{g&-Pai+C>zza~}m9$LJP(Xbe0y&FDp=o(k z$Byp=u`@pe2nULWZvua{s{n+~m1+1<3eJ#ZbksNXGg*A*6S>J4VOtg!S39Z!C_@8L z>H$g8@mdrLaU)@New9nhRkrFef}_7EjFv;D#)}M=GzUfsfFk1sk@Bv4K&X_|`T?;{ zXd0{OvUw0hGsQK>^I>Iei`n^=T(VRGBaB!2K^=*;9Twi$+~Vc`Sk3ZFdtR_vb8ObO zI6rH-WwOZO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AfC-mET7?2Z2hbZZ;R)#)gU0Gzui9O~=ZAk(Eh)6p#Yi__4F+EuGH5u#^tD06o~ri2@dC zrREn|nUE-0iW~*g=@A9fF@k;G(&_Xmh>&vudX6AF7m!r5O`DE0#S@zoXc7g;;xsD> z36*f8l@Zwv7;O&>czb}>4O5~VK+m4iXwPVH^o;10;IIJzTnl@yi?xCb00000NkvXX Hu0mjfhme1$ literal 0 HcmV?d00001 diff --git a/textures/safe_side.png b/textures/safe_side.png new file mode 100644 index 0000000000000000000000000000000000000000..1ec4c1f5d1b5d5eb9aa2c06838162478dae2f717 GIT binary patch literal 150 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=ffJSWg$nkch)?uWuAQV8FxV@aVEY zloNBcp6)?0zoo}&otUS_e0<)Q{=QbhhruD#^VDwXY&jLjPoFRCPIsI$L)o}qb5HdX q`-BEYHVHUUA$f9o;2E#br>rho^4YqDt1E#PF?hQAxvXd3Gp!32!i3f;=pLknm@ZUJ8$N_nP=gr`l$PNKJa0Z5M@J}sz3(;K^UWh5T!iU z7^=%DQI<1Y+rU)?&KjI4Nd{xYH5Io$`-(_`#6n#eLIpnPsEtB!3^Pq_1M;+^pC{;e zNLd!V`sO=`mJoAsju+wLAA>Q5C<<}b6UBu2Cw zT3ZnhR_R)Y{PEKloF5;PFZJV6dTv2c)Rg6%(P+f=>(`k~CTwnQGMP*`JUqlU4Xv#RdkJY2;k`$c3OIdugbD?3 zE4tS5&FAm)#(SS)t)<`Zb9{Wv;ddV+aZH}|@Nti9`3k=45FG^E{`M|j0<3ERPuF_x z{qj8Te)uH-w{E=NI3`n`m-*Q4tk;>?0_W>^$6&MpcTi<+Kzk~jnvU~K#UJ57I>VO>Y( zJib-IjeYN{V}TfCG}!KIv4_;*`N3L4_r5J$j!kW`v3p{07*qoM6N<$g154T A#{d8T literal 0 HcmV?d00001 diff --git a/textures/shop_front_empty.png b/textures/shop_front_empty.png new file mode 100644 index 0000000000000000000000000000000000000000..1939d90e013cbcc70642894fe1247a84e7aa604b GIT binary patch literal 925 zcmV;O17iG%P)84=d%xO0@t011d>G zK~y-)JP7el96BZZNBLKcTcM@;p7+uv0QY2(af{5xX zIth1?PJt{{h)xD)W(oH9Y0k|dmzF4Azs}zDG}h&JL1$!1gi{(I&r-yl#W!_xYl}ix z5uN4OzDMJ0&AIt`a?`}fGGgE7_r*n`t&fRXAx_{SEsJvB0J1tV$v4YuC{-u7JcLtX zV&-LTEiCZp;UNI?>D9V>;~?B8l;AiPjn^gh~Ccb%Z6+NkpC{JeYfhCvR^2AC%_i_-VR?bX^L5 zfOZ1>?p}1BBMsB!+SL`bG)dBoN}BQ3A8i2EW@j0_a)r|BD#z0@*8-C$$thGS6nvKp z&pwT`gCdiUpCL&S44rcE#u{CDn~lL5muqd#K6Zkcr8~TIKjQXN51|Z$V&LKh0ePMx zQ*}gms5ojLa(ZKjM>h9R0^YA!?A-X7AL5jUJ)6-eX6CmCd@|Zko@#U^(0Pm@Oante zzw7YE=05;@KGw@_*~ju-D&0jsn;Ze)nfnbU3k8M-`{}8cKx+)NCQ~h5_*(w(c0Z6QZZSi z7&|+~&fQhQ!-(3@F{0K1ouebXQW?;651-&)F)nNVr_$pq00000NkvXXu0mjfhTx)? literal 0 HcmV?d00001 diff --git a/textures/shop_side.png b/textures/shop_side.png new file mode 100644 index 0000000000000000000000000000000000000000..712364c52d36a716ce0cb7c2d3b308febd02288e GIT binary patch literal 755 zcmV zo+DwM`ReO$DHKR4EVIKZ$R@Ekg%Ic)&EgGRo!E30y6hRpflogD0?}e|_dBu(_ty^R z97SOXK2wy66k#3;#A=qMWOf6K-=hGrCDNR{!EVvG-H0X<5uyudV4D+G3zY~cAsQi? zikv(daKjD}TVm40wt{K$D4!7nVgW7KrlP;-AV9r6p{*O7n;Gt|iQc2;o9Ee&S4i0r zgF{P!mKu~M%saG{#AQO4HPH=_Bhk;4+e=am$R9s_!|v59x|0n#CW@xU))ir0neGo% zO~viYYfc_q5Z0CXI8wGXVlDlHOXU2W$Ncc~Z#Z{DvNfvQ;+BONJ>-BQp>st4Jy9t^ zN@3*<3!N4HLt#FpftQV2vRJ@P5HBk-AVAS&4qewiR_zkaI?qGTi+2 zJIV^#&!p&C=77?ImV#k_MCE|hHO`cDO-n9YnzJ{_DIwYzzW?qySqwfzAd_OI?*yg5 z7{ggtaT5dMurm8ZcX~?KRDAs5`$*Alc>MGU-g|ToSTTq-)cq+&1HqGG;&^o2-|fjM zvuP{pwk4&21UE4r9Mf>%?tWmJ7Fx+vr3GbhKK}ot+4K!QBvQ!asK{wWl+kDf-ARXv zf%DFy#W1=Rk%C4mnyO-5J?H0VD6Of=f>MB-5ppKFBgf%DT{rk_SeFG!fiRBj=Y^)~ z=(aWg-d@pfTT0Vmn+_!<5)Oaz*$0=LJ$yn@*Br0@VRkEVcD(!EGhV;=mGLlh@$fC? lDHhYGwcc002ovPDHLkV1i}3Ut<6O literal 0 HcmV?d00001 diff --git a/textures/shop_side_empty.png b/textures/shop_side_empty.png new file mode 100644 index 0000000000000000000000000000000000000000..7bb59c6754850f3771b10e2f20e7363c4a81eb77 GIT binary patch literal 929 zcmV;S177@zP)8D;?XHK8gSU11?EK zK~y-)1;I~f9900o;oqBi^Jiyfv)RNXZrik4Eb(9qYGR|bf<>rkdQj^{FIp%)6+Mbq z#e*Pt5YdY$q7{Tz5vh_Of;C910Z|LBwXKP1Q@3rB-I<*?GjHDW`^2S%H>?+i_)&{8 zPjOrq*9&l54(d0Wy#jxxy1*T|=P+ z5=|>|C@PnvVQ3~HPS7IDQl5M97}Aj*YGWNMCC`4h#=jw)o@$~iiysI~4SDMG``~UX!U3T^l-?VedZ!PR-m&?KZJ) zjB#UBx{f2g0M`r{3N5Lu`E0Al@yi*JEWr`@jer+^-(X>8f?#rj(eW{cN83nIQCAfr z@1C_)b^{qC)LP+4pWyk|sP|7(9-YH`|0K>&OOz+xqE;!`n!3sfhB}y9BmOvb+^%1{ zMl#&Q)&@Un5cW#8zjA^rM`pSE!=E|#@;;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