package player.tasks; import gen.*; /** Reoffer all of the other Players Challenges at lower prices */ public class ReofferTask { /** Do the actual price lowering */ public ReofferTrans reoffer(OfferedChallenge ch, Config config){ return new ReofferTrans(ch.key, Math.max(ch.price - config.mindecr, 0)); } }