diff options
Diffstat (limited to 'src/main/java/jp/plusplus/fbs/trouble/TroubleDamage.java')
| -rw-r--r-- | src/main/java/jp/plusplus/fbs/trouble/TroubleDamage.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/main/java/jp/plusplus/fbs/trouble/TroubleDamage.java b/src/main/java/jp/plusplus/fbs/trouble/TroubleDamage.java new file mode 100644 index 0000000..82707c7 --- /dev/null +++ b/src/main/java/jp/plusplus/fbs/trouble/TroubleDamage.java @@ -0,0 +1,27 @@ +package jp.plusplus.fbs.trouble;
+
+import jp.plusplus.fbs.Registry;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.util.DamageSource;
+import net.minecraft.world.World;
+import shift.sextiarysector.player.CustomPlayerData;
+import shift.sextiarysector.player.EntityPlayerManager;
+import shift.sextiarysector.player.MoistureStats;
+
+/**
+ * Created by plusplus_F on 2015/09/17.
+ */
+public class TroubleDamage extends TroubleBase {
+ public TroubleDamage() {
+ super(10);
+ }
+
+ @Override
+ public void done(World world, EntityPlayer player, Registry.BookData bd) {
+ int amount=2+(int)(18.0*bd.lv/50.0);
+ player.attackEntityFrom(new DamageSource("evil.0"), amount);
+ }
+
+ @Override
+ public String getMessage(){ return super.getMessage()+".damage"; }
+}
|
