Skip to content

Commit

Permalink
Drop unused variables in RPG debug module
Browse files Browse the repository at this point in the history
  • Loading branch information
impaktor committed Jul 8, 2024
1 parent 962e0d8 commit 02ad628
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions data/modules/Debug/DebugRPG.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ local ui = require 'pigui'
local debugView = require 'pigui.views.debug'
local Commodities = require 'Commodities'
local amount = 1000
local selected = 0

local Legal = require "Legal"
local utils = require "utils"
Expand All @@ -16,7 +15,7 @@ local l = Lang.GetResource("ui-core")

-- build list of all crime types:
local crime_types = {}
for k, v in pairs(Legal.CrimeType) do
for k, _ in pairs(Legal.CrimeType) do
table.insert(crime_types, k)
end

Expand All @@ -41,7 +40,7 @@ end

debugView.registerTab("RPG-debug-view", function()
if Game.player == nil then return end
if not ui.beginTabItem("RPG") then return end
if not ui.beginTabItem("RPG") then return end
ui.text("State: " .. Game.player:GetFlightState())

-- Reputation
Expand Down Expand Up @@ -70,7 +69,6 @@ debugView.registerTab("RPG-debug-view", function()
end
ui.separator()

local rows = 10
if ui.collapsingHeader("Crime", {}) then

ui.text("ADD CRIMINAL CHARGES:")
Expand Down

0 comments on commit 02ad628

Please sign in to comment.