36135    {
36137        {
36138            return 0.0;
36139        }
36141        {
36142            return 0.0;
36143        }
36145        bool flag2 = 
false;
 
36148        {
36149        case 0:
36150        case 1:
36151        case 3:
36152        case 4:
36154            break;
36155        case 2:
36158            break;
36159        }
36160        if (flag)
36161        {
36163            {
36165                {
36167                    return 0.0;
36168                }
36170                {
36172                    return 0.0;
36173                }
36175                {
36177                    return 0.0;
36178                }
36179            }
36181            {
36183            }
36185            {
36187            }
36189            if (Main.netMode == 1)
36190            {
36191                NetMessage.SendData(84, -1, -1, 
null, 
whoAmI);
 
36192            }
36196            {
36197                num *= 2;
36198            }
36200            {
36201                if (
whoAmI == Main.myPlayer)
 
36202                {
36205                    {
36206                        for (
int i = 0; 
i < 59; 
i++)
 
36207                        {
36209                            {
36212                                if (i == 58)
36213                                {
36214                                    Main.mouseItem = 
new Item();
 
36215                                }
36216                            }
36217                        }
36218                    }
36219                }
36221                {
36222                    for (
int j = 0; 
j < 1000; 
j++)
 
36223                    {
36224                        if (Main.projectile[
j].active && Main.projectile[
j].owner == 
whoAmI && (Main.projectile[
j].type == 879 || Main.projectile[
j].type == 877 || Main.projectile[
j].type == 878))
 
36225                        {
36226                            Main.projectile[
j].active = 
false;
 
36227                        }
36228                    }
36229                }
36231                {
36233                    {
36235                        {
36237                        }
36238                    }
36239                }
36242                {
36244                }
36246                {
36250                    {
36252                    }
36253                    if (
whoAmI == Main.myPlayer)
 
36254                    {
36258                        {
36260                        }
36262                        Main.projectile[
num4].netUpdate = 
true;
 
36263                        Main.projectile[
num4].Kill();
 
36264                    }
36265                }
36267                {
36272                    {
36274                        {
36276                        }
36277                    }
36279                    {
36281                    }
36284                    {
36286                    }
36287                }
36289                {
36293                    {
36295                    }
36297                }
36299                {
36300                    if (
whoAmI != Main.myPlayer)
 
36301                    {
36302                        if (Main.player[Main.myPlayer].hasPaladinShield)
36303                        {
36304                            Player player = Main.player[Main.myPlayer];
 
36305                            if (player.team == 
team && 
team != 0)
 
36306                            {
36307                                float num7 = player.Distance(
base.Center);
 
36310                                {
36311                                    for (
int m = 0; 
m < 255; 
m++)
 
36312                                    {
36313                                        if (
m != Main.myPlayer && Main.player[
m].active && !Main.player[
m].dead && !Main.player[
m].immune && Main.player[
m].hasPaladinShield && Main.player[
m].team == 
team && (
float)Main.player[
m].statLife > (
float)Main.player[
m].statLifeMax2 * 0.25f)
 
36314                                        {
36315                                            float num8 = Main.player[
m].Distance(
base.Center);
 
36317                                            {
36319                                                break;
36320                                            }
36321                                        }
36322                                    }
36323                                }
36325                                {
36326                                    int damage = (int)(
num2 * 0.25);
 
36329                                }
36330                            }
36331                        }
36332                    }
36333                    else
36334                    {
36335                        bool flag4 = 
false;
 
36336                        for (
int n = 0; 
n < 255; 
n++)
 
36337                        {
36338                            if (
n != Main.myPlayer && Main.player[
n].active && !Main.player[
n].dead && !Main.player[
n].immune && Main.player[
n].hasPaladinShield && Main.player[
n].team == 
team && (
float)Main.player[
n].statLife > (float)Main.player[
n].statLifeMax2 * 0.25f)
 
36339                            {
36341                                break;
36342                            }
36343                        }
36345                        {
36347                        }
36348                    }
36349                }
36351                {
36353                    {
36354                        if (!Main.npc[
num9].active || Main.npc[
num9].friendly)
 
36355                        {
36356                            continue;
36357                        }
36360                        if (Main.rand.Next(500) < 
num10)
 
36361                        {
36363                            float num12 = Main.rand.Next(200 + (
int)
num2 / 2, 301 + (int)
num2 * 2);
 
36365                            {
36367                            }
36369                            {
36371                            }
36373                            {
36375                            }
36377                            {
36378                                float num13 = Main.rand.Next(90 + (
int)
num2 / 3, 300 + (int)
num2 / 2);
 
36379                                Main.npc[
num9].AddBuff(31, (
int)
num13);
 
36380                            }
36381                        }
36382                    }
36383                    Projectile.NewProjectile(
GetProjectileSource_Accessory(
brainOfConfusionItem), base.Center.X + (float)Main.rand.Next(-40, 40), base.Center.Y - (float)Main.rand.Next(20, 60), velocity.X * 0.3f, velocity.Y * 0.3f, 565, 0, 0f, 
whoAmI);
 
36384                }
36385                if (Main.netMode == 1 && 
whoAmI == Main.myPlayer && !
quiet)
 
36386                {
36388                    {
36389                        NetMessage.SendData(13, -1, -1, 
null, 
whoAmI);
 
36390                    }
36391                    NetMessage.SendData(16, -1, -1, 
null, 
whoAmI);
 
36393                }
36394                Color color = (
Crit ? CombatText.DamagedFriendlyCrit : CombatText.DamagedFriendly);
 
36398                {
36399                case -1:
36400                {
36405                    break;
36406                }
36407                case 0:
36409                    {
36411                    }
36412                    else
36413                    {
36415                    }
36416                    break;
36417                case 1:
36418                case 3:
36419                case 4:
36421                    {
36423                    }
36424                    else
36425                    {
36427                    }
36428                    break;
36429                }
36433                {
36435                }
36436                if (
whoAmI == Main.myPlayer)
 
36437                {
36439                    {
36441                        {
36442                            float x = position.X + (float)Main.rand.Next(-400, 400);
36443                            float y = position.Y - (float)Main.rand.Next(500, 800);
36447                            num16 += (float)Main.rand.Next(-100, 101);
 
36455                            {
36458                            }
36460                            {
36463                            }
36465                            {
36468                            }
36470                            if (Main.masterMode)
36471                            {
36473                            }
36474                            else if (Main.expertMode)
36475                            {
36477                            }
36478                            Projectile.NewProjectile(
GetProjectileSource_Accessory(
item), x, y, 
num16, 
num17, 
type, 
num19, 5f, 
whoAmI, 0f, 
position.
Y);
 
36479                        }
36480                    }
36482                    {
36484                        if (Main.rand.Next(3) == 0)
36485                        {
36487                        }
36488                        if (Main.rand.Next(3) == 0)
36489                        {
36491                        }
36493                        {
36495                        }
36498                        {
36500                        }
36501                        if (Main.masterMode)
36502                        {
36504                        }
36505                        else if (Main.expertMode)
36506                        {
36508                        }
36511                        {
36512                            float speedX = (float)Main.rand.Next(-35, 36) * 0.02f;
 
36513                            float speedY = (float)Main.rand.Next(-35, 36) * 0.02f;
 
36515                        }
36517                    }
36518                }
36521                {
36523                    {
36524                        float num23 = 10.5f;
 
36527                        {
36530                        }
36534                    }
36535                }
36537                {
36539                    velocity.Y = -3.5f;
36541                }
36543                {
36545                }
36547                {
36549                }
36551                {
36553                }
36555                {
36557                }
36559                {
36561                }
36562                else if (Main.dontStarveWorld && !Main.remixWorld)
36563                {
36565                }
36566                else
36567                {
36569                }
36572                {
36577                    {
36580                    }
36582                    {
36584                        {
36586                        }
36588                        {
36591                        }
36593                        {
36596                        }
36597                        else
36598                        {
36600                        }
36601                    }
36602                }
36603                else
36604                {
36606                    if (
whoAmI == Main.myPlayer)
 
36607                    {
36609                    }
36610                }
36611            }
36613            {
36615            }
36617        }
36618        return 0.0;
36619    }
static double Sqrt(double d)
 
static void PlaySound(int type, Vector2 position, int style=1)
 
static PlayerDeathReason LegacyEmpty()
 
static ArmorShaderDataSet Armor
 
static bool[] DismountsPlayersOnHit
 
static readonly LegacySoundStyle DSTMaleHurt
 
static readonly LegacySoundStyle Item27
 
void SetDefaults(int Type=0)
 
void Dismount(Player mountedPlayer)
 
static readonly int maxBuffs
 
Item brainOfConfusionItem
 
void ManaEffect(int manaAmount)
 
IEntitySource GetProjectileSource_SetBonus(int projectileSourceId)
 
int FindBuffIndex(int type)
 
void KillMe(PlayerDeathReason damageSource, double dmg, int hitDirection, bool pvp=false)
 
Item starCloakItem_beeCloakOverrideItem
 
IEntitySource GetProjectileSource_Accessory(Item item)
 
IEntitySource GetProjectileSource_Misc(int projectileSourceId)
 
static bool AllowShimmerDodge(PlayerDeathReason damageSource, int cooldownCounter, bool dodgeable)
 
IEntitySource GetProjectileSource_OnHurt(Entity attacker, int projectileSourceId)
 
void StopVanityActions(bool multiplayerBroadcast=true)
 
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)
 
PlayerEyeHelper eyeHelper
 
void BrainOfConfusionDodge()
 
Item starCloakItem_manaCloakOverrideItem
 
Item starCloakItem_starVeilOverrideItem
 
void BlinkBecausePlayerGotHurt()