From 083b285f4319c470f307f0b52f03a2fb68facd38 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 26 May 2020 00:17:52 +0200 Subject: =?UTF-8?q?Rename=20=E2=80=9CMinimal=20development=20test=E2=80=9D?= =?UTF-8?q?=20to=20=E2=80=9CDevelopment=20Test=E2=80=9D=20(#9928)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- games/minimal/mods/testentities/armor.lua | 41 ------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 games/minimal/mods/testentities/armor.lua (limited to 'games/minimal/mods/testentities/armor.lua') diff --git a/games/minimal/mods/testentities/armor.lua b/games/minimal/mods/testentities/armor.lua deleted file mode 100644 index 4c30cec8d..000000000 --- a/games/minimal/mods/testentities/armor.lua +++ /dev/null @@ -1,41 +0,0 @@ --- Armorball: Test entity for testing armor groups --- Rightclick to change armor group - -local phasearmor = { - [0]={icy=100}, - [1]={firy=100}, - [2]={fleshy=100}, - [3]={immortal=1}, - [4]={punch_operable=1}, -} - -minetest.register_entity("testentities:armorball", { - initial_properties = { - hp_max = 20, - physical = false, - collisionbox = {-0.4,-0.4,-0.4, 0.4,0.4,0.4}, - visual = "sprite", - visual_size = {x=1, y=1}, - textures = {"testentities_armorball.png"}, - spritediv = {x=1, y=5}, - initial_sprite_basepos = {x=0, y=0}, - }, - - _phase = 2, - - on_activate = function(self, staticdata) - minetest.log("action", "[testentities] armorball.on_activate") - self.object:set_armor_groups(phasearmor[self._phase]) - self.object:set_sprite({x=0, y=self._phase}) - end, - - on_rightclick = function(self, clicker) - -- Change armor group and sprite - self._phase = self._phase + 1 - if self._phase >= 5 then - self._phase = 0 - end - self.object:set_sprite({x=0, y=self._phase}) - self.object:set_armor_groups(phasearmor[self._phase]) - end, -}) -- cgit v1.2.3