From 7de0e81e585918a44e01a3d43a6d2d80e38c627a Mon Sep 17 00:00:00 2001 From: Solebull Date: Sat, 29 Dec 2018 01:57:54 +0100 Subject: [PATCH] Replaced chest with bookshelf in NPC villages --- ROADMAP | 13 +++++++------ TODO | 3 ++- mods/mg_villages/replacements.lua | 4 +++- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/ROADMAP b/ROADMAP index 559f5d1..03a6660 100644 --- a/ROADMAP +++ b/ROADMAP @@ -144,6 +144,7 @@ It's really fast. May be used on a website, to show the actual map. **** pvp shoudld be a privillege - So we can revoke it to some players **** TODO Continue to test factions and NPC mod + CLOCK: [2018-12-29 sam. 01:34]--[2018-12-29 sam. 01:57] => 0:23 CLOCK: [2018-12-24 lun. 01:04]--[2018-12-24 lun. 01:12] => 0:08 CLOCK: [2018-12-24 lun. 00:51]--[2018-12-24 lun. 00:52] => 0:01 CLOCK: [2018-12-23 dim. 18:16]--[2018-12-23 dim. 18:40] => 0:24 @@ -185,17 +186,17 @@ It's really fast. May be used on a website, to show the actual map. - [X] modified mg_villages.ENABLE_PROTECTION from true to false Doen't work anymore. We don't want anymore to protect villages disable it -- [ ] We can't open doors when created by another player - Maybe completely remove doors/ mod -- [ ] Even with protection, we can take what's in villagers' chests - Try to add them as protected chest -- [ ] Too much stuff in NPC villages - - [ ] Maybe try to use replacement to replace chest with something else +- [X] Too much stuff in NPC villages + - [X] Maybe try to use replacement to replace chest with something else How to change that Try to edit mts files in mods/mg_villages/schems/ These are schematics files sued with worldedit : not really usable Changing it from code could be easier - maybe see handle_schematics/build_chest +- [X] Even with protection, we can take what's in villagers' chests + Try to add them as protected chest +- [ ] We can't open doors when created by another player + Maybe completely remove doors/ mod - [ ] Faction chest must be for faction only (no parcel needed) diff --git a/TODO b/TODO index a6d024e..d8a3523 100644 --- a/TODO +++ b/TODO @@ -11,7 +11,8 @@ minetest-solebull - LGPL-2.1 - A PVP/faction game for minetest based on Cobalt. * v0.0.1-3 (17 Dec. 2018 - ???) -- (8) Implemented /list command +- (9) Replaced chest with bookshelf in NPC villages +- Implemented /list command - Add a nether mod - Deactivated playereffects autosave - Add the areas mod diff --git a/mods/mg_villages/replacements.lua b/mods/mg_villages/replacements.lua index 3cd0a63..01c860c 100644 --- a/mods/mg_villages/replacements.lua +++ b/mods/mg_villages/replacements.lua @@ -355,7 +355,9 @@ mg_villages.get_replacement_list = function( housetype, pr ) -- else some grass would never (re)grow (if it's below a roof) -- table.insert( replacements, {'default:dirt', dirt_with_grass_replacement }); -- table.insert( replacements, {'default:dirt_with_grass', dirt_with_grass_replacement }); - table.insert( replacements, {'default:dirt', 'default:dirt_with_grass' }); + table.insert( replacements, {'default:dirt', 'default:dirt_with_grass' }); + -- Remove all chest in PNJ villages + table.insert( replacements, {'default:chest', 'default:bookshelf' }); -- realtest lacks quite a lot from default if( mg_villages.realtest_trees ) then