FishingController.cs adjusted

This commit is contained in:
s-prechtl 2022-06-10 09:45:03 +02:00
parent e71b64df5a
commit dcda816492

View file

@ -107,8 +107,7 @@ public class FishingController : MonoBehaviour {
return; return;
} }
_iv.RemoveItem(_ic.GetItemByName("Bait"), 1); _iv.RemoveItem(_ic.GetItemByName("Bait"), 1);
_fishedThisDay++;
Vector3 pos = Input.mousePosition; Vector3 pos = Input.mousePosition;
if (Camera.main != null) { if (Camera.main != null) {
@ -134,6 +133,7 @@ public class FishingController : MonoBehaviour {
if (_fishingTime <= MaxTime) { if (_fishingTime <= MaxTime) {
_messageView.SendMessage("Caught!", 1.5f); _messageView.SendMessage("Caught!", 1.5f);
_iv.AddItem(_ic.GetItemByName("Fish"), Math.Max((int)(1 / (_fishingTime / 2)), 1)); _iv.AddItem(_ic.GetItemByName("Fish"), Math.Max((int)(1 / (_fishingTime / 2)), 1));
_fishedThisDay++;
} else { } else {
_messageView.SendMessage("Failed to catch the fish! You were too slow!", 1.5f); _messageView.SendMessage("Failed to catch the fish! You were too slow!", 1.5f);
} }