mirror of
https://github.com/YouHaveTrouble/YHTMod.git
synced 2026-05-11 21:56:54 +00:00
fix a typo
This commit is contained in:
@@ -26,7 +26,7 @@ public class ArcaneMissile : ModItem
|
|||||||
|
|
||||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||||
{
|
{
|
||||||
player.GetModPlayer<YhtPlayer>().ArcaneMissle = Item.damage;
|
player.GetModPlayer<YhtPlayer>().ArcaneMissile = Item.damage;
|
||||||
|
|
||||||
base.UpdateAccessory(player, hideVisual);
|
base.UpdateAccessory(player, hideVisual);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ public class ArcaneMissileBehavior : GlobalNPC
|
|||||||
|
|
||||||
var player = Main.LocalPlayer;
|
var player = Main.LocalPlayer;
|
||||||
|
|
||||||
if (player.GetModPlayer<YhtPlayer>().ArcaneMissle != 0 && projectile.DamageType == DamageClass.Magic)
|
if (player.GetModPlayer<YhtPlayer>().ArcaneMissile != 0 && projectile.DamageType == DamageClass.Magic)
|
||||||
{
|
{
|
||||||
// player just crit with magic weapon while having arcane missile accessory
|
// player just crit with magic weapon while having arcane missile accessory
|
||||||
var proj = Projectile.NewProjectileDirect(
|
var proj = Projectile.NewProjectileDirect(
|
||||||
@@ -29,7 +29,7 @@ public class ArcaneMissileBehavior : GlobalNPC
|
|||||||
Main.LocalPlayer.position,
|
Main.LocalPlayer.position,
|
||||||
npc.position.DirectionFrom(Main.LocalPlayer.position),
|
npc.position.DirectionFrom(Main.LocalPlayer.position),
|
||||||
ProjectileID.MagicMissile,
|
ProjectileID.MagicMissile,
|
||||||
player.GetModPlayer<YhtPlayer>().ArcaneMissle,
|
player.GetModPlayer<YhtPlayer>().ArcaneMissile,
|
||||||
0,
|
0,
|
||||||
Main.LocalPlayer.whoAmI
|
Main.LocalPlayer.whoAmI
|
||||||
);
|
);
|
||||||
|
|||||||
+2
-2
@@ -5,7 +5,7 @@ namespace YHTMod;
|
|||||||
|
|
||||||
public class YhtPlayer : ModPlayer
|
public class YhtPlayer : ModPlayer
|
||||||
{
|
{
|
||||||
public int ArcaneMissle = 0;
|
public int ArcaneMissile = 0;
|
||||||
public int KatanaTeleportCooldown = 0;
|
public int KatanaTeleportCooldown = 0;
|
||||||
|
|
||||||
public override void PreUpdate()
|
public override void PreUpdate()
|
||||||
@@ -15,7 +15,7 @@ public class YhtPlayer : ModPlayer
|
|||||||
|
|
||||||
public override void ResetEffects()
|
public override void ResetEffects()
|
||||||
{
|
{
|
||||||
ArcaneMissle = 0;
|
ArcaneMissile = 0;
|
||||||
|
|
||||||
base.ResetEffects();
|
base.ResetEffects();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user