Skip to content

Commit

Permalink
Cyanide changes (#78)
Browse files Browse the repository at this point in the history
* Cyanide Changes

* i may be slightly stupid

* ffs

* feat: slightly increase duration to allow the first notification to fire

---------

Co-authored-by: bruberu <[email protected]>
  • Loading branch information
Lrdmtns and bruberu authored Sep 10, 2024
1 parent 5148a49 commit f0970f3
Show file tree
Hide file tree
Showing 2 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

0 comments on commit f0970f3

Please sign in to comment.