From 7f602e72efb09e78036e48104aed472c9588135c Mon Sep 17 00:00:00 2001 From: Migdyn Date: Sat, 8 Oct 2022 11:08:47 -0400 Subject: [PATCH] Updated the mod to version 1.0.2; Changelog: removed unused functions from the telephone mod, changed the name of the README in the telephone mod, updated README.MD --- README.TXT | 8 +++--- mods/telephone/{README.md => README.MD} | 0 mods/telephone/init.lua | 36 ------------------------- 3 files changed, 4 insertions(+), 40 deletions(-) rename mods/telephone/{README.md => README.MD} (100%) diff --git a/README.TXT b/README.TXT index 1ff80c3..ce9d9f7 100644 --- a/README.TXT +++ b/README.TXT @@ -1,15 +1,15 @@ -Coconut Collection - Version 1.0.1 +Coconut Collection - Version 1.0.2 A game heavily inspired by "Coconut Hut" for the Ouya, it's a competetive 2-player game where you collect coconuts and sell them in order to gain cash. How to play: -mine coconuts w/ your pickaxe, you can click with coconuts on payphones to sell them and get a better pickaxe, you have to take the handset off -the hook first by left clicking. +Mine coconuts w/ your pickaxe, you can click with coconuts on payphones to sell them and get a better pickaxe, but you have to take the handset off +the hook first by left-clicking on it. Prices: -you start out with a hatchet +You start out with a hatchet 8 coconuts = steel pickaxe 20 coconuts = 2nd tier pickaxe 99 coconuts = coconut drill diff --git a/mods/telephone/README.md b/mods/telephone/README.MD similarity index 100% rename from mods/telephone/README.md rename to mods/telephone/README.MD diff --git a/mods/telephone/init.lua b/mods/telephone/init.lua index 61cbba6..c071d9a 100644 --- a/mods/telephone/init.lua +++ b/mods/telephone/init.lua @@ -1,31 +1,6 @@ dofile(minetest.get_modpath('telephone')..'/api.lua') -minetest.register_chatcommand("call", { - description = "Displays the calling formspec", - - func = function(name, param) - minetest.show_formspec(name, "telephone:call", - "size[10,10]" .. - "real_coordinates[true]" .. - "field[0.3,1;5,0.8;caller;Caller #;]" .. - "field[0.3,2;5,0.8;target;Target #;]" .. - "button[0.3,5;5,1;call;Call]") - end, -}) -minetest.register_on_player_receive_fields(function(player, formname, fields) - if formname ~= "telephone:call" then - - return false - end - - - minetest.chat_send_player(player:get_player_name(), minetest.get_node(fields.target)) - --if minetest.get_node(fields.target).name == "telephone:neusonic_kxt2378mxwd" then - --minetest.chat_send_player(player:get_player_name(), "Calling the number " .. fields.target .. ". Your number is " .. fields.caller .. ".") - --end - return true -end) minetest.register_node("telephone:neusonic_kxt2378", { description = "Neusonic KX-T2378", @@ -172,14 +147,3 @@ minetest.register_craftitem("telephone:coin_2", { description = "2-Golden Coin", inventory_image = "telephone_coin_2.png", }) - -minetest.register_craftitem("telephone:card_magnetic", { - description = "Magnetic Payphone Card", - inventory_image = "telephone_card_magnetic.png", -}) - -minetest.register_craftitem("telephone:card_electronic", { - description = "Electronic Payphone Card", - inventory_image = "telephone_card_electronic.png", -}) -