public override void UpdateState(Player player) { if (player.controlLeft || player.controlRight) { SymbiotePlayer.Get(player).SymbioteState = new VenomWalk(); } }
public override void UpdateState(Player player) { if (!player.controlLeft && !player.controlRight) { SymbiotePlayer.Get(player).SymbioteState = new VenomIdle(); } }
public override void UpdateState(Player player) { base.UpdateState(player); if (Finished) { SymbiotePlayer.Get(player).SymbioteState = new VenomIdle(); } if (CurrentFrame == 4) { SymbiotePlayer.Get(player).CurrentSymbiote.ShouldHideHair = true; } if (CurrentFrame == 8) { SymbiotePlayer.Get(player).CurrentSymbiote.HasFullyCovered = true; } }
public override void UpdateState(Player player) { SymbiotePlayer.Get(player).BlockControls = true; }
public override bool UseItem(Player player) { SymbiotePlayer.Get(player).CurrentSymbiote = new Venom(); return(true); }
// Makes sure that once player is transformed, they cannot use any items public override bool CanUseItem(Item item, Player player) => !(SymbiotePlayer.Get(player).CurrentSymbiote != null && SymbiotePlayer.Get(player).CurrentSymbiote.IsActive);