forked from acegiak/qudkissing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EffectGlowing.cs
48 lines (42 loc) · 1.09 KB
/
EffectGlowing.cs
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
using XRL.UI;
using XRL.Rules;
using System.Collections.Generic;
using XRL.World.Parts;
namespace XRL.World.Effects
{
public class acegiak_EffectGay : BasicCookingEffect
{
public int percent;
public acegiak_EffectGay()
{
base.DisplayName = "&Mgay";
base.Duration = 3600;
this.percent=Stat.Rnd2.Next(10)+1;
}
string GayWord(){
List<string> gaylist = new List<string>(new string[] { "Happy", "Glowing", "Joyous", "Merry","Amorous","Free","Blushing","Emotional" });
return gaylist[Stat.Rnd2.Next(gaylist.Count)];
}
public override string GetDetails()
{
return GayWord()+", "+GayWord()+". +"+percent.ToString()+"% XP gained";
}
public override void ApplyEffect(GameObject Object)
{
Object.RegisterEffectEvent(this, "Gay");
}
public override void RemoveEffect(GameObject Object)
{
Object.UnregisterEffectEvent(this, "Gay");
}
public override bool FireEvent(Event E)
{
if (E.ID == "Gay")
{
E.AddParameter("Amount", (int)((float)E.GetIntParameter("Amount") * ((percent/100)+1.0f)));
return true;
}
return base.FireEvent(E);
}
}
}