You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
902 B
31 lines
902 B
using Babushka.scripts.CSharp.Common.Inventory;
|
|
using Babushka.scripts.CSharp.GameEntity.Entities;
|
|
using Godot;
|
|
|
|
namespace Babushka.scripts.CSharp.mock;
|
|
|
|
public partial class PotatoQuest:Node
|
|
{
|
|
// Yeli will 5 kartoffeln haben.
|
|
// Man kann Yeli auch erstmal weniger geben.
|
|
// Yeli sagt dir dann, wie viele kartoffeln noch fehlen.
|
|
|
|
public enum State
|
|
{
|
|
Unavailable, // bevor die quest verfügbar ist
|
|
YeliRequest, // Yeli fragt nach kartoffeln
|
|
BringPotato, // Vesna soll kartoffeln bringen
|
|
Done // kartoffeln abgegeben
|
|
}
|
|
|
|
public State state = State.Unavailable;
|
|
public int potatoesWanted = 5;
|
|
public int potatoesBrought = 0;
|
|
public ItemResource itemBlueprint; // potato item
|
|
|
|
public void Activate() // wird von woanders aufgerufen
|
|
{
|
|
if (state == State.Unavailable)
|
|
state = State.YeliRequest;
|
|
}
|
|
} |