From 7323c40d28c008cfa2e1d804edb973abeac025ac Mon Sep 17 00:00:00 2001 From: cheeeeeeeeeen Date: Mon, 11 Oct 2021 22:50:16 +0800 Subject: [PATCH] Add Zelos Influence to Big Core Custom drops as well as integrate properly with boss checklist --- ChensGradiusMod.cs | 7 +++++++ Items/Bags/BigCoreCustomBag.cs | 4 +++- NPCs/BigCoreCustom.cs | 6 ++++-- build.txt | 2 +- forum.txt | 6 +++++- 5 files changed, 20 insertions(+), 5 deletions(-) diff --git a/ChensGradiusMod.cs b/ChensGradiusMod.cs index 9bf3603..2397d16 100644 --- a/ChensGradiusMod.cs +++ b/ChensGradiusMod.cs @@ -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; @@ -296,6 +299,9 @@ public override void PostSetupContent() }; List lootDrops = new List { + ModContent.ItemType(), + ModContent.ItemType(), + ModContent.ItemType(), ItemID.SuperHealingPotion }; bossChecklist.Call("AddBoss", 15f, ModContent.NPCType(), this, "Big Core Custom", @@ -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)(groupUpdated => { })); diff --git a/Items/Bags/BigCoreCustomBag.cs b/Items/Bags/BigCoreCustomBag.cs index c7dea48..5d8d042 100644 --- a/Items/Bags/BigCoreCustomBag.cs +++ b/Items/Bags/BigCoreCustomBag.cs @@ -1,4 +1,5 @@ using ChensGradiusMod.Items.Placeables.MusicBoxes; +using ChensGradiusMod.Items.Weapons.Melee; using ChensGradiusMod.Items.Weapons.Summon; using ChensGradiusMod.NPCs; using System; @@ -21,7 +22,8 @@ public override void OpenBossBag(Player player) )); AddDropTable(player, new WeightedRandom(Main.rand.Next(), Tuple.Create(ModContent.ItemType(), 25d), - Tuple.Create(0, 75d) + Tuple.Create(ModContent.ItemType(), 25d), + Tuple.Create(0, 50d) )); } diff --git a/NPCs/BigCoreCustom.cs b/NPCs/BigCoreCustom.cs index b089f7b..e3d7e7e 100644 --- a/NPCs/BigCoreCustom.cs +++ b/NPCs/BigCoreCustom.cs @@ -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; @@ -150,8 +151,9 @@ public override void NPCLoot() else { AddDropTable(npc, new WeightedRandom(Main.rand.Next(), - Tuple.Create(ModContent.ItemType(), 5d), - Tuple.Create(0, 95d) + Tuple.Create(ModContent.ItemType(), 10d), + Tuple.Create(ModContent.ItemType(), 10d), + Tuple.Create(0, 80d) )); } diff --git a/build.txt b/build.txt index 7c2f833..b0eb5c3 100644 --- a/build.txt +++ b/build.txt @@ -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 diff --git a/forum.txt b/forum.txt index 40d435b..5d52515 100644 --- a/forum.txt +++ b/forum.txt @@ -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] @@ -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.