aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/api/damage/BaseCustomDamageSource.java
diff options
context:
space:
mode:
authorJordan Byrne <draknyte1@hotmail.com>2017-12-24 21:45:03 +1000
committerJordan Byrne <draknyte1@hotmail.com>2017-12-24 21:45:03 +1000
commit2b9da4a0f048300e14bf359b705a4c04c05064ba (patch)
tree565681007584bb5a527d3496dd14dfaaec87582e /src/Java/gtPlusPlus/api/damage/BaseCustomDamageSource.java
parentecf908e98ccee72a713091e8ab547e35a41d7436 (diff)
downloadGT5-Unofficial-2b9da4a0f048300e14bf359b705a4c04c05064ba.tar.gz
GT5-Unofficial-2b9da4a0f048300e14bf359b705a4c04c05064ba.tar.bz2
GT5-Unofficial-2b9da4a0f048300e14bf359b705a4c04c05064ba.zip
+ Added the Tesla Tower for base defence.
Diffstat (limited to 'src/Java/gtPlusPlus/api/damage/BaseCustomDamageSource.java')
-rw-r--r--src/Java/gtPlusPlus/api/damage/BaseCustomDamageSource.java22
1 files changed, 22 insertions, 0 deletions
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