mirror of
https://github.com/YouHaveTrouble/YHTMod.git
synced 2026-05-11 21:56:54 +00:00
more calamity integration and rebalancing
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.NPCs.Crabulon;
|
||||
using CalamityMod.NPCs.DesertScourge;
|
||||
using CalamityMod.NPCs.HiveMind;
|
||||
using CalamityMod.NPCs.Perforator;
|
||||
using CalamityMod.NPCs.SlimeGod;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Chat;
|
||||
@@ -29,9 +32,12 @@ public class BossKillListener : GlobalNPC {
|
||||
if (ModLoader.HasMod("CalamityMod")) {
|
||||
BossIds.Add(ModContent.NPCType<DesertScourgeHead>(), "desert_scourge");
|
||||
BossIds.Add(ModContent.NPCType<Crabulon>(), "crabulon");
|
||||
BossIds.Add(ModContent.NPCType<PerforatorHive>(), "perforators");
|
||||
BossIds.Add(ModContent.NPCType<HiveMind>(), "hive_mind");
|
||||
BossIds.Add(ModContent.NPCType<SlimeGodCore>(), "slime_god");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public override void OnKill(NPC npc) {
|
||||
string id = BossIds.GetValueOrDefault(npc.type, null);
|
||||
switch (id) {
|
||||
|
||||
@@ -20,7 +20,7 @@ public class SummonerOnHitEffects : GlobalProjectile {
|
||||
&& Main.rand.NextBool(10)
|
||||
) {
|
||||
modPlayer.SummonerAmbitionDeerclopsCooldown = 5 * 60;
|
||||
Vector2 direction = new Vector2(Main.rand.NextFloat(-1f, 1f), Main.rand.NextFloat(-1f, 1f));
|
||||
Vector2 direction = new(Main.rand.NextFloat(-1f, 1f), Main.rand.NextFloat(-1f, 1f));
|
||||
direction.Normalize();
|
||||
direction *= Main.rand.NextFloat(4f, 8f);
|
||||
Projectile.NewProjectile(
|
||||
@@ -41,7 +41,7 @@ public class SummonerOnHitEffects : GlobalProjectile {
|
||||
}
|
||||
|
||||
// Whips
|
||||
if (ProjectileID.Sets.IsAWhip[projectile.type]) {
|
||||
if (modPlayer.SummonerAmbition && ProjectileID.Sets.IsAWhip[projectile.type]) {
|
||||
if (modPlayer.SummonerAmbitions.Contains("eye_of_cthulhu")) {
|
||||
projectile.damage = (int)(projectile.damage * 1.1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user