Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
bruberu committed Sep 14, 2024
2 parents 5c24e34 + aa79aad commit 31aa65d
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/gregtechfoodoption/CommonProxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void onPostLoad() {
MinecraftForge.addGrassSeed(GTFOMetaItem.UNKNOWN_SEED.getStackForm(), 5);

LacingEntry.LACING_REGISTRY.register(0, "cyanide", new LacingEntry(GTFOMaterialHandler.SodiumCyanide.getItemStack(),
new PotionEffect(CyanidePoisoningPotion.INSTANCE, 500, 0),
new PotionEffect(CyanidePoisoningPotion.INSTANCE, 1300, 0),
"5dkcap/2/4/"));
LacingEntry.LACING_REGISTRY.register(1, "antischizo", new LacingEntry(GTFOMaterialHandler.LithiumCarbonate.getItemStack(),
new PotionEffect(AntiSchizoPotion.INSTANCE, 1000, 0),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,19 @@ public boolean isReady(int duration, int amplifier) {
public void performEffect(EntityLivingBase entity, int amplifier) {
int phase = entity.getActivePotionEffect(this).getDuration();

if (phase == 400) {
if (phase == 1200) {
if (entity.world.isRemote)
entity.sendMessage(new TextComponentTranslation("gregtechfoodoption.cyanide.1"));
entity.addPotionEffect(new PotionEffect(MobEffects.NAUSEA, 1000, 9));
entity.addPotionEffect(new PotionEffect(MobEffects.WEAKNESS, 1000, 3));
} else if (phase == 300) {
if (entity.world.isRemote)
entity.sendMessage(new TextComponentTranslation("gregtechfoodoption.cyanide.2"));
} else if (phase == 160) {
entity.addPotionEffect(new PotionEffect(MobEffects.BLINDNESS, 1000, 0));
} else if (phase < 200 && phase % 5 == 0) {
entity.attackEntityFrom(GTFODamageSources.CYANIDE, (float) Math.pow((double) (200 - phase) / 80, 2));
entity.hurtResistantTime = 0; // No saving you :)
entity.hurtResistantTime = 0; // No saving you :) idk they might you dont know - lrdmtns
} else if (phase < 100) {
if (entity.world.isRemote && entity.isEntityAlive())
entity.sendMessage(new TextComponentTranslation("gregtechfoodoption.cyanide.3"));
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 31aa65d

Please sign in to comment.