Finally move luacmd to public modes (need lua privillege)

master
Solebull 2018-12-17 14:22:27 +01:00
parent 078e62b88e
commit a3d83b9feb
7 changed files with 19 additions and 3 deletions

18
ROADMAP
View File

@ -96,6 +96,15 @@ with exaltion
**** New streamed test
CLOCK: [2018-12-13 jeu. 15:01]--[2018-12-13 jeu. 15:30] => 0:29
- [ ] *Tobe tested*
- [ ] Anyone should be able to buy a parcel
- [ ] Can another player can modify land in another one's parcel
- [ ] Does my mapper understand and show the factions ?
- [ ] See that error
[advanced_npc] ERROR: Unable to find building entrance!
- [ ] See if we can change actual minecart
With Froward/Backward touchs
@ -125,13 +134,20 @@ with exaltion
- [ ] Each rank in a faction could be given to a minimum power
- [ ] Maybe an XP/level thing that let us win power for eaxh hardly earned lvl
**** TODO Continue to test factions and NPC mod
CLOCK: [2018-12-17 lun. 13:57]
CLOCK: [2018-12-17 lun. 04:02]--[2018-12-17 lun. 04:10] => 0:08
- [ ] Can set luacmd public (need he lua privillege)
- [-] Trying a new factions mod with rank etc...
https://github.com/agrecascino/factions
- former one moved to OLD
- [X] Must list available command (from chatcommands.lua)
- Add these commands to README.md
- [ ] Then, try to understand this power thing
- [X] Then, try to understand this power thing
It seems we earn a little amount per tick/death and attack
But the max power is set to 0
Tryin to set it to 10
- [ ] Always this *cannot claim any (more) parcel(s)* message
basically at 0.5 power
- [ ] Also find the craft for faction chest to test it
- [ ] The faction spawn seems to be broken
- [ ] We should be able to create a hoe fom the right

View File

@ -533,7 +533,7 @@ factions.register_command("free", {
infaction = false,
global_privileges = {"faction_admin"},
on_success = function(player, faction, pos, parcelpos, args)
local parcel_faction = factions.get_parcel_faction(parcelpos)
local parcel_faction = factions.get_parcel_faction(parcelpos)
if not parcel_faction then
send_error(player, "No claim at this position")
return false

View File

@ -80,7 +80,7 @@ function factions.Faction:new(faction)
--! @brief power of a faction (needed for parcel claiming)
power = 0.,
--! @brief maximum power of a faction
maxpower = 0.,
maxpower = 10.,
--! @brief power currently in use
usedpower = 0.,
--! @brief list of player names