Remove all banner code.

This commit is contained in:
Coder12a 2018-10-18 00:36:28 -05:00
parent 5e3de4e0af
commit 9131bb4b22
2 changed files with 3 additions and 16 deletions

View File

@ -7,8 +7,6 @@ Mod for handling in game factions and reputation.
Redo the parcel attack system. Redo the parcel attack system.
Remove banner code.
Add command to show or hide all parcel position locations as markers. Add command to show or hide all parcel position locations as markers.
Money. Money.
@ -27,4 +25,6 @@ Complete the diplomacy system.
Make claim's depth not go to high or low. Or make it act like a protection block where you have to claim land upwards and downwards. Make claim's depth not go to high or low. Or make it act like a protection block where you have to claim land upwards and downwards.
Add a show claim command (show small entity boxes like in protection mod). Add a show claim command (show small entity boxes like in protection mod).
Remove banner code.

View File

@ -965,19 +965,6 @@ minetest.is_protected = function(pos, player)
local parcelpos = factions.get_parcel_pos(pos) local parcelpos = factions.get_parcel_pos(pos)
local parcel_faction = factions.get_parcel_faction(parcelpos) local parcel_faction = factions.get_parcel_faction(parcelpos)
local player_faction = factions.get_player_faction(player) local player_faction = factions.get_player_faction(player)
-- check if wielding death banner
local player_info = minetest.get_player_by_name(player)
if not player_info then
if parcel_faction then
return true
else
return false
end
end
local player_wield = player_info:get_wielded_item()
if player_wield:get_name() == "banners:death_banner" and player_faction then --todo: check for allies, maybe for permissions
return not player_faction:has_permission(player, "claim") and player_faction.power > 0 and not parcel_faction.is_admin
end
-- no faction -- no faction
if not parcel_faction then if not parcel_faction then
return default_is_protected(pos, player) return default_is_protected(pos, player)