Skip to content

Commit b113526

Browse files
committed
accidentally kept some troubleshooting logging
1 parent 0c81e39 commit b113526

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

alchemy/base/alchemy.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -866,8 +866,6 @@ function M.SetQuality(user, cauldron)
866866
end
867867

868868
function M.GemDustBottleCauldron(id, emptyBottle)
869-
log("id: "..tostring(id))
870-
log("emptyBottle: "..tostring(emptyBottle))
871869
for _, selected in pairs(cauldronsAndBottles) do
872870
if selected.powder == id or selected.gem == id or selected.cauldron == id or selected.bottle == id then
873871
if emptyBottle and selected.bombSalve and selected.bombSalve.empty == emptyBottle then

alchemy/base/recipe_creation.lua

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ local function CallBrewFunctionAndDeleteItem(user,deleteItem, deleteId,cauldron)
897897
end
898898

899899
local function StartBrewing(user,recipeTable,ltstate,checkVar)
900-
log("1")
900+
901901
local cauldron = alchemy.GetCauldronInfront(user)
902902
local tool = alchemy.getAlchemyTool(user)
903903

@@ -909,7 +909,7 @@ local function StartBrewing(user,recipeTable,ltstate,checkVar)
909909
if not cauldron then -- security check
910910
return
911911
end
912-
log("2")
912+
913913
if licence.licence(user) then --checks if user is citizen or has a licence
914914
return -- avoids crafting if user is neither citizen nor has a licence
915915
end
@@ -918,31 +918,28 @@ local function StartBrewing(user,recipeTable,ltstate,checkVar)
918918
user:inform("Du brichst deine Arbeit vor dem "..USER_POSITION_LIST[user.id]..". Arbeitsschritt ab.", "You abort your work before the "..USER_POSITION_LIST[user.id].." work step.")
919919
return
920920
end
921-
log("3")
921+
922922
if not checkVar and ltstate==Action.none then
923923
local callback = function(dialog)
924924
local success = dialog:getSuccess()
925925
if success then
926926
local selected = dialog:getSelectedIndex()+1
927927
USER_POSITION_LIST[user.id] = selected
928-
log("7")
929928
StartBrewing(user, recipeTable,ltstate,true)
930929
end
931930
end
932931

933932
local dialog = SelectionDialog(common.GetNLS(user,"Rezept","Recipe"), common.GetNLS(user,"Wähle die Zutat aus, ab welcher das Rezept abgearbeitet werden soll.","Select the ingredient which you want to start to brew from."), callback)
934-
log("4")
933+
935934
dialog:setCloseOnMove()
936935

937936
local counter = 0
938937

939938
for _, ingredient in ipairs(recipeTable) do
940939
counter = counter + 1
941-
log("5")
942940
if ingredient.key == "bottling" then
943941
dialog:addOption(ingredient.value, common.GetNLS(user,counter..". Abfüllen", counter..". Bottling"))
944942
elseif ingredient.key == "stock" then
945-
log("6")
946943
dialog:addOption(331, common.GetNLS(user,counter..". Sud", counter..". Stock"))
947944
elseif ingredient.key == "essenceBrew" then
948945
local _, essenceBrewGraphic = alchemy.getEssenceBrewGraphics(ingredient.value)

0 commit comments

Comments
 (0)