Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
126 additions
and
71 deletions.
There are no files selected for viewing
21 changes: 0 additions & 21 deletions
21
...java/fr/neatmonster/nocheatplus/actions/types/penalty/fight/FightPenaltyDivideDamage.java
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
...va/fr/neatmonster/nocheatplus/actions/types/penalty/fight/FightPenaltyMultiplyDamage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package fr.neatmonster.nocheatplus.actions.types.penalty.fight; | ||
|
||
import org.bukkit.event.entity.EntityDamageEvent; | ||
|
||
import fr.neatmonster.nocheatplus.compat.BridgeHealth; | ||
|
||
/** | ||
* Multiply the final damage by a set amount. | ||
* | ||
* @author asofold | ||
* | ||
*/ | ||
public class FightPenaltyMultiplyDamage extends FightPenaltyEntityDamage { | ||
|
||
private final double multiplier; | ||
|
||
public FightPenaltyMultiplyDamage(final double multiplier) { | ||
super(); | ||
this.multiplier = multiplier; | ||
} | ||
|
||
@Override | ||
protected void applyGenericEffects(final EntityDamageEvent event) { | ||
BridgeHealth.multiplyFinalDamage(event, multiplier); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.