From 0d34af972e57f8171df6ffc1a3db8c5b1b0c5d46 Mon Sep 17 00:00:00 2001 From: AndreFaramir Date: Tue, 5 Jun 2012 13:03:35 -0300 Subject: [PATCH] fix on ruleviolation reason indexes --- modules/game_ruleviolation/ruleviolation.lua | 43 ++++++++++---------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/modules/game_ruleviolation/ruleviolation.lua b/modules/game_ruleviolation/ruleviolation.lua index 8e406e9a..b85d8a03 100644 --- a/modules/game_ruleviolation/ruleviolation.lua +++ b/modules/game_ruleviolation/ruleviolation.lua @@ -2,27 +2,27 @@ RuleViolation = {} -- private variables local rvreasons = {} -rvreasons[0] = tr("1a) Offensive Name") -rvreasons[1] = tr("1b) Invalid Name Format") -rvreasons[2] = tr("1c) Unsuitable Name") -rvreasons[3] = tr("1d) Name Inciting Rule Violation") -rvreasons[4] = tr("2a) Offensive Statement") -rvreasons[5] = tr("2b) Spamming") -rvreasons[6] = tr("2c) Illegal Advertising") -rvreasons[7] = tr("2d) Off-Topic Public Statement") -rvreasons[8] = tr("2e) Non-English Public Statement") -rvreasons[9] = tr("2f) Inciting Rule Violation") -rvreasons[10] = tr("3a) Bug Abuse") -rvreasons[11] = tr("3b) Game Weakness Abuse") -rvreasons[12] = tr("3c) Using Unofficial Software to Play") -rvreasons[13] = tr("3d) Hacking") -rvreasons[14] = tr("3e) Multi-Clienting") -rvreasons[15] = tr("3f) Account Trading or Sharing") -rvreasons[16] = tr("4a) Threatening Gamemaster") -rvreasons[17] = tr("4b) Pretending to Have Influence on Rule Enforcement") -rvreasons[18] = tr("4c) False Report to Gamemaster") -rvreasons[19] = tr("Destructive Behaviour") -rvreasons[20] = tr("Excessive Unjustified Player Killing") +rvreasons[1] = tr("1a) Offensive Name") +rvreasons[2] = tr("1b) Invalid Name Format") +rvreasons[3] = tr("1c) Unsuitable Name") +rvreasons[4] = tr("1d) Name Inciting Rule Violation") +rvreasons[5] = tr("2a) Offensive Statement") +rvreasons[6] = tr("2b) Spamming") +rvreasons[7] = tr("2c) Illegal Advertising") +rvreasons[8] = tr("2d) Off-Topic Public Statement") +rvreasons[9] = tr("2e) Non-English Public Statement") +rvreasons[10] = tr("2f) Inciting Rule Violation") +rvreasons[11] = tr("3a) Bug Abuse") +rvreasons[12] = tr("3b) Game Weakness Abuse") +rvreasons[13] = tr("3c) Using Unofficial Software to Play") +rvreasons[14] = tr("3d) Hacking") +rvreasons[15] = tr("3e) Multi-Clienting") +rvreasons[16] = tr("3f) Account Trading or Sharing") +rvreasons[17] = tr("4a) Threatening Gamemaster") +rvreasons[18] = tr("4b) Pretending to Have Influence on Rule Enforcement") +rvreasons[19] = tr("4c) False Report to Gamemaster") +rvreasons[20] = tr("Destructive Behaviour") +rvreasons[21] = tr("Excessive Unjustified Player Killing") local rvactions = {} rvactions[0] = tr("Notation") @@ -48,6 +48,7 @@ function RuleViolation.loadReasons() local actions = g_game.getGMActions() for reason, actionFlags in pairs(actions) do local label = createWidget('RVListLabel', reasonsTextList) + print("LOAD REASON: " .. tostring(reason) .. " " .. tostring(actionFlags)) label:setText(rvreasons[reason]) label.reasonId = reason label.actionFlags = actionFlags