1package com.osroyale.game.world.entity.combat.effect.impl;
3import com.osroyale.game.world.entity.combat.effect.CombatEffect;
4import com.osroyale.game.world.entity.combat.hit.Hit;
5import com.osroyale.game.world.entity.combat.hit.HitIcon;
6import com.osroyale.game.world.entity.combat.hit.Hitsplat;
7import com.osroyale.game.world.entity.mob.Mob;
8import com.osroyale.game.world.entity.mob.npc.Npc;
9import com.osroyale.game.world.entity.mob.player.Player;
10import com.osroyale.game.world.items.Item;
11import com.osroyale.game.world.items.containers.equipment.Equipment;
12import com.osroyale.net.packet.out.SendMessage;
13import com.osroyale.net.packet.out.SendPoison;
56 if (mob.isVenomed()) {
60 if (mob.isNpc() && mob.getNpc().definition.hasVenomImmunity()) {
64 if (mob.isPlayer() && mob.getPlayer().equipment
66 .filter(helm -> helm.getId() == 13197 || helm.getId() == 13199 || helm.getId() == 12931)
72 Player player = mob.getPlayer();
73 if (player.getVenomImmunity().get() > 0 || mob.isDead())
75 player.send(
new SendMessage(
"You have been venomed!"));
78 mob.getVenomDamage().set(6);
84 boolean remove = !mob.isVenomed() || mob.isDead();
85 if (
remove && mob.isPlayer()) {
94 if (mob.getVenomDamage().get() < 20)
100 if (mob.isVenomed() && mob.isPlayer()) {
103 return mob.isVenomed();
106 public static boolean isVenomous(
Npc npc) {
107 return npc.id == 2042 || npc.id == 2043 || npc.id == 2044;
110 public static boolean isVenomous(Item weapon) {
111 return weapon.matchesId(12_926) || weapon.matchesId(12_904) || weapon.matchesId(12_899);
boolean removeOn(Mob mob)