-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResponseOption.cs
More file actions
98 lines (94 loc) · 5.43 KB
/
ResponseOption.cs
File metadata and controls
98 lines (94 loc) · 5.43 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EventCreator
{
public class ResponseOption
{
//Dictionary with default values.
public Dictionary<string, object> myMap = new Dictionary<string, object>()
{
{Keys.TEXT_KEY, null},
{Keys.RESOURCE_STAT_COST_KEY, new List<int>() {0, 0, 0, 0, 0, 0, 0, 0}},
{Keys.PARTY_STAT_COST_KEY, new List<int>() {0, 0, 0, 0, 0, 0, 0, 0}},
{Keys.PARTY_STAT_REQUIREMENT_KEY, new List<int>() {0, 0, 0, 0, 0, 0, 0, 0}},
{Keys.RESOURCE_STAT_REQUIREMENT_KEY, new List<int>() {0, 0, 0, 0, 0, 0, 0, 0}},
{Keys.RESOURCE_MODIFIERS_KEY, new List<int>() {-1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000}},
{Keys.PARTY_STAT_MODIFIERS_KEY, new List<int>() {-1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000}},
{Keys.PASS_TEXT_KEY, ""},
{Keys.WIN_TEXT_KEY, ""},
{Keys.WIN_FOLLOW_UP_KEY, ""},
{Keys.PASS_FOLLOW_UP_KEY, ""},
{Keys.WIN_RESOURCE_CHANGE_KEY, new List<int>() {0, 0, 0, 0, 0, 0, 0, 0}},
{Keys.WIN_PARTY_STAT_CHANGE_KEY, new List<int>() {0, 0, 0, 0, 0, 0, 0, 0}},
{Keys.LOSE_TEXT_KEY, ""},
{Keys.LOSE_FOLLOW_UP_KEY, ""},
{Keys.LOSE_RESOURCE_CHANGE_KEY, new List<int>() {0, 0, 0, 0, 0, 0, 0, 0}},
{Keys.LOSE_PARTY_STAT_CHANGE_KEY, new List<int>() {0, 0, 0, 0, 0, 0, 0, 0}},
{Keys.KILL_PERSON_LOSE_KEY, false},
{Keys.KILL_PERSON_PASS_KEY, false},
{Keys.KILL_PERSON_WIN_KEY, false},
{Keys.REWARD_DISPERSE_LOSE_KEY, 2},
{Keys.REWARD_DISPERSE_WIN_KEY, 2},
};
/// <summary>
/// Creates an empty response option with default values.
/// </summary>
/// <param name="text">The text for the response option.</param>
public ResponseOption(string text)
{
myMap[Keys.TEXT_KEY] = text;
}
/// <summary>
/// Creates a response option with ALL the things!
/// </summary>
/// <param name="text">Text for the response.</param>
/// <param name="resourceStatCosts">Cost for all resource (global) stats.</param>
/// <param name="partyStatCosts">Cost for all party stats.</param>
/// <param name="resourceStatReqs">Requirements for all resource (global) stats.</param>
/// <param name="partyStatReqs">Requirements for all party stats.</param>
/// <param name="resourceStatModifiers">Modifier values for resource (global) stats.</param>
/// <param name="partyStatModifiers">Modifier values for party stats.</param>
/// <param name="winText">Text displayed if you win the event.</param>
/// <param name="passText">Text displayed if you pass the event.</param>
/// <param name="failText">Text displayed if you fail the event.</param>
/// <param name="winFollowUp">File address of follow up event if you win.</param>
/// <param name="passFollowUp">File address of follow up event if you pass.</param>
/// <param name="loseFollowUp">File address of follow up event if you lose.</param>
/// <param name="winResourceChange">Resource (global) stat changes if you win the event.</param>
/// <param name="winPartyStatChange">Party stat changes if you win.</param>
/// <param name="loseResourceChange">Resource (global) stat changes if you lose.</param>
/// <param name="losePartyStatChange">Party stat changes if you lose.</param>
public ResponseOption(string text, List<int> resourceStatCosts, List<int> partyStatCosts, List<int> resourceStatReqs, List<int> partyStatReqs,
List<int> resourceStatModifiers, List<int> partyStatModifiers,
string winText, string passText, string failText, string winFollowUp, string passFollowUp, string loseFollowUp,
List<int> winResourceChange, List<int> winPartyStatChange, List<int> loseResourceChange, List<int> losePartyStatChange,
bool killOnLose, bool killOnPass, bool killOnWin, int disperseWin, int disperseLose)
{
myMap[Keys.TEXT_KEY] = text;
myMap[Keys.PARTY_STAT_COST_KEY] = partyStatCosts;
myMap[Keys.RESOURCE_STAT_COST_KEY] = resourceStatCosts;
myMap[Keys.PARTY_STAT_REQUIREMENT_KEY] = partyStatReqs;
myMap[Keys.RESOURCE_STAT_REQUIREMENT_KEY] = resourceStatReqs;
myMap[Keys.RESOURCE_MODIFIERS_KEY] = resourceStatModifiers;
myMap[Keys.PARTY_STAT_MODIFIERS_KEY] = partyStatModifiers;
myMap[Keys.PASS_TEXT_KEY] = passText;
myMap[Keys.PASS_FOLLOW_UP_KEY] = passFollowUp;
myMap[Keys.WIN_TEXT_KEY] = winText;
myMap[Keys.WIN_FOLLOW_UP_KEY] = winFollowUp;
myMap[Keys.WIN_RESOURCE_CHANGE_KEY] = winResourceChange;
myMap[Keys.WIN_PARTY_STAT_CHANGE_KEY] = winPartyStatChange;
myMap[Keys.LOSE_TEXT_KEY] = failText;
myMap[Keys.LOSE_FOLLOW_UP_KEY] = loseFollowUp;
myMap[Keys.LOSE_RESOURCE_CHANGE_KEY] = loseResourceChange;
myMap[Keys.LOSE_PARTY_STAT_CHANGE_KEY] = losePartyStatChange;
myMap[Keys.KILL_PERSON_WIN_KEY] = killOnWin;
myMap[Keys.KILL_PERSON_PASS_KEY] = killOnPass;
myMap[Keys.KILL_PERSON_LOSE_KEY] = killOnLose;
myMap[Keys.REWARD_DISPERSE_LOSE_KEY] = disperseLose;
myMap[Keys.REWARD_DISPERSE_WIN_KEY] = disperseWin;
}
}
}