#74 - Prospect Delay

This commit is contained in:
Rodgerwilco 2012-04-28 00:02:49 -07:00
parent a230c00245
commit 78030c3c6e

View File

@ -2,6 +2,7 @@ package org.moparscape.msc.gs.plugins.plugs.skills;
import org.moparscape.msc.config.Formulae; import org.moparscape.msc.config.Formulae;
import org.moparscape.msc.gs.Instance; import org.moparscape.msc.gs.Instance;
import org.moparscape.msc.gs.event.MiniEvent;
import org.moparscape.msc.gs.event.ShortEvent; import org.moparscape.msc.gs.event.ShortEvent;
import org.moparscape.msc.gs.event.SingleEvent; import org.moparscape.msc.gs.event.SingleEvent;
import org.moparscape.msc.gs.model.Bubble; import org.moparscape.msc.gs.model.Bubble;
@ -61,8 +62,14 @@ public class Mining implements ObjectListener {
} }
final InvItem ore = new InvItem(def.getOreId()); final InvItem ore = new InvItem(def.getOreId());
if (owner.getClick() == 1) { if (owner.getClick() == 1) {
owner.getActionSender().sendMessage( Instance.getDelayedEventHandler()
"This rock contains " + ore.getDef().getName() + "."); .add(new MiniEvent(owner, 1000) {
@Override
public void action() {
owner.getActionSender().sendMessage(
"This rock contains " + ore.getDef().getName() + ".");
}
});
return; return;
} }