Skip to content

Commit

Permalink
Update to v0.1.0
Browse files Browse the repository at this point in the history
1. Fixed a bug that caused weapon modifiers bonuses to disappear after discharging a weapon

2. Updates for Moonveil:
* Fixed the damage increase that applied to the sword as well. Now only on the projectile
* Embellishment of the description
  • Loading branch information
rzc0d3r authored Sep 26, 2024
1 parent c0ce3a8 commit a54ebd5
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Common/Players/ERIPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class ERIPlayer : ModPlayer
{
public bool Blessed = false;
public bool WeaponImbueBlackFlame = false;

public override void ResetEffects()
{
WeaponImbueBlackFlame = false;
Expand Down
21 changes: 8 additions & 13 deletions Content/Items/Weapons/Melee/BlasphemousBlade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ public class BlasphemousBlade : ModItem
int HurtCount = 0;

public int BaseDamage { get; set; } = 55;
float BaseKnockBack = 5f;
float BaseShootSpeed = 14f;

SoundStyle BladeIsChargedSound = new SoundStyle("EldenRingItems/Sounds/cs_c2010.832");
SoundStyle BladeIsDichargedSound = new SoundStyle("EldenRingItems/Sounds/cs_c2010.833");
Expand All @@ -43,7 +41,7 @@ public override void SetDefaults()
Item.height = 92;
Item.DamageType = DamageClass.Melee;
Item.damage = BaseDamage;
Item.knockBack = BaseKnockBack;
Item.knockBack = 5f;
Item.useTime = 30;
Item.useAnimation = 30;
Item.autoReuse = true;
Expand All @@ -54,7 +52,7 @@ public override void SetDefaults()
Item.rare = ItemRarityID.LightRed;

Item.shoot = ModContent.ProjectileType<BloodSlash>();
Item.shootSpeed = BaseShootSpeed;
Item.shootSpeed = 14f;
}

void ResetBladeBonus()
Expand All @@ -64,11 +62,9 @@ void ResetBladeBonus()
MadeChargedAttacks = 0;
BladeIsCharged = false;
Item.shoot = ModContent.ProjectileType<BloodSlash>();
Item.damage = BaseDamage;
Item.knockBack = BaseKnockBack;
Item.shootSpeed = BaseShootSpeed;
Item.useTime = 30;
Item.useAnimation = 30;
Item.shootSpeed -= 6;
Item.useTime += 14;
Item.useAnimation += 14;
}

public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
Expand Down Expand Up @@ -113,10 +109,9 @@ public override void HoldStyle(Player player, Rectangle heldItemFrame)
SoundEngine.PlaySound(BladeIsChargedSound);
BladeIsCharged = true;
Item.shoot = ProjectileID.InfernoFriendlyBlast;
Item.shootSpeed = 20f;
Item.knockBack = 9f;
Item.useTime = 16;
Item.useAnimation = 16;
Item.shootSpeed += 6f;
Item.useTime -= 14;
Item.useAnimation -= 14;
}
}
}
Expand Down
1 change: 0 additions & 1 deletion Content/Items/Weapons/Melee/DarkMoonGreatsword.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source,

void Reset(string addtext="")
{
//Main.NewText(addtext+ "Resetting an interrupted charge DarkMoonGreatsword");
Charging = false;
Item.UseSound = SoundID.Item1;
MadeChargedAttacks = 0;
Expand Down
10 changes: 7 additions & 3 deletions Content/Items/Weapons/Melee/Moonveil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,8 @@ public override void SetDefaults()

public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
Item.damage = BaseDamage;
if (IsCharged)
{
if (MadeChargedAttacks == 0)
Item.damage = BaseDamage * 3;
if (MadeChargedAttacks == MAX_CHARGED_ATTACKS - 1)
{
Item.UseSound = SoundID.Item1;
Expand All @@ -66,6 +63,12 @@ public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source,
return false;
}

public override void ModifyWeaponDamage(Player player, ref StatModifier damage)
{
if (IsCharged)
damage *= 3;
}

public override void HoldStyle(Player player, Rectangle heldItemFrame)
{
if (Main.mouseRight && !IsCharged)
Expand All @@ -78,6 +81,7 @@ public override void HoldStyle(Player player, Rectangle heldItemFrame)
}
}
}

public override void MeleeEffects(Player player, Rectangle hitbox)
{
if (Main.rand.NextBool(3))
Expand Down
2 changes: 2 additions & 0 deletions EldenRingItems.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<ItemGroup>
<None Remove="Content\Buffs\BlessingBuff.png" />
<None Remove="Content\Buffs\StatDebuff\BlackFlameDebuff.png" />
<None Remove="Content\Items\Accessories\CrimsonSeedTalisman.png" />
<None Remove="Content\Items\Accessories\CrimsonSeedTalisman1.png" />
<None Remove="Content\Items\Accessories\RadahnsGreatRune.png" />
<None Remove="Content\Items\Consumables\BlackFlameSpell.png" />
<None Remove="Content\Items\Consumables\GreatKatana2.png" />
Expand Down
2 changes: 1 addition & 1 deletion Localization/en-US_Mods.EldenRingItems.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Items: {
'''
When holding it in your hand, press [c/939393:right mouse button] to charge the katana (spends [c/4110a3:{0}] mana)
When the katana becomes [c/0078bd:charged] it will make a special sound
Attacking from the [c/0078bd:charged state] deals 3 times more damage and also
Attacking from the [c/0078bd:charged state] deals [c/980000:3] times more damage and also
unleashes a huge, super-fast arc that pierces through everything
Attack from [c/939393:normal state] deals normal katana strikes
[c/757575:Katana forged of glintstone.]
Expand Down
2 changes: 1 addition & 1 deletion Localization/ru-RU_Mods.EldenRingItems.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Items: {
'''
При взятии в руку, нажмите [c/939393:правую кнопку мыши] для зарядки меча (тратит [c/4110a3:{0}] маны)
Когда меч станет [c/0078bd:заряжённым] он издаст специальный звук
Атака из [c/0078bd:заряжённого состояния] наносит в 3 раза больше урона, а также
Атака из [c/0078bd:заряжённого состояния] наносит в [c/980000:3] раза больше урона, а также
выпускает огромную сверхбыструю дугу, которая пробивает всё
Атака из [c/939393:обычного состояния] наносит обычные удары катаной
[c/757575:Катана, выкованная из блестящего камня.]
Expand Down
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
displayName = Elden Ring Items
author = rzc0d3r
version = 0.0.9
version = 0.1.0
2 changes: 1 addition & 1 deletion description.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Realizing items from Elden Ring into Terraria!
Realizing items from Elden Ring into Terraria!

0 comments on commit a54ebd5

Please sign in to comment.