Anti-comments sweep!
This commit is contained in:
parent
e6a10f3f06
commit
dea1f87078
454 changed files with 23594 additions and 26739 deletions
|
@ -1,30 +1,27 @@
|
|||
package WayofTime.alchemicalWizardry.common.rituals;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import WayofTime.alchemicalWizardry.api.harvest.HarvestRegistry;
|
||||
import WayofTime.alchemicalWizardry.api.rituals.IMasterRitualStone;
|
||||
import WayofTime.alchemicalWizardry.api.rituals.RitualComponent;
|
||||
import WayofTime.alchemicalWizardry.api.rituals.RitualEffect;
|
||||
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
||||
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.potion.Potion;
|
||||
import net.minecraft.potion.PotionEffect;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.IPlantable;
|
||||
import WayofTime.alchemicalWizardry.api.harvest.HarvestRegistry;
|
||||
import WayofTime.alchemicalWizardry.api.rituals.IMasterRitualStone;
|
||||
import WayofTime.alchemicalWizardry.api.rituals.RitualComponent;
|
||||
import WayofTime.alchemicalWizardry.api.rituals.RitualEffect;
|
||||
import WayofTime.alchemicalWizardry.api.soulNetwork.LifeEssenceNetwork;
|
||||
import WayofTime.alchemicalWizardry.api.soulNetwork.SoulNetworkHandler;
|
||||
import WayofTime.alchemicalWizardry.common.spell.complex.effect.SpellHelper;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class RitualEffectHarvest extends RitualEffect
|
||||
{
|
||||
@Override
|
||||
public void performEffect(IMasterRitualStone ritualStone)
|
||||
{
|
||||
String owner = ritualStone.getOwner();
|
||||
@Override
|
||||
public void performEffect(IMasterRitualStone ritualStone)
|
||||
{
|
||||
String owner = ritualStone.getOwner();
|
||||
|
||||
int currentEssence = SoulNetworkHandler.getCurrentEssence(owner);
|
||||
World world = ritualStone.getWorld();
|
||||
|
@ -49,23 +46,23 @@ public class RitualEffectHarvest extends RitualEffect
|
|||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Block block = world.getBlock(x, y-1, z);
|
||||
|
||||
Block block = world.getBlock(x, y - 1, z);
|
||||
int flag = 0;
|
||||
int range = this.getRadiusForModifierBlock(block);
|
||||
int vertRange = 4;
|
||||
int vertRange = 4;
|
||||
|
||||
for (int i = -range; i <= range; i++)
|
||||
{
|
||||
for (int j = -vertRange; j <= vertRange; j++)
|
||||
{
|
||||
for(int k = -range; k<=range; k++)
|
||||
{
|
||||
if(HarvestRegistry.harvestBlock(world, x + i, y + j, z + k) && flag < maxCount)
|
||||
for (int k = -range; k <= range; k++)
|
||||
{
|
||||
if (HarvestRegistry.harvestBlock(world, x + i, y + j, z + k) && flag < maxCount)
|
||||
{
|
||||
flag++;
|
||||
flag++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -74,70 +71,70 @@ public class RitualEffectHarvest extends RitualEffect
|
|||
SoulNetworkHandler.syphonFromNetwork(owner, this.getCostPerRefresh() * Math.min(maxCount, flag));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCostPerRefresh()
|
||||
{
|
||||
return 20;
|
||||
}
|
||||
@Override
|
||||
public int getCostPerRefresh()
|
||||
{
|
||||
return 20;
|
||||
}
|
||||
|
||||
public int getRadiusForModifierBlock(Block block)
|
||||
{
|
||||
if(block == null)
|
||||
{
|
||||
return 4;
|
||||
}
|
||||
|
||||
if(block == Blocks.diamond_block)
|
||||
{
|
||||
return 15;
|
||||
}
|
||||
|
||||
if(block == Blocks.gold_block)
|
||||
{
|
||||
return 10;
|
||||
}
|
||||
|
||||
if(block == Blocks.iron_block)
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
return 4;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<RitualComponent> getRitualComponentList()
|
||||
{
|
||||
ArrayList<RitualComponent> harvestRitual = new ArrayList();
|
||||
public int getRadiusForModifierBlock(Block block)
|
||||
{
|
||||
if (block == null)
|
||||
{
|
||||
return 4;
|
||||
}
|
||||
|
||||
if (block == Blocks.diamond_block)
|
||||
{
|
||||
return 15;
|
||||
}
|
||||
|
||||
if (block == Blocks.gold_block)
|
||||
{
|
||||
return 10;
|
||||
}
|
||||
|
||||
if (block == Blocks.iron_block)
|
||||
{
|
||||
return 6;
|
||||
}
|
||||
|
||||
return 4;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<RitualComponent> getRitualComponentList()
|
||||
{
|
||||
ArrayList<RitualComponent> harvestRitual = new ArrayList();
|
||||
|
||||
harvestRitual.add(new RitualComponent(1, 0, 1, RitualComponent.DUSK));
|
||||
harvestRitual.add(new RitualComponent(1, 0, -1, RitualComponent.DUSK));
|
||||
harvestRitual.add(new RitualComponent(-1, 0, -1, RitualComponent.DUSK));
|
||||
harvestRitual.add(new RitualComponent(-1, 0, 1, RitualComponent.DUSK));
|
||||
harvestRitual.add(new RitualComponent(2, 0, 0, RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(-2, 0, 0, RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(0, 0, 2, RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(0, 0, -2, RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(3, 0, 1, RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(3, 0, -1, RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(-3, 0, 1, RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(-3, 0, -1, RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(1, 0, 3, RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(-1, 0, 3, RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(1, 0, -3, RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(-1, 0, -3, RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(2, 0, 3, RitualComponent.WATER));
|
||||
harvestRitual.add(new RitualComponent(3, 0, 2, RitualComponent.WATER));
|
||||
harvestRitual.add(new RitualComponent(2, 0, -3, RitualComponent.WATER));
|
||||
harvestRitual.add(new RitualComponent(-3, 0, 2, RitualComponent.WATER));
|
||||
harvestRitual.add(new RitualComponent(-2, 0, 3, RitualComponent.WATER));
|
||||
harvestRitual.add(new RitualComponent(3, 0, -2, RitualComponent.WATER));
|
||||
harvestRitual.add(new RitualComponent(-2, 0, -3, RitualComponent.WATER));
|
||||
harvestRitual.add(new RitualComponent(-3, 0, -2, RitualComponent.WATER));
|
||||
|
||||
harvestRitual.add(new RitualComponent(1,0,1,RitualComponent.DUSK));
|
||||
harvestRitual.add(new RitualComponent(1,0,-1,RitualComponent.DUSK));
|
||||
harvestRitual.add(new RitualComponent(-1,0,-1,RitualComponent.DUSK));
|
||||
harvestRitual.add(new RitualComponent(-1,0,1,RitualComponent.DUSK));
|
||||
harvestRitual.add(new RitualComponent(2,0,0,RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(-2,0,0,RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(0,0,2,RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(0,0,-2,RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(3,0,1,RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(3,0,-1,RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(-3,0,1,RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(-3,0,-1,RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(1,0,3,RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(-1,0,3,RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(1,0,-3,RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(-1,0,-3,RitualComponent.EARTH));
|
||||
harvestRitual.add(new RitualComponent(2,0,3,RitualComponent.WATER));
|
||||
harvestRitual.add(new RitualComponent(3,0,2,RitualComponent.WATER));
|
||||
harvestRitual.add(new RitualComponent(2,0,-3,RitualComponent.WATER));
|
||||
harvestRitual.add(new RitualComponent(-3,0,2,RitualComponent.WATER));
|
||||
harvestRitual.add(new RitualComponent(-2,0,3,RitualComponent.WATER));
|
||||
harvestRitual.add(new RitualComponent(3,0,-2,RitualComponent.WATER));
|
||||
harvestRitual.add(new RitualComponent(-2,0,-3,RitualComponent.WATER));
|
||||
harvestRitual.add(new RitualComponent(-3,0,-2,RitualComponent.WATER));
|
||||
|
||||
|
||||
return harvestRitual;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue