-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExampleTask.cs
More file actions
41 lines (40 loc) · 1.55 KB
/
ExampleTask.cs
File metadata and controls
41 lines (40 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using MelonLoader;
using TasksLib;
namespace ExampleTask
{
public class ExampleTaskMod : MelonMod
{
public override void OnLateInitializeMelon()
{
TasksLibMod.AddTask(new WaifuTask() {
StudentID = 40,
Description = "Mai Waifu wants some soda, but she's banned from using the vending machines. She'll give you $5 to buy one for her.",
Icon = "TaskSodaCan.png",
Lines = new string[6] {
"Don't worry about it, Yan-chan, I'll be fine.", // player rejection
"Well, see, I really want some soda...", // task introductions
"But after the last time I tried to break into the vending machine, they won't even let me near it!",
"Could you get some for me? I'll give you money!",
"Here, this five dollar bill should cover it.", // player accept
"Thank you so much, Yan-chan! Keep the change.", // task completed
}
});
}
class WaifuTask : YandereTask
{
protected override void OnMarkActive()
{
taskman.Yandere.Inventory.Money += 5;
taskman.Yandere.Inventory.UpdateMoney();
}
public override bool IsComplete()
{
return taskman.Yandere.Inventory.Soda;
}
public override void OnTurnedIn()
{
taskman.Yandere.Inventory.Soda = false;
}
}
}
}