Set the important info about a Race @param name The race name @return The race (which has also been added to global storage)
(final String name)
| 340 | * @return The race (which has also been added to global storage) |
| 341 | */ |
| 342 | public static Race makeRace(final String name) |
| 343 | { |
| 344 | final Race aRace = new Race(); |
| 345 | aRace.setName(name); |
| 346 | aRace.put(StringKey.KEY_NAME, ("KEY_" + name)); |
| 347 | |
| 348 | LoadContext context = Globals.getContext(); |
| 349 | final BonusObj bon = Bonus.newBonus(context, "FEAT|POOL|1"); |
| 350 | aRace.addToListFor(ListKey.BONUS, bon); |
| 351 | |
| 352 | context.getReferenceContext().importObject(aRace); |
| 353 | return aRace; |
| 354 | } |
| 355 | |
| 356 | /** |
| 357 | * Set the important info about a Class |
no test coverage detected