bcdice/BCDice

View on GitHub
lib/bcdice/game_system/MetalHeadExtream.rb

Summary

Maintainability
F
1 wk
Test Coverage
A
98%

File MetalHeadExtream.rb has 828 lines of code (exceeds 250 allowed). Consider refactoring.
Open

module BCDice
  module GameSystem
    class MetalHeadExtream < Base
      # ゲームシステムの識別子
      ID = 'MetalHeadExtream'
Severity: Major
Found in lib/bcdice/game_system/MetalHeadExtream.rb - About 1 day to fix

    Method get_hit_table has 313 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          def get_hit_table(hitPart, roc)
            case hitPart
            when 'HU'
              name = '命中部位表:人間'
              table = [
    Severity: Major
    Found in lib/bcdice/game_system/MetalHeadExtream.rb - About 1 day to fix

      Method get_damageEffect_table has 86 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            def get_damageEffect_table(hitPart, damageStage)
              damageInfos = [['L', '(LW)'],
                             ['M', '(MW)'],
                             ['H', '(HW)'],
                             ['O', '(MO)']]
      Severity: Major
      Found in lib/bcdice/game_system/MetalHeadExtream.rb - About 3 hrs to fix

        Method get_accident_table has 61 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

              def get_accident_table(damageType, roc)
                case damageType
                when 'G'
                  name = '格闘アクシデント表'
                  table = [
        Severity: Major
        Found in lib/bcdice/game_system/MetalHeadExtream.rb - About 2 hrs to fix

          Method eval_game_system_specific_command has 53 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                def eval_game_system_specific_command(command)
                  text =
                    case command.upcase
          
                    when %r{([AS])R(\d+)(([*/]\d+)*)?(((@|A|L)\d+)*)(!M)?$}i
          Severity: Major
          Found in lib/bcdice/game_system/MetalHeadExtream.rb - About 2 hrs to fix

            Method get_mechanicAccident_table has 39 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                  def get_mechanicAccident_table(locationType, roc, correction)
                    case locationType
                    when 'A'
                      name = '空中メカニック事故表'
                      table = [
            Severity: Minor
            Found in lib/bcdice/game_system/MetalHeadExtream.rb - About 1 hr to fix

              Method get_SUV_table has 38 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                    def get_SUV_table(armorGrade, damage)
                      name = '戦闘結果表'
                      table = [
                        [0, 1, 6, 16, 26, 36],
                        [0, 1, 6, 26, 36, 46],
              Severity: Minor
              Found in lib/bcdice/game_system/MetalHeadExtream.rb - About 1 hr to fix

                Method get_strategyEvent_chart has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                      def get_strategyEvent_chart
                        name = 'ストラテジーイベントチャート'
                        table = [
                          [50, '特に何事もなかった。'],
                          [53, 'スコール。種別:レーザーを装備している部隊の戦力はこのターン半減する。この効果は重複しない。'],
                Severity: Minor
                Found in lib/bcdice/game_system/MetalHeadExtream.rb - About 1 hr to fix

                  Method checkRoll has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                        def checkRoll(rollText, target, modify, accidentValue, advancedRoll, luckPoint, isMuse)
                  Severity: Major
                  Found in lib/bcdice/game_system/MetalHeadExtream.rb - About 50 mins to fix

                    Method get_roll_parameter has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                          def get_roll_parameter(accident, advanced, luck, marker, value)
                    Severity: Minor
                    Found in lib/bcdice/game_system/MetalHeadExtream.rb - About 35 mins to fix

                      Method getRollResultTextAndSuccesValue has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                            def getRollResultTextAndSuccesValue(dice, advancedRoll, rollTarget, accidentValue, isMuse)
                      Severity: Minor
                      Found in lib/bcdice/game_system/MetalHeadExtream.rb - About 35 mins to fix

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'S'
                                  name = '射撃/投擲アクシデント表'
                                  table = [
                                    [1, 'ささいなミス。その攻撃は失敗する。'],
                                    [2, 'ささいなミス。その攻撃は失敗する。'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'HE'
                                  name = '命中部位表:ヘリ'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'BI'
                                  name = '命中部位表:自転車'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'TH'
                                  name = '命中部位表:可変・重コンバットシェル'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'AM'
                                  name = '命中部位表:オートモビル'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'SC'
                                  name = '命中部位表:シェルキャリア'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'BO'
                                  name = '命中部位表:ボート'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'IN'
                                  name = '命中部位表:インセクター'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'PT'
                                  name = '命中部位表:ポケットタンク'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'AI'
                                  name = '命中部位表:エアクラフト'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'E'
                                  name = '電子攻撃アクシデント表'
                                  table = [
                                    [1, 'ショック。攻撃は失敗する。'],
                                    [2, 'ショック。攻撃は失敗する。'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'HT'
                                  name = '命中部位表:ホバータンク'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'GD'
                                  name = '命中部位表:ガンドック'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'BK'
                                  name = '命中部位表:バイク'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'BG'
                                  name = '命中部位表:バギー'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'TA'
                                  name = '命中部位表:戦車'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'HC'
                                  name = '命中部位表:ホバークラフト'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'G'
                                  name = '格闘アクシデント表'
                                  table = [
                                    [1, '体勢を崩す。その攻撃は失敗する。'],
                                    [2, '体勢を崩す。その攻撃は失敗する。'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'M'
                                  name = '心理攻撃アクシデント表'
                                  table = [
                                    [1, '集中失敗。攻撃は失敗する。'],
                                    [2, '集中失敗。攻撃は失敗する。'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'AC'
                                  name = '命中部位表:装甲車'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'BT'
                                  name = '命中部位表:バトルトレーラー'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'HU'
                                  name = '命中部位表:人間'
                                  table = [
                                    [1, '胴部(クリティカル)'],
                                    [2, '頭部'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'WA'
                                  name = '命中部位表:ワゴン'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'TR'
                                  name = '命中部位表:トレーラー'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'VT'
                                  name = '命中部位表:VTOL'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 414..427
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        Similar blocks of code found in 26 locations. Consider refactoring.
                        Open

                                when 'CS'
                                  name = '命中部位表:通常・格闘型コンバットシェル'
                                  table = [
                                    [1, '本体(クリティカル)'],
                                    [2, '本体'],
                        Severity: Major
                        Found in lib/bcdice/game_system/MetalHeadExtream.rb and 25 other locations - About 40 mins to fix
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 218..231
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 232..245
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 246..259
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 260..273
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 274..287
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 288..301
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 302..315
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 316..329
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 330..343
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 344..357
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 358..371
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 372..385
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 386..399
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 400..413
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 428..441
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 442..455
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 456..469
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 470..483
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 484..497
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 498..511
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 512..525
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 692..705
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 706..719
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 720..733
                        lib/bcdice/game_system/MetalHeadExtream.rb on lines 734..747

                        Duplicated Code

                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                        Tuning

                        This issue has a mass of 37.

                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                        Refactorings

                        Further Reading

                        There are no issues that match your filters.

                        Category
                        Status