Skip to content

Commit

Permalink
Add Zelos Influence to Big Core Custom drops as well as integrate pro…
Browse files Browse the repository at this point in the history
…perly with boss checklist
  • Loading branch information
cheeeeeeeeeen committed Oct 11, 2021
1 parent 43b5905 commit 7323c40
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
7 changes: 7 additions & 0 deletions ChensGradiusMod.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
using ChensGradiusMod.Items.Bags;
using ChensGradiusMod.Items.Banners;
using ChensGradiusMod.Items.Placeables.MusicBoxes;
using ChensGradiusMod.Items.Spawners;
using ChensGradiusMod.Items.Weapons.Melee;
using ChensGradiusMod.Items.Weapons.Summon;
using ChensGradiusMod.NPCs;
using ChensGradiusMod.Projectiles.Enemies;
using ChensGradiusMod.Projectiles.Options;
Expand Down Expand Up @@ -296,6 +299,9 @@ public override void PostSetupContent()
};
List<int> lootDrops = new List<int>
{
ModContent.ItemType<ZalkYoyo>(),
ModContent.ItemType<MiniCoveredCoreWeapon>(),
ModContent.ItemType<BigCoreCustomBag>(),
ItemID.SuperHealingPotion
};
bossChecklist.Call("AddBoss", 15f, ModContent.NPCType<BigCoreCustom>(), this, "Big Core Custom",
Expand All @@ -304,6 +310,7 @@ public override void PostSetupContent()
"The aircraft carrier leaves combat airspace.",
"ChensGradiusMod/Sprites/BigCoreCustomBossLog");
}

if (herosMod != null)
{
herosMod.Call("AddPermission", "UpdateConfig", "Update Gradius Config", (Action<bool>)(groupUpdated => { }));
Expand Down
4 changes: 3 additions & 1 deletion Items/Bags/BigCoreCustomBag.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using ChensGradiusMod.Items.Placeables.MusicBoxes;
using ChensGradiusMod.Items.Weapons.Melee;
using ChensGradiusMod.Items.Weapons.Summon;
using ChensGradiusMod.NPCs;
using System;
Expand All @@ -21,7 +22,8 @@ public override void OpenBossBag(Player player)
));
AddDropTable(player, new WeightedRandom<int>(Main.rand.Next(),
Tuple.Create(ModContent.ItemType<MiniCoveredCoreWeapon>(), 25d),
Tuple.Create(0, 75d)
Tuple.Create(ModContent.ItemType<ZalkYoyo>(), 25d),
Tuple.Create(0, 50d)
));
}

Expand Down
6 changes: 4 additions & 2 deletions NPCs/BigCoreCustom.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using ChensGradiusMod.Items.Bags;
using ChensGradiusMod.Items.Banners;
using ChensGradiusMod.Items.Placeables.MusicBoxes;
using ChensGradiusMod.Items.Weapons.Melee;
using ChensGradiusMod.Items.Weapons.Summon;
using ChensGradiusMod.Projectiles.Enemies;
using Microsoft.Xna.Framework;
Expand Down Expand Up @@ -150,8 +151,9 @@ public override void NPCLoot()
else
{
AddDropTable(npc, new WeightedRandom<int>(Main.rand.Next(),
Tuple.Create(ModContent.ItemType<MiniCoveredCoreWeapon>(), 5d),
Tuple.Create(0, 95d)
Tuple.Create(ModContent.ItemType<MiniCoveredCoreWeapon>(), 10d),
Tuple.Create(ModContent.ItemType<ZalkYoyo>(), 10d),
Tuple.Create(0, 80d)
));
}

Expand Down
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
displayName = Chen's Gradius Mod
author = blancfaye7
version = 1.2.7
version = 1.2.8
homepage = https://forums.terraria.org/index.php?threads/chens-gradius-mod.83289/
hideCode = true
hideResources = true
Expand Down
6 changes: 5 additions & 1 deletion forum.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Hello. I decided to share my mod here in the forums. I'm not very good at documenting, but it will improve as time passes. Without further ado...

[IMG]https://i.imgur.com/FKqzjlB.png[/IMG]
[B][U][SIZE=6]Mod Version: 1.2.7
[B][U][SIZE=6]Mod Version: 1.2.8
tModLoader: 0.11.8.5
The mod will be ported to tModLoader 1.4! Stay tuned![/SIZE][/U][/B]

Expand Down Expand Up @@ -270,6 +270,10 @@ For more information, visit this [URL=https://github.com/cheeeeeeeeeen/Chens-Gra
The content is moved because it's hard to maintain a Wiki and a main post! However, the latest version change will still be here.
Click [URL=https://github.com/cheeeeeeeeeen/Chens-Gradius-Mod/wiki/Changelog]here[/URL] for the full changelog.

1.2.8
- Integrate properly with Boss Checklist so that Big Core Custom data is properly displayed.
- Actually add Zelos Influence into the loot table of Big Core Custom.

1.2.7
- Implement a cooldown system for Zelos Influence to control its power as well as lag management.

Expand Down

0 comments on commit 7323c40

Please sign in to comment.