public override int use(PlayerBase user, WorldBase world, Vector2 location, GameTime time, BinaryInputManager inputManager) { PlayerFalcon falcon = new PlayerFalcon(user.location, world, (Player)user); world.transformPlayer(falcon); return(base.use(user, world, location, time, inputManager)); }
public override void onUse(WorldBase world, Item harvestTool, Vector2 location, TileType tileType, Entity user) { base.onUse(world, harvestTool, location, tileType, user); if (user is Player) { PlayerFalcon falcon = new PlayerFalcon(user.location, world, (Player)user); world.transformPlayer(falcon); } }