Пример #1
0
 public override bool UseItem(Player player)
 {
     if (player.altFunctionUse == 2)
     {
         markedPoint = default;
         Thaumaturgy.NewText(player, "Tether point reset.", 135, 115, 255);
         Main.PlaySound(SoundID.Item73.WithVolume(0.5f), player.Center);
         return(true);
     }
     if (markedPoint == default)
     {
         Thaumaturgy.NewText(player, "Tether point marked.", 135, 115, 255);
         markedPoint = player.position;
         Main.PlaySound(SoundID.Item73.WithVolume(0.5f), player.Center);
     }
     else
     {
         Thaumaturgy.NewText(player, "The tether yanks you through space and time.", 135, 115, 255);
         player.Teleport(markedPoint);
         Main.PlaySound(SoundID.Item74.WithVolume(0.5f), player.Center);
         markedPoint = default;
     }
     return(true);
 }
Пример #2
0
 public override bool UseItem(Player player)
 {
     Main.anglerQuestFinished = false;
     Thaumaturgy.NewText(player, "Time seems to slow for a moment.", 100, 100, 255);
     return(true);
 }