manhattan, screwdriver, cinnamon roll
This commit is contained in:
1 parent
0402103320
commit
35fa516f07
9 files changed
+110
-19
No files matched your search
@@ -0,0 +1,24 @@
|
||||
using CalamityMod.Items.Potions.Alcohol;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Alcohol
|
||||
{
|
||||
public class ManhattanBuff : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().ColdDebuffMultiplier += Manhattan.DebuffBoost;
|
||||
player.Calamity().WaterDebuffMultiplier -= Manhattan.DebuffLoss;
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 626 B |
@@ -18,8 +18,10 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().screwdriver = true;
|
||||
player.Calamity().ColdDebuffMultiplier += Screwdriver.DebuffBoost;
|
||||
player.Calamity().WaterDebuffMultiplier -= Screwdriver.DebuffLoss;
|
||||
player.blockRange += 5;
|
||||
player.tileSpeed += 1;
|
||||
player.wallSpeed += 1;
|
||||
player.GetDamage(DamageClass.Generic) *= 0.75f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -475,6 +475,15 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (cinnamonRoll)
|
||||
{
|
||||
if (dashStart)
|
||||
Player.velocity.X *= 3;
|
||||
else if (Player.dashDelay == -1)
|
||||
Player.velocity.X *= 0.8f;
|
||||
}
|
||||
|
||||
if (Player.dashDelay == -1)
|
||||
IsFirstDashFrame = false;
|
||||
else
|
||||
@@ -3553,12 +3562,6 @@ namespace CalamityMod.CalPlayer
|
||||
Player.moveSpeed += CaribbeanRum.MoveSpeedBoost;
|
||||
}
|
||||
|
||||
if (cinnamonRoll)
|
||||
{
|
||||
Player.manaRegenDelayBonus += CinnamonRoll.ManaRegenDelayBonus;
|
||||
Player.manaRegenBonus += CinnamonRoll.ManaRegenBonus;
|
||||
}
|
||||
|
||||
if (starBeamRye)
|
||||
{
|
||||
Player.manaRegenBonus += (int)((Player.statManaMax2/3f + 1) *2f );
|
||||
|
||||
@@ -13,13 +13,6 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
// Mana has a stupid formula so it won't go into the tooltip
|
||||
public static float ManaRegenDelayBonus = 1f;
|
||||
public static int ManaRegenBonus = 10;
|
||||
public static float HeatDebuffBoost = 0.5f;
|
||||
public static float DefenseLossPercent = 0.1f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((1f + HeatDebuffBoost).ToString(), DefenseLossPercent.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Potions.Alcohol
|
||||
{
|
||||
public class Manhattan : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Potions";
|
||||
|
||||
public static float DebuffBoost = 0.5f;
|
||||
public static float DebuffLoss = 0.5f;
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs((DebuffBoost).ToPercent(), DebuffLoss.ToPercent());
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 20;
|
||||
ItemID.Sets.DrinkParticleColors[Type] = new Color[3] {
|
||||
new Color(225, 84, 33),
|
||||
new Color(244, 176, 77),
|
||||
new Color(255, 218, 102)
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.DefaultToFood(14, 28, ModContent.BuffType<ScrewdriverBuff>(), CalamityUtils.MinutesToFrames(5), true);
|
||||
|
||||
Item.value = Item.sellPrice(silver: 40);
|
||||
Item.rare = ItemRarityID.LightPurple;
|
||||
}
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.Ale).
|
||||
AddIngredient<HallowedOre>(3).
|
||||
AddTile(TileID.Kegs).
|
||||
Register();
|
||||
|
||||
CreateRecipe().
|
||||
AddIngredient(ItemID.BottledWater).
|
||||
AddIngredient<BloodOrb>(5).
|
||||
AddIngredient<HallowedOre>().
|
||||
AddTile(TileID.AlchemyTable).
|
||||
Register()
|
||||
.DisableDecraft();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 647 B |
@@ -1595,3 +1595,8 @@ PopoNoselessBuff: {
|
||||
DisplayName: Noseless Popo
|
||||
Description: Your nose has been stolen!
|
||||
}
|
||||
|
||||
ManhattanBuff: {
|
||||
DisplayName: Manhattan Buff
|
||||
Description: Mods.CalamityMod.Buffs.ManhattanBuff.Description
|
||||
}
|
||||
@@ -183,8 +183,8 @@ CinnamonRoll: {
|
||||
DisplayName: Cinnamon Roll
|
||||
Tooltip:
|
||||
'''
|
||||
{0}% increased maximum Mana
|
||||
{1}% increased mana consumption
|
||||
Greatly increased dash speed
|
||||
Greatly reduced dash distance
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
@@ -239,6 +239,16 @@ GrapeBeer: {
|
||||
'''
|
||||
}
|
||||
|
||||
Manhattan: {
|
||||
DisplayName: Manhattan
|
||||
Tooltip:
|
||||
'''
|
||||
{0}% increased Cold debuff damage
|
||||
{1}% decreased Water debuff damage
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
|
||||
Margarita: {
|
||||
DisplayName: Margarita
|
||||
Tooltip:
|
||||
@@ -314,8 +324,8 @@ Screwdriver: {
|
||||
DisplayName: Screwdriver
|
||||
Tooltip:
|
||||
'''
|
||||
{0}% increased Cold debuff damage
|
||||
{1}% decreased Water debuff damage
|
||||
Greatly increased tile and wall placement range and speed
|
||||
Greatly reduceed damage dealt
|
||||
{$Common.AlcoholWarning}
|
||||
'''
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user