/** * Bean for storing data to display on the character page for Fighting Fantasy ruleset. * * @param character the character * @param handler the {@link SorCharacter} to use for obtaining the characters' properties */ public SorCharacterPageData(final SorCharacter character, final FfCharacterHandler handler) { super(character, handler); usedLibra = character.isUsedLibra(); final Iterator<Item> itemIterator = getItems().iterator(); while (itemIterator.hasNext()) { final Item item = itemIterator.next(); if (item.getItemType() == ItemType.curseSickness) { curses.add(item); itemIterator.remove(); } } commandActive = character.getCommandView() != null && character.getCommandView().getViewName().startsWith("sorFight"); wizard = character.isWizard(); vikKnown = handler.getItemHandler().hasItem(character, "4012"); }