(LoadContext context, Race race)
| 99 | } |
| 100 | |
| 101 | @Override |
| 102 | public boolean process(LoadContext context, Race race) |
| 103 | { |
| 104 | Formula levelAdjFormula = race.getSafe(FormulaKey.LEVEL_ADJUSTMENT); |
| 105 | if (levelAdjFormula.isStatic()) |
| 106 | { |
| 107 | Number la = levelAdjFormula.resolveStatic(); |
| 108 | ChallengeRating cr = race.get(ObjectKey.CHALLENGE_RATING); |
| 109 | if ((la.floatValue() != 0) && cr == null) |
| 110 | { |
| 111 | race.put(ObjectKey.CHALLENGE_RATING, new ChallengeRating(FormulaFactory.getFormulaFor(la.toString()))); |
| 112 | } |
| 113 | } |
| 114 | //else Nothing to do here, matches 5.14 behavior |
| 115 | //TODO Should there at LEAST be a message in an else?? |
| 116 | return true; |
| 117 | } |
| 118 | |
| 119 | @Override |
| 120 | public Class<Race> getDeferredTokenClass() |
nothing calls this directly
no test coverage detected