Exemplo n.º 1
0
 public override void UpdateState(Player player)
 {
     if (player.controlLeft || player.controlRight)
     {
         SymbiotePlayer.Get(player).SymbioteState = new VenomWalk();
     }
 }
Exemplo n.º 2
0
 public override void UpdateState(Player player)
 {
     if (!player.controlLeft && !player.controlRight)
     {
         SymbiotePlayer.Get(player).SymbioteState = new VenomIdle();
     }
 }
Exemplo n.º 3
0
        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;
            }
        }
Exemplo n.º 4
0
 public override void UpdateState(Player player)
 {
     SymbiotePlayer.Get(player).BlockControls = true;
 }
Exemplo n.º 5
0
 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);