androomba supports 1.4.4 solutions

This commit is contained in:
GinYuH committed 2023-07-19 02:21:21 -07:00
1 parent be6a46fe3c
commit 6eb4ec57c6
5 files changed
+21 -6

No files matched your search

+11 -2
View File
@@ -3901,7 +3901,7 @@ namespace CalamityMod.CalPlayer
if (npc is null || !npc.active)
return;
bool holdingsol = ((Player.HeldItem.type >= ItemID.GreenSolution && Player.HeldItem.type <= ItemID.RedSolution) || Player.HeldItem.type == ModContent.ItemType<AstralSolution>());
bool holdingsol = ((Player.HeldItem.type >= ItemID.GreenSolution && Player.HeldItem.type <= ItemID.RedSolution) || (Player.HeldItem.type >= ItemID.SandSolution && Player.HeldItem.type <= ItemID.DirtSolution) || Player.HeldItem.type == ModContent.ItemType<AstralSolution>());
if (npc.Hitbox.Contains(Main.MouseWorld.ToPoint()) && holdingsol && Player.Distance(npc.Center) < 450)
{
Player.cursorItemIconEnabled = true;
@@ -3916,7 +3916,7 @@ namespace CalamityMod.CalPlayer
int soltype = 0;
if (Player.HeldItem.type == ModContent.ItemType<AstralSolution>())
{
soltype = 5;
soltype = 8;
}
else
{
@@ -3937,6 +3937,15 @@ namespace CalamityMod.CalPlayer
case ItemID.RedSolution:
soltype = 4;
break;
case ItemID.SandSolution:
soltype = 5;
break;
case ItemID.SnowSolution:
soltype = 6;
break;
case ItemID.DirtSolution:
soltype = 7;
break;
}
}
if (npc.ai[3] != soltype || npc.ai[0] == 0)
+10 -4
View File
@@ -113,14 +113,11 @@ namespace CalamityMod.NPCs.TownNPCs
{
int x = (int)(NPC.Center.X / 16f);
int y = (int)(NPC.Center.Y / 16f);
if (conversionType <= 4)
if (conversionType <= 7)
{
ConvertType type = ConvertType.Pure;
switch (conversionType)
{
case 0:
type = ConvertType.Pure;
break;
case 1:
type = ConvertType.Corrupt;
break;
@@ -260,6 +257,15 @@ namespace CalamityMod.NPCs.TownNPCs
pathextenstion = "Crimson";
break;
case 5:
pathextenstion = "Desert";
break;
case 6:
pathextenstion = "Snow";
break;
case 7:
pathextenstion = "Forest";
break;
case 8:
pathextenstion = "Astral";
break;
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 401 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 409 B