Example #1
0
        public override void PostUpdateEquips()
        {
            this.updateBuffEffects();
            this.updateItemEffects();

            this.generalPostUpdateEquips();
            OrchidModShamanHelper.shamanPostUpdateEquips(player, this, mod);
            OrchidModAlchemistHelper.alchemistPostUpdateEquips(player, this, mod);
            OrchidModGamblerHelper.gamblerPostUpdateEquips(player, this, mod);
            OrchidModDancerHelper.dancerPostUpdateEquips(player, this, mod);

            Mod thoriumMod = OrchidMod.ThoriumMod;

            if (thoriumMod != null)
            {
                object result = thoriumMod.Call("GetAllCrit", player);
                if (result is int thoriumCrit && thoriumCrit > 0)
                {
                    this.customCrit += thoriumCrit;
                }
            }

            this.shamanCrit    += this.customCrit;
            this.alchemistCrit += this.customCrit;
            this.gamblerCrit   += this.customCrit;
            this.dancerCrit    += this.customCrit;

            this.CheckWoodBreak(player);
        }
Example #2
0
        public override bool PreHurt(bool pvp, bool quiet, ref int damage, ref int hitDirection, ref bool crit,
                                     ref bool customDamage, ref bool playSound, ref bool genGore, ref PlayerDeathReason damageSource)
        {
            bool toReturn = true;

            if (!OrchidModShamanHelper.PreHurtShaman(pvp, quiet, ref damage, ref hitDirection, ref crit, ref customDamage, ref playSound, ref genGore, ref damageSource, player, this, mod))
            {
                toReturn = false;
            }

            if (!OrchidModDancerHelper.PreHurtDancer(pvp, quiet, ref damage, ref hitDirection, ref crit, ref customDamage, ref playSound, ref genGore, ref damageSource, player, this, mod))
            {
                toReturn = false;
            }
            return(toReturn);
        }
Example #3
0
        public override void ResetEffects()
        {
            customCrit      = 0;
            remoteCopterPet = false;

            generalTools  = false;
            generalStatic = false;

            OrchidModDancerHelper.ResetEffectsDancer(player, this, mod);
            OrchidModAlchemistHelper.ResetEffectsAlchemist(player, this, mod);
            OrchidModGamblerHelper.ResetEffectsGambler(player, this, mod);
            OrchidModShamanHelper.ResetEffectsShaman(player, this, mod);

            if (this.keepSelected != -1)
            {
                player.selectedItem = keepSelected;
                this.keepSelected   = -1;
            }
        }
Example #4
0
 public override void ModifyHitByNPC(NPC npc, ref int damage, ref bool crit)
 {
     OrchidModDancerHelper.ModifyHitByNPCDancer(npc, ref damage, ref crit, player, this, mod);
 }