From 2b9da4a0f048300e14bf359b705a4c04c05064ba Mon Sep 17 00:00:00 2001 From: Jordan Byrne Date: Sun, 24 Dec 2017 21:45:03 +1000 Subject: + Added the Tesla Tower for base defence. --- .../api/damage/BaseCustomDamageSource.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/Java/gtPlusPlus/api/damage/BaseCustomDamageSource.java (limited to 'src/Java/gtPlusPlus/api/damage/BaseCustomDamageSource.java') diff --git a/src/Java/gtPlusPlus/api/damage/BaseCustomDamageSource.java b/src/Java/gtPlusPlus/api/damage/BaseCustomDamageSource.java new file mode 100644 index 0000000000..24348988d6 --- /dev/null +++ b/src/Java/gtPlusPlus/api/damage/BaseCustomDamageSource.java @@ -0,0 +1,22 @@ +package gtPlusPlus.api.damage; + +import net.minecraft.entity.Entity; +import net.minecraft.util.EntityDamageSourceIndirect; + +public class BaseCustomDamageSource extends EntityDamageSourceIndirect { + + public BaseCustomDamageSource(String name, Entity transmitter, Entity indirectSource) { + super(name, transmitter, indirectSource); + this.setDifficultyScaled(); + } + + /** + * Return whether this damage source will have its damage amount scaled based on the current difficulty. + */ + public boolean isDifficultyScaled() + { + return true; + } + + +} \ No newline at end of file -- cgit