royal gel fix, fall dmg, and more

all wings set noFallDmg to true
Deific amulet/rampart now count as jellyfish necklace and boost light in the abyss
This commit is contained in:
termigator1359 committed 2019-10-05 21:47:07 -04:00
1 parent d9f3b5f9f0
commit fb0c9c6aeb
16 files changed
+37 -3

No files matched your search

+16
View File
@@ -288,6 +288,7 @@ namespace CalamityMod.CalPlayer
public bool normalityRelocator = false;
public bool fabledTortoise = false;
public bool manaOverloader = false;
public bool royalGel = false;
public bool sandWaifu = false;
public bool sandBoobWaifu = false;
public bool cloudWaifu = false;
@@ -934,6 +935,7 @@ namespace CalamityMod.CalPlayer
normalityRelocator = false;
fabledTortoise = false;
manaOverloader = false;
royalGel = false;
lol = false;
raiderTalisman = false;
sGenerator = false;
@@ -4449,6 +4451,20 @@ namespace CalamityMod.CalPlayer
{
player.lifeRegen /= 2;
}
if (royalGel)
{
player.npcTypeNoAggro[mod.NPCType("AeroSlime")] = true;
player.npcTypeNoAggro[mod.NPCType("BloomSlime")] = true;
player.npcTypeNoAggro[mod.NPCType("CharredSlime")] = true;
player.npcTypeNoAggro[mod.NPCType("CrimulanBlightSlime")] = true;
player.npcTypeNoAggro[mod.NPCType("CryoSlime")] = true;
player.npcTypeNoAggro[mod.NPCType("EbonianBlightSlime")] = true;
player.npcTypeNoAggro[mod.NPCType("IrradiatedSlime")] = true;
player.npcTypeNoAggro[mod.NPCType("PerennialSlime")] = true;
player.npcTypeNoAggro[mod.NPCType("PlaguedJungleSlime")] = true;
player.npcTypeNoAggro[mod.NPCType("AstralSlime")] = true;
//player.npcTypeNoAggro[mod.NPCType("WulfrumSlime")] = true;
}
#endregion
#region LimitsAndOtherShit
+3 -1
View File
@@ -12,7 +12,8 @@ namespace CalamityMod.Items.Accessories
DisplayName.SetDefault("Deific Amulet");
Tooltip.SetDefault("Taking damage makes you move very fast for a short time\n" +
"Increases armor penetration by 10 and immune time after being struck\n" +
"Provides light underwater and causes stars to fall when damaged\n" +
"Provides light underwater and provides a small amount of light in the abyss\n" +
"Causes stars to fall when damaged\n" +
"Reduces the cooldown of healing potions");
}
@@ -29,6 +30,7 @@ namespace CalamityMod.Items.Accessories
{
CalamityPlayer modPlayer = player.GetCalamityPlayer();
modPlayer.dAmulet = true;
modPlayer.jellyfishNecklace = true;
}
public override void AddRecipes()
+3 -1
View File
@@ -11,7 +11,8 @@ namespace CalamityMod.Items.Accessories
DisplayName.SetDefault("Rampart of Deities");
Tooltip.SetDefault("Taking damage makes you move very fast for a short time\n" +
"Increases armor penetration by 20 and immune time after being struck\n" +
"Provides light underwater and causes stars to fall when damaged\n" +
"Provides light underwater and provides a small amount of light in the abyss\n" +
"Causes stars to fall when damaged\n" +
"Absorbs 25% of damage done to players on your team\n" +
"Only active above 25% life\n" +
"Grants immunity to knockback and reduces the cooldown of healing potions\n" +
@@ -34,6 +35,7 @@ namespace CalamityMod.Items.Accessories
CalamityPlayer modPlayer = player.GetCalamityPlayer();
modPlayer.dAmulet = true;
modPlayer.rampartOfDeities = true;
modPlayer.jellyfishNecklace = true;
}
public override void AddRecipes()
+1
View File
@@ -85,6 +85,7 @@ namespace CalamityMod.Items.Accessories.Wings
}
}
player.wingTimeMax = 80;
player.noFallDmg = true;
}
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
@@ -60,6 +60,7 @@ namespace CalamityMod.Items.Accessories.Wings
player.fireWalk = true;
player.lavaMax += 240;
player.wingTimeMax = 280;
player.noFallDmg = true;
modPlayer.IBoots = !hideVisual;
modPlayer.elysianFire = !hideVisual;
modPlayer.cTracers = true;
@@ -47,6 +47,7 @@ namespace CalamityMod.Items.Accessories.Wings
Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player);
}
player.wingTimeMax = 180;
player.noFallDmg = true;
}
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
+1
View File
@@ -46,6 +46,7 @@ namespace CalamityMod.Items.Accessories.Wings
Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player);
}
player.wingTimeMax = 361;
player.noFallDmg = true;
}
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
@@ -60,6 +60,7 @@ namespace CalamityMod.Items.Accessories.Wings
player.fireWalk = true;
player.lavaMax += 240;
player.wingTimeMax = 160;
player.noFallDmg = true;
modPlayer.IBoots = !hideVisual;
modPlayer.elysianFire = !hideVisual;
modPlayer.eTracers = true;
+1
View File
@@ -60,6 +60,7 @@ namespace CalamityMod.Items.Accessories.Wings
}
}
player.wingTimeMax = 120;
player.noFallDmg = true;
}
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
+1
View File
@@ -60,6 +60,7 @@ namespace CalamityMod.Items.Accessories.Wings
player.fireWalk = true;
player.lavaMax += 240;
player.wingTimeMax = 120;
player.noFallDmg = true;
modPlayer.IBoots = !hideVisual;
modPlayer.sTracers = true;
}
+1
View File
@@ -28,6 +28,7 @@ namespace CalamityMod.Items.Accessories.Wings
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.wingTimeMax = 60;
player.noFallDmg = true;
}
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
@@ -47,6 +47,7 @@ namespace CalamityMod.Items.Accessories.Wings
Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player);
}
player.wingTimeMax = 150;
player.noFallDmg = true;
}
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
+1
View File
@@ -58,6 +58,7 @@ namespace CalamityMod.Items.Accessories.Wings
Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player);
}
player.wingTimeMax = 210;
player.noFallDmg = true;
}
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
+1
View File
@@ -47,6 +47,7 @@ namespace CalamityMod.Items.Accessories.Wings
Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player);
}
player.wingTimeMax = 180;
player.noFallDmg = true;
}
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
+3
View File
@@ -1803,6 +1803,9 @@ namespace CalamityMod.Items
if (item.type == ItemID.WormScarf)
player.endurance -= 0.07f;
if (item.type == ItemID.RoyalGel)
modPlayer.royalGel = true;
if (item.type == ItemID.CelestialStone || item.type == ItemID.CelestialShell || (item.type == ItemID.MoonStone && !Main.dayTime) ||
(item.type == ItemID.SunStone && Main.dayTime))
+1 -1
View File
@@ -55,7 +55,7 @@ namespace CalamityMod.NPCs.NormalNPCs
{
spikeTimer -= 1f;
}
if (!npc.wet)
if (!npc.wet && !Main.player[npc.target].GetCalamityPlayer().royalGel)
{
Vector2 vector3 = new Vector2(npc.position.X + (float)npc.width * 0.5f, npc.position.Y + (float)npc.height * 0.5f);
float num14 = Main.player[npc.target].position.X + (float)Main.player[npc.target].width * 0.5f - vector3.X;