Merge conflict, Cirrus dialogue changes.
This commit is contained in:
commit
3e16e45b22
24 files changed
+63
-61
No files matched your search
@@ -4,7 +4,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
{
|
||||
public class FabsolVodkaBuff : ModBuff
|
||||
public class CirrusVodkaBuff : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().fabsolVodka = true;
|
||||
player.Calamity().cirrusVodka = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 500 B After Width: | Height: | Size: 500 B |
@@ -1279,7 +1279,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool zen = false;
|
||||
public bool isNearbyBoss = false;
|
||||
public bool flaskBrimstone = false;
|
||||
public bool fabsolVodka = false;
|
||||
public bool cirrusVodka = false;
|
||||
public bool mushy = false;
|
||||
public bool PinkJellyRegen = false;
|
||||
public bool GreenJellyRegen = false;
|
||||
@@ -2467,7 +2467,7 @@ namespace CalamityMod.CalPlayer
|
||||
trippy = false;
|
||||
amidiasBlessing = false;
|
||||
flaskBrimstone = false;
|
||||
fabsolVodka = false;
|
||||
cirrusVodka = false;
|
||||
shine = false;
|
||||
anechoicCoating = false;
|
||||
mushy = false;
|
||||
@@ -2959,7 +2959,7 @@ namespace CalamityMod.CalPlayer
|
||||
sulphurskin = false;
|
||||
baguette = false;
|
||||
flaskBrimstone = false;
|
||||
fabsolVodka = false;
|
||||
cirrusVodka = false;
|
||||
shine = false;
|
||||
anechoicCoating = false;
|
||||
mushy = false;
|
||||
|
||||
@@ -3300,8 +3300,8 @@ namespace CalamityMod.CalPlayer
|
||||
if (cirrusDress)
|
||||
Player.moveSpeed -= 0.2f;
|
||||
|
||||
if (fabsolVodka)
|
||||
Player.GetDamage<GenericDamageClass>() += FabsolsVodka.DamageBoost;
|
||||
if (cirrusVodka)
|
||||
Player.GetDamage<GenericDamageClass>() += CirrusVodka.DamageBoost;
|
||||
|
||||
if (vodka)
|
||||
{
|
||||
@@ -4594,10 +4594,10 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
// Multiplicative defense reductions.
|
||||
// These are done last because they need to be after the defense lower cap at 0.
|
||||
if (fabsolVodka)
|
||||
if (cirrusVodka)
|
||||
{
|
||||
if (Player.statDefense > 0)
|
||||
Player.statDefense -= (int)(Player.statDefense * FabsolsVodka.DefenseLossPercent);
|
||||
Player.statDefense -= (int)(Player.statDefense * CirrusVodka.DefenseLossPercent);
|
||||
}
|
||||
|
||||
if (vodka)
|
||||
|
||||
@@ -1761,8 +1761,8 @@ namespace CalamityMod.ILEditing
|
||||
#region Shimmer effect edits
|
||||
public static void ShimmerEffectEdits(Terraria.On_Item.orig_GetShimmered orig, Item self)
|
||||
{
|
||||
// Don't keep the original stack amount when shimmering Fabsol's Vodka into Crystal Heart Vodka
|
||||
if (self.type == ModContent.ItemType<FabsolsVodka>())
|
||||
// Don't keep the original stack amount when shimmering Cirrus' Vodka into Crystal Heart Vodka
|
||||
if (self.type == ModContent.ItemType<CirrusVodka>())
|
||||
{
|
||||
self.SetDefaults(ModContent.ItemType<CrystalHeartVodka>());
|
||||
self.shimmered = true;
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Accessories.Vanity
|
||||
Item.height = 30;
|
||||
Item.accessory = true;
|
||||
|
||||
// Same as Fabsol's Vodka, due to the obtainment method being shimmering Fabsol's Vodka.
|
||||
// Same as Cirrus' Vodka, due to the obtainment method being shimmering Cirrus' Vodka.
|
||||
Item.value = Item.sellPrice(silver: 30);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ namespace CalamityMod.Items.Mounts
|
||||
public override void UpdateEffects(Player player)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (modPlayer.fabsolVodka)
|
||||
if (modPlayer.cirrusVodka)
|
||||
player.GetDamage<GenericDamageClass>() += 0.1f;
|
||||
|
||||
if (player.velocity.Length() > 9f)
|
||||
|
||||
@@ -4,7 +4,8 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Mounts
|
||||
{
|
||||
public class Fabsol : ModItem, ILocalizedModType
|
||||
[LegacyName("Fabsol")]
|
||||
public class PrincessSpiritinaBottle : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Mounts";
|
||||
public override void SetDefaults()
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 391 B After Width: | Height: | Size: 391 B |
@@ -9,7 +9,8 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public class FabsolsVodka : ModItem, ILocalizedModType
|
||||
[LegacyName("FabsolsVodka")]
|
||||
public class CirrusVodka : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
@@ -30,7 +31,7 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(30, 42, ModContent.BuffType<FabsolVodkaBuff>(), CalamityUtils.MinutesToFrames(15), true);
|
||||
Item.DefaultToFood(30, 42, ModContent.BuffType<CirrusVodkaBuff>(), CalamityUtils.MinutesToFrames(15), true);
|
||||
// Cirrus overcharges: 10% sell value instead of 20%
|
||||
Item.value = Item.sellPrice(silver: 30);
|
||||
Item.rare = ItemRarityID.LightRed;
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 790 B After Width: | Height: | Size: 790 B |
@@ -19,6 +19,11 @@ CinnamonRollBuff: {
|
||||
Description: Mana regen rate and fire debuff damage increased, defense reduced
|
||||
}
|
||||
|
||||
CirrusVodkaBuff: {
|
||||
DisplayName: Fab
|
||||
Description: You feel fabulous
|
||||
}
|
||||
|
||||
EverclearBuff: {
|
||||
DisplayName: Everclear
|
||||
Description: Damage increased, life regen and defense reduced
|
||||
@@ -29,11 +34,6 @@ EvergreenGinBuff: {
|
||||
Description: Sickness and water debuff damage increased, life regen reduced
|
||||
}
|
||||
|
||||
FabsolVodkaBuff: {
|
||||
DisplayName: Fab
|
||||
Description: You feel fabulous
|
||||
}
|
||||
|
||||
FireballBuff: {
|
||||
DisplayName: Fireball
|
||||
Description: Fire debuff damage increased, life regen reduced
|
||||
|
||||
@@ -22,15 +22,6 @@ ExoThrone: {
|
||||
'''
|
||||
}
|
||||
|
||||
Fabsol: {
|
||||
DisplayName: Princess Spirit in a Bottle
|
||||
Tooltip:
|
||||
'''
|
||||
Summons the spirit of Cirrus, the Drunk Princess, in her alicorn form
|
||||
Mounting will transform Cirrus, dismounting transforms her back
|
||||
'''
|
||||
}
|
||||
|
||||
FollyFeed: {
|
||||
DisplayName: Folly Feed
|
||||
Tooltip: Summons a rideable monstrosity
|
||||
@@ -62,6 +53,15 @@ OnyxExcavatorKey: {
|
||||
'''
|
||||
}
|
||||
|
||||
PrincessSpiritinaBottle: {
|
||||
DisplayName: Princess Spirit in a Bottle
|
||||
Tooltip:
|
||||
'''
|
||||
Summons the spirit of Cirrus, the Drunk Princess, in her alicorn form
|
||||
Mounting will transform Cirrus, dismounting transforms her back
|
||||
'''
|
||||
}
|
||||
|
||||
SuspiciousLookingJellyBean: {
|
||||
DisplayName: Suspicious Looking Jelly Bean
|
||||
Tooltip: JELLY BEAN
|
||||
|
||||
@@ -192,6 +192,17 @@ CinnamonRoll: {
|
||||
'''
|
||||
}
|
||||
|
||||
CirrusVodka: {
|
||||
DisplayName: Cirrus' Vodka
|
||||
Tooltip:
|
||||
'''
|
||||
{0}% increased damage, but lowers defense by {1}%
|
||||
Increases immune time after being struck
|
||||
{$Common.AlcoholWarning}
|
||||
This magical liquor is highly sought by those with a refined palate
|
||||
'''
|
||||
}
|
||||
|
||||
Everclear: {
|
||||
DisplayName: Everclear
|
||||
Tooltip:
|
||||
@@ -215,17 +226,6 @@ EvergreenGin: {
|
||||
'''
|
||||
}
|
||||
|
||||
FabsolsVodka: {
|
||||
DisplayName: Fabsol's Vodka
|
||||
Tooltip:
|
||||
'''
|
||||
{0}% increased damage, but lowers defense by {1}%
|
||||
Increases immune time after being struck
|
||||
{$Common.AlcoholWarning}
|
||||
This magical liquor is highly sought by those with a refined palate
|
||||
'''
|
||||
}
|
||||
|
||||
Fireball: {
|
||||
DisplayName: Fireball
|
||||
Tooltip:
|
||||
|
||||
@@ -343,7 +343,7 @@ DILF: {
|
||||
|
||||
FAP: {
|
||||
DisplayName: Drunk Princess
|
||||
Census.SpawnCondition: Have {$Items.Potions.FabsolsVodka.DisplayName} [i:CalamityMod/FabsolsVodka] in your inventory in Hardmode
|
||||
Census.SpawnCondition: Have {$Items.Potions.CirrusVodka.DisplayName} [i:CalamityMod/CirrusVodka] in your inventory in Hardmode or defeat Calamitas Clone/Plantera
|
||||
Name.Cirrus: Cirrus
|
||||
|
||||
Chat: {
|
||||
|
||||
@@ -1654,8 +1654,8 @@ DukeEditFailed:
|
||||
rev.Add(ItemID.FairyQueenMasterTrophy);
|
||||
rev.Add(ItemID.FairyQueenPetItem, 4);
|
||||
|
||||
// GFB Fabsol's Vodka and Terraformer drop
|
||||
GFB.Add(ModContent.ItemType<FabsolsVodka>(), 1, 1, 9999, true);
|
||||
// GFB Cirrus' Vodka and Terraformer drop
|
||||
GFB.Add(ModContent.ItemType<CirrusVodka>(), 1, 1, 9999, true);
|
||||
GFB.Add(ItemID.Clentaminator2, hideLootReport: true);
|
||||
|
||||
// Lore
|
||||
|
||||
@@ -2701,8 +2701,8 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
// Extraneous potions
|
||||
npcLoot.DefineConditionalDropSet(() => true).Add(DropHelper.PerPlayer(ModContent.ItemType<OmegaHealingPotion>(), 1, 5, 15), hideLootReport: true); // Healing Potions don't show up in the Bestiary
|
||||
|
||||
// Fabsol Mount
|
||||
npcLoot.AddIf((info) => info.player.Calamity().fabsolVodka, ModContent.ItemType<Fabsol>());
|
||||
// Alicorn Mount
|
||||
npcLoot.AddIf((info) => info.player.Calamity().cirrusVodka, ModContent.ItemType<PrincessSpiritinaBottle>());
|
||||
|
||||
// Normal drops: Everything that would otherwise be in the bag
|
||||
var normalOnly = npcLoot.DefineNormalOnlyDropSet();
|
||||
|
||||
@@ -3879,7 +3879,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
target.AddBuff(ModContent.BuffType<EvergreenGinBuff>(), MaxCirrusAlcoholDebuffDuration);
|
||||
break;
|
||||
case 5:
|
||||
target.AddBuff(ModContent.BuffType<FabsolVodkaBuff>(), MaxCirrusAlcoholDebuffDuration);
|
||||
target.AddBuff(ModContent.BuffType<CirrusVodkaBuff>(), MaxCirrusAlcoholDebuffDuration);
|
||||
break;
|
||||
case 6:
|
||||
target.AddBuff(ModContent.BuffType<FireballBuff>(), MaxCirrusAlcoholDebuffDuration);
|
||||
|
||||
@@ -660,7 +660,7 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
|
||||
foreach (Player player in Main.ActivePlayers)
|
||||
{
|
||||
bool hasVodka = player.InventoryHas(ModContent.ItemType<FabsolsVodka>()) || player.PortableStorageHas(ModContent.ItemType<FabsolsVodka>());
|
||||
bool hasVodka = player.InventoryHas(ModContent.ItemType<CirrusVodka>()) || player.PortableStorageHas(ModContent.ItemType<CirrusVodka>());
|
||||
if (hasVodka)
|
||||
return Main.hardMode;
|
||||
else
|
||||
@@ -828,10 +828,10 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
if (player.Calamity().aquaticHeart && !player.Calamity().aquaticHeartHide && ChildSafety.Disabled)
|
||||
dialogue.Add(this.GetLocalizedValue("Chat.HasAnahitaTrans"));
|
||||
|
||||
if (player.Calamity().fabsolVodka)
|
||||
if (player.Calamity().cirrusVodka)
|
||||
dialogue.Add(this.GetLocalizedValue("Chat.HasVodka"));
|
||||
|
||||
if (player.HasItem(ModContent.ItemType<Fabsol>()))
|
||||
if (player.HasItem(ModContent.ItemType<PrincessSpiritinaBottle>()))
|
||||
{
|
||||
dialogue.Add(this.GetLocalizedValue("Chat.HasAlicorn1"));
|
||||
dialogue.Add(this.GetLocalizedValue("Chat.HasAlicorn2"));
|
||||
@@ -911,7 +911,7 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
.AddWithCustomValue(ModContent.ItemType<Rum>(), Item.buyPrice(gold: 3))
|
||||
.AddWithCustomValue(ModContent.ItemType<Tequila>(), Item.buyPrice(gold: 3))
|
||||
.AddWithCustomValue(ModContent.ItemType<Fireball>(), Item.buyPrice(gold: 3))
|
||||
.AddWithCustomValue(ModContent.ItemType<FabsolsVodka>(), Item.buyPrice(gold: 3))
|
||||
.AddWithCustomValue(ModContent.ItemType<CirrusVodka>(), Item.buyPrice(gold: 3))
|
||||
.AddWithCustomValue(ModContent.ItemType<Vodka>(), Item.buyPrice(gold: 4), Condition.DownedMechBossAll)
|
||||
.AddWithCustomValue(ModContent.ItemType<Screwdriver>(), Item.buyPrice(gold: 4), Condition.DownedMechBossAll)
|
||||
.AddWithCustomValue(ModContent.ItemType<WhiteWine>(), Item.buyPrice(gold: 4), Condition.DownedMechBossAll)
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Boss";
|
||||
|
||||
public override string Texture => "CalamityMod/Items/Potions/Alcohol/FabsolsVodka";
|
||||
public override string Texture => "CalamityMod/Items/Potions/Alcohol/CirrusVodka";
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
@@ -97,7 +97,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info)
|
||||
{
|
||||
Projectile.Kill();
|
||||
target.AddBuff(ModContent.BuffType<FabsolVodkaBuff>(), 54000);
|
||||
target.AddBuff(ModContent.BuffType<CirrusVodkaBuff>(), 54000);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -134,7 +134,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info)
|
||||
{
|
||||
if (Projectile.hostile)
|
||||
target.AddBuff(ModContent.BuffType<FabsolVodkaBuff>(), 54000);
|
||||
target.AddBuff(ModContent.BuffType<CirrusVodkaBuff>(), 54000);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Systems.Collections
|
||||
BuffType<CinnamonRollBuff>(),
|
||||
BuffType<EverclearBuff>(),
|
||||
BuffType<EvergreenGinBuff>(),
|
||||
BuffType<FabsolVodkaBuff>(),
|
||||
BuffType<CirrusVodkaBuff>(),
|
||||
BuffType<FireballBuff>(),
|
||||
BuffType<GrapeBeerBuff>(),
|
||||
BuffType<MargaritaBuff>(),
|
||||
|
||||
@@ -68,10 +68,10 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
|
||||
public static void HoverItemIcon()
|
||||
{
|
||||
bool vodka = Main.LocalPlayer.HeldItem.type == ModContent.ItemType<FabsolsVodka>() && Main.zenithWorld;
|
||||
bool vodka = Main.LocalPlayer.HeldItem.type == ModContent.ItemType<CirrusVodka>() && Main.zenithWorld;
|
||||
if (vodka)
|
||||
{
|
||||
Main.LocalPlayer.cursorItemIconID = ModContent.ItemType<FabsolsVodka>();
|
||||
Main.LocalPlayer.cursorItemIconID = ModContent.ItemType<CirrusVodka>();
|
||||
}
|
||||
else if (Main.LocalPlayer.HasItem(ModContent.ItemType<CeremonialUrn>()))
|
||||
{
|
||||
@@ -94,12 +94,12 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
int top = j - tile.TileFrameY / 18;
|
||||
|
||||
if (!Main.LocalPlayer.HasItem(ModContent.ItemType<AshesofCalamity>()) &&
|
||||
!Main.LocalPlayer.HasItem(ModContent.ItemType<CeremonialUrn>()) && !(Main.LocalPlayer.HeldItem.type == ModContent.ItemType<FabsolsVodka>() && Main.zenithWorld))
|
||||
!Main.LocalPlayer.HasItem(ModContent.ItemType<CeremonialUrn>()) && !(Main.LocalPlayer.HeldItem.type == ModContent.ItemType<CirrusVodka>() && Main.zenithWorld))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool vodka = Main.LocalPlayer.HeldItem.type == ModContent.ItemType<FabsolsVodka>() && Main.zenithWorld;
|
||||
bool vodka = Main.LocalPlayer.HeldItem.type == ModContent.ItemType<CirrusVodka>() && Main.zenithWorld;
|
||||
|
||||
if (NPC.AnyNPCs(ModContent.NPCType<SupremeCalamitas>()) || BossRushEvent.BossRushActive)
|
||||
return true;
|
||||
@@ -117,7 +117,7 @@ namespace CalamityMod.Tiles.Furniture.CraftingStations
|
||||
|
||||
if (vodka)
|
||||
{
|
||||
Main.LocalPlayer.ConsumeItem(ModContent.ItemType<FabsolsVodka>(), true);
|
||||
Main.LocalPlayer.ConsumeItem(ModContent.ItemType<CirrusVodka>(), true);
|
||||
for (int f = 0; f < Main.maxNPCs; f++)
|
||||
{
|
||||
if (Main.npc[f].type == ModContent.NPCType<FAP>() && Main.npc[f].active)
|
||||
|
||||
@@ -464,7 +464,7 @@ namespace CalamityMod
|
||||
if (modPlayer.rampartOfDeities && hurtInfo.Damage > 200)
|
||||
extraIFrames += 30;
|
||||
|
||||
if (modPlayer.fabsolVodka)
|
||||
if (modPlayer.cirrusVodka)
|
||||
{
|
||||
if (hurtInfo.Damage == 1)
|
||||
extraIFrames += 5;
|
||||
|
||||
Reference in new issue
Block a user