mirror of
https://github.com/ComfyFactory/ComfyFactorio.git
synced 2025-01-04 00:15:45 +02:00
Review fixes.
* Clearing corpses remains trusted only. * Remove spurious debugging code.
This commit is contained in:
parent
75864b385c
commit
26f34ea8d5
@ -814,8 +814,6 @@ local function on_init()
|
||||
rpg_table.personal_tax_rate = 0
|
||||
-- rpg_table.enable_mana = true
|
||||
-- setup_magic()
|
||||
local misc = require 'utils.commands.misc'
|
||||
misc.set_always_allow_clear_corpses(true)
|
||||
|
||||
local T = MapInfo.Pop_info()
|
||||
T.localised_category = 'dungeons_tiered'
|
||||
|
@ -59,7 +59,6 @@ end
|
||||
|
||||
local function chest_is_valid(chest)
|
||||
if this.dungeons_initial_level ~= nil then
|
||||
-- game.print('ERIC cpos ' .. serpent.line(chest.position))
|
||||
if chest.position.x == -3.5 or chest.position.x == 4.5 then
|
||||
if chest.surface.index == this.dungeons_initial_level then
|
||||
if chest.position.y == 4.5 then
|
||||
|
@ -359,7 +359,7 @@ local function clear_corpses(cmd)
|
||||
return
|
||||
end
|
||||
local p = player.print
|
||||
if not trusted[player.name] and not this.always_allow_clear_corpses then
|
||||
if not trusted[player.name] then
|
||||
if not player.admin then
|
||||
p('[ERROR] Only admins and trusted weebs are allowed to run this command!', Color.fail)
|
||||
return
|
||||
@ -499,10 +499,6 @@ function Public.reset()
|
||||
this.players = {}
|
||||
end
|
||||
|
||||
function Public.set_always_allow_clear_corpses(val)
|
||||
this.always_allow_clear_corpses = val
|
||||
end
|
||||
|
||||
Event.add(
|
||||
defines.events.on_player_joined_game,
|
||||
function(event)
|
||||
|
Loading…
Reference in New Issue
Block a user