repaired 2 bug, and modified textures. by IFRFSX.

master
IFRFSX 2020-10-20 22:50:38 +08:00
parent 4982e89971
commit c41e0c7c20
26 changed files with 72 additions and 9 deletions

View File

@ -1,4 +1,4 @@
# Maidroid
# BingFeng-Maidroid
<img src=http://i.imgur.com/oWjrLtK.png>
@ -114,15 +114,30 @@ jmp start
## Requirements
- Minetest v0.4.14 or later
- Minetest v0.4.14 or later(use without farming_redo mod of new version).
- Minetest v5.0.1 or later(use with farming_redo mod of new version).
## Forum Topic
The forum topic for this mod on the Minetest Forums is located at:
The forum topic for **this version** mod on the Minetest Forum is localted at:
- https://forum.minetest.net/viewtopic.php?f=9&t=14808
- [Minetest Forum](https://forum.minetest.net/viewtopic.php?f=9&t=25523)
## License
The forum topic for **old version** mod on the Minetest Forums is located at:
- [Minetest Forum](https://forum.minetest.net/viewtopic.php?f=9&t=14808)
## Github Page
+ [This Version](https://github.com/IFRFSX/bingfeng-maidroid "Github")
+ [tacigar's Origin Version](https://github.com/tacigar/maidroid "Github")
+ [thePlasm's Version](https://github.com/thePlasm/maidroid "Github")
## Author and License
The bingfeng-maidroid, by IFRFSX, based on tacigar and thePlasm's Version.
The License("GNU LGPL v2.1" and "CC BY-SA 4.0") is not upgraded.
- The source code of Maidroid is available under the [LGPLv2.1](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt) or later license.
- The resouces included in Maidroid are available under the [CC-BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) or later license.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 667 B

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 667 B

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 651 B

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 670 B

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 667 B

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 651 B

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 670 B

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 651 B

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 670 B

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 667 B

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 651 B

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 670 B

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 667 B

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 651 B

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 670 B

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -1,4 +1,16 @@
------------------------------------------------------------
-- This Modpack is based on maidroid of
-- tacigar and thePlasm's Version,
-- Modified version by:
-- IFRFSX(BingFengFSX)<IFRFSX@protonmail.com>
-- at 2020 years.
-- Copyright (c) 2020 IFRFSX.
-- Modified's Content:
-- 1. repair farming.lua's bug of get plants name error.
-- 2. repair basic.lua and torcher.lua's bug
-- of follow other player.
-- 3. modified textures.
------------------------------------------------------------
-- Copyright (c) 2016 tacigar. All rights reserved.
-- https://github.com/tacigar/maidroid
------------------------------------------------------------
@ -18,7 +30,9 @@ local function on_stop(self)
end
local function on_step(self, dtime)
local player = self:get_nearest_player(10)
local player = minetest.get_player_by_name(self.owner_name)
--[[ [IFRFSX] replace self:get_nearest_player(10) to minetest.get_player_by_name(self.owner_name), repair bug.
--]]
if player == nil then
self:set_animation(maidroid.animation_frames.STAND)
return

View File

@ -1,4 +1,16 @@
------------------------------------------------------------
-- This Modpack is based on maidroid of
-- tacigar and thePlasm's Version,
-- Modified version by:
-- IFRFSX(BingFengFSX)<IFRFSX@protonmail.com>
-- at 2020 years.
-- Copyright (c) 2020 IFRFSX.
-- Modified's Content:
-- 1. repair farming.lua's bug of get plants name error.
-- 2. repair basic.lua and torcher.lua's bug
-- of follow other player.
-- 3. modified textures.
------------------------------------------------------------
-- Copyright (c) 2016 tacigar. All rights reserved.
-- https://github.com/tacigar/maidroid
------------------------------------------------------------
@ -21,8 +33,15 @@ else
local n = 0
for k, v in pairs(farming.registered_plants) do
n = n + 1
local plant = k .. "_" .. v.steps
local plant = v.crop .. "_" .. v.steps
target_plants[n] = plant
--[IFRFSX]replace k to v.crop,this is plant's real name.
--[[ [IFRFSX]用来调试的代码:
minetest.log(plant .. "名字前端是" .. k)
for i1,i2 in pairs(v) do
minetest.log(i1 .. "==" .. i2)
end
--]]
end
end
@ -261,7 +280,8 @@ end
local get_plantname = function(itemname)
for k, v in pairs(farming.registered_plants) do
if v.seed == itemname then
return k .. "_1"
--[IFRFSX]replace k to v.crop.
return v.crop .. "_1"
end
end
return itemname

View File

@ -1,4 +1,16 @@
------------------------------------------------------------
-- This Modpack is based on maidroid of
-- tacigar and thePlasm's Version,
-- Modified version by:
-- IFRFSX(BingFengFSX)<IFRFSX@protonmail.com>
-- at 2020 years.
-- Copyright (c) 2020 IFRFSX.
-- Modified's Content:
-- 1. repair farming.lua's bug of get plants name error.
-- 2. repair basic.lua and torcher.lua's bug
-- of follow other player.
-- 3. modified textures.
------------------------------------------------------------
-- Copyright (c) 2016 tacigar. All rights reserved.
-- https://github.com/tacigar/maidroid
------------------------------------------------------------
@ -61,7 +73,9 @@ local function on_step(self, dtime)
end
end
local player = self:get_nearest_player(10)
local player = minetest.get_player_by_name(self.owner_name)
--[[ [IFRFSX] replace self:get_nearest_player(10) to minetest.get_player_by_name(self.owner_name), repair bug.
--]]
if player == nil then
self:set_animation(maidroid.animation_frames.STAND)
return

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 B

After

Width:  |  Height:  |  Size: 901 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 676 B

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 996 B

After

Width:  |  Height:  |  Size: 1.2 KiB