Probably slightly more complex than that, as each string can be more than one Modifier (such as MP Regeneration).
It is starting to look like we may be missing some functions which would make this more straightforward.
Completed in r17848
Probably slightly more complex than that, as each string can be more than one Modifier (such as MP Regeneration).
It is starting to look like we may be missing some functions which would make this more straightforward.
Trigger an event that the CompactSidePane is listening for.Also one thing is bugging me. How do we force a refresh of Mafia CompactSidePane after absorbing an item ?
public void addCompactPane()
{
if ( this.sidepane != null )
{
return;
}
this.sidepane = new CompactSidePane();
this.sidepane.run();
this.refreshListener = new CharacterListener( this.sidepane );
CharacterListenerRegistry.addCharacterListener( this.refreshListener );
this.sidepane.setBackground( KoLGUIConstants.ENABLED_COLOR );
this.framePanel.add( this.sidepane, BorderLayout.WEST );
}
else if ( KoLCharacter.inNoobcore() )
{
limit = KoLCharacter.getAbsorbsLimit();
this.statusLabel[ count ].setText( " Abs: " );
this.statusValueLabel[ count ].setText( KoLCharacter.getAbsorbs() + " / " + limit );
count++;
}
Previous page. Thanks!I'm sure I read somewhere that you could absorb non-Standard items from inventory, but damned if I can find where. If still true, absorb cli command should now allow it with r17849.
boolean is_absorbable(item it) {
if($items[interesting clod of dirt, dirty bottlecap, discarded button] contains it) return true;
return (it.gift || it.tradeable) && it.discardable;
}
> ash my_absorbs()
Returned: 9
> absorb blue velvet cake
You gain 9 Adventures
You gain 8 Strongness
You gain 10 Mysteriousness
You gain 7 Roguishness
Absorbing blue velvet cake
You learned a new skill: Saccade Reflex
> ash my_absorbs()
Returned: 9
> ash $skill[saccade reflex].have_skill()
Returned: true
> ash item_drop_modifier()
Returned: 80.0
> refresh status
Name: Ezandora
Class: Gelatinous Noob
Lv: 8
HP: 34 / 58
MP: 28 / 48
Mus: 35 (30), tnp = 17
Mys: 28, tnp = 2
Mox: 85 (53), tnp = 54
Advs: 70
Meat: 10,008
Full: 0 / 0
Drunk: 0 / 0
Spleen: 0 / 0
> ash my_absorbs()
Returned: 10
> ash item_drop_modifier()
Returned: 120.0
r17853
Code:> absorb dirty bottlecap [dirty bottlecap] cannot be absorbed. > ash $item[dirty bottlecap].noob_skill Returned: none > ash $item[dirty bottlecap].available_amount() Returned: 1
"Dark Circles Under Your Eyes" gives spooky damage, not stench.