Merge branch 'master' of https://github.com/UncleDanny/CalamityMod
This commit is contained in:
commit
2c4e3eddcb
17 files changed
+80
-22
No files matched your search
@@ -1464,7 +1464,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (modPlayer.plaguedFuelPackDash > 0)
|
||||
{
|
||||
int velocityMult = modPlayer.plaguedFuelPackDash > 1 ? 25 : 5;
|
||||
player.velocity = new Vector2(modPlayer.plaguedFuelPackDirection, player.velocity.Y < 0 ? -1 : (player.velocity.Y == 0 ? -1 : 1)) * velocityMult;
|
||||
player.velocity = new Vector2(modPlayer.plaguedFuelPackDirection, -1) * velocityMult;
|
||||
|
||||
int numClouds = Main.rand.Next(2, 10);
|
||||
for (int i = 0; i < numClouds; i++)
|
||||
|
||||
+3
-1
@@ -516,7 +516,9 @@ namespace CalamityMod
|
||||
"Melvin Brouwers",
|
||||
"Vroomy Has -3,000 IQ",
|
||||
"The Goliath",
|
||||
"DaPyRo"
|
||||
"DaPyRo",
|
||||
"Apotheosis",
|
||||
"Termi"
|
||||
};
|
||||
|
||||
rangedProjectileExceptionList = new List<int>()
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 499 B After Width: | Height: | Size: 702 B |
Binary file not shown.
|
Before Width: | Height: | Size: 682 B After Width: | Height: | Size: 683 B |
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.useStyle = 5;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 3.5f;
|
||||
item.value = Item.buyPrice(1, 40, 0, 0);
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 10;
|
||||
item.UseSound = SoundID.Item73;
|
||||
item.autoReuse = true;
|
||||
|
||||
@@ -29,11 +29,11 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.melee = true;
|
||||
item.height = 62;
|
||||
item.value = Item.buyPrice(1, 40, 0, 0);
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 8;
|
||||
item.shoot = ModContent.ProjectileType<DivineHatchetBoomerang>();
|
||||
item.shootSpeed = 14f;
|
||||
item.Calamity().postMoonLordRarity = 13;
|
||||
item.Calamity().postMoonLordRarity = 12;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
@@ -42,6 +42,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
recipe.AddIngredient(ItemID.PossessedHatchet);
|
||||
recipe.AddIngredient(ModContent.ItemType<DivineGeode>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 9);
|
||||
recipe.AddIngredient(ModContent.ItemType<UnholyEssence>(), 8);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -37,7 +37,7 @@ Fighting 'til the war's won");
|
||||
item.useStyle = 5;
|
||||
|
||||
item.rare = 10;
|
||||
item.value = Item.buyPrice(1, 40, 0, 0);
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.Calamity().postMoonLordRarity = 21;
|
||||
|
||||
item.shootSpeed = BulletSpeed;
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/TankCannon");
|
||||
item.noMelee = true;
|
||||
|
||||
item.value = Item.buyPrice(1, 40, 0, 0);
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 10;
|
||||
item.Calamity().postMoonLordRarity = 21;
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
DisplayName.SetDefault("Executioner's Blade");
|
||||
Tooltip.SetDefault("Throws a stream of homing blades\n" +
|
||||
"Stealth strikes summons a guillotine of blades on hit");
|
||||
"Stealth strikes summon a guillotine of blades on hit");
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
|
||||
@@ -28,12 +28,12 @@ Stealth strikes spawn smaller spears to fly along side it");
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
|
||||
item.value = Item.buyPrice(1, 40, 0, 0);
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.useTime = 15;
|
||||
item.useAnimation = 15;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.rare = 10;
|
||||
item.Calamity().postMoonLordRarity = 13;
|
||||
item.Calamity().postMoonLordRarity = 12;
|
||||
item.Calamity().rogue = true;
|
||||
|
||||
item.autoReuse = true;
|
||||
|
||||
@@ -1976,14 +1976,18 @@ namespace CalamityMod.NPCs
|
||||
switch (npc.type)
|
||||
{
|
||||
case NPCID.Guide:
|
||||
switch (Main.rand.Next(36)) // 34 guide names
|
||||
switch (Main.rand.Next(37)) // 34 guide names
|
||||
{
|
||||
case 0:
|
||||
npc.GivenName = "Lapp";
|
||||
break;
|
||||
|
||||
case 1:
|
||||
npc.GivenName = "Ben Shapiro";
|
||||
npc.GivenName = "Ben Shapiro";
|
||||
break;
|
||||
|
||||
case 2:
|
||||
npc.GivenName = "StreakistYT";
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -1993,12 +1997,16 @@ namespace CalamityMod.NPCs
|
||||
break;
|
||||
|
||||
case NPCID.Wizard:
|
||||
switch (Main.rand.Next(24)) // 23 wizard names
|
||||
switch (Main.rand.Next(25)) // 23 wizard names
|
||||
{
|
||||
case 0:
|
||||
npc.GivenName = "Mage One-Trick";
|
||||
break;
|
||||
|
||||
case 1:
|
||||
npc.GivenName = "Inorim, son of Ivukey";
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -2006,12 +2014,16 @@ namespace CalamityMod.NPCs
|
||||
break;
|
||||
|
||||
case NPCID.Steampunker:
|
||||
switch (Main.rand.Next(22)) // 21 steampunker names
|
||||
switch (Main.rand.Next(23)) // 21 steampunker names
|
||||
{
|
||||
case 0:
|
||||
npc.GivenName = "Vorbis";
|
||||
break;
|
||||
|
||||
case 1:
|
||||
npc.GivenName = "Angel";
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -2057,6 +2069,49 @@ namespace CalamityMod.NPCs
|
||||
|
||||
break;
|
||||
|
||||
case NPCID.Pirate:
|
||||
switch (Main.rand.Next(12)) // 11 pirate names
|
||||
{
|
||||
case 0:
|
||||
npc.GivenName = "Tyler Van Hook";
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case NPCID.Mechanic:
|
||||
switch (Main.rand.Next(26)) // 24 mechanic names
|
||||
{
|
||||
case 0:
|
||||
npc.GivenName = "Lilly";
|
||||
break;
|
||||
|
||||
case 1:
|
||||
npc.GivenName = "Daawn";
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case NPCID.ArmsDealer:
|
||||
switch (Main.rand.Next(25)) // 24 arms dealer names
|
||||
{
|
||||
case 0:
|
||||
npc.GivenName = "Drifter";
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
|
||||
public override float SpawnChance(NPCSpawnInfo spawnInfo)
|
||||
{
|
||||
if (spawnInfo.playerSafe || spawnInfo.player.Calamity().ZoneSunkenSea)
|
||||
if (spawnInfo.playerSafe || spawnInfo.player.Calamity().ZoneSunkenSea || NPC.AnyNPCs(ModContent.NPCType<Cnidrion>()))
|
||||
{
|
||||
return 0f;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
public override float SpawnChance(NPCSpawnInfo spawnInfo)
|
||||
{
|
||||
if (spawnInfo.playerSafe || !Main.hardMode || spawnInfo.player.Calamity().ZoneAbyss ||
|
||||
spawnInfo.player.Calamity().ZoneSunkenSea)
|
||||
spawnInfo.player.Calamity().ZoneSunkenSea || NPC.AnyNPCs(ModContent.NPCType<Horse>()))
|
||||
{
|
||||
return 0f;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Banners;
|
||||
using CalamityMod.World;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -61,10 +62,9 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ModContent.ItemType<StormlionMandible>());
|
||||
}
|
||||
//100% chance if DS isn't dead yet, otherwise 50%
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<StormlionMandible>(), !CalamityWorld.downedDesertScourge, 1f, 1, 1);
|
||||
DropHelper.DropItemCondition(npc, ModContent.ItemType<StormlionMandible>(), CalamityWorld.downedDesertScourge, 0.5f, 1, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -282,7 +282,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
|
||||
public override float SpawnChance(NPCSpawnInfo spawnInfo)
|
||||
{
|
||||
if (spawnInfo.playerSafe || !Main.hardMode || !Main.raining)
|
||||
if (spawnInfo.playerSafe || !Main.hardMode || !Main.raining || NPC.AnyNPCs(ModContent.NPCType<ThiccWaifu>()))
|
||||
{
|
||||
return 0f;
|
||||
}
|
||||
|
||||
@@ -583,7 +583,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
|
||||
public override float SpawnChance(NPCSpawnInfo spawnInfo)
|
||||
{
|
||||
if (spawnInfo.playerSafe || !NPC.downedGolemBoss)
|
||||
if (spawnInfo.playerSafe || !NPC.downedGolemBoss || NPC.AnyNPCs(ModContent.NPCType<PlaguebringerShade>()))
|
||||
{
|
||||
return 0f;
|
||||
}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 23 KiB |
Reference in new issue
Block a user