summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/PkInfo.cs
blob: 165e87a36174a37ebffc8a5315a1f07713eb106c (plain)
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
using System;
using System.Collections.Generic;
using KKSG;

namespace XMainClient
{
	public class PkInfo
	{
		public uint percent
		{
			get
			{
				bool flag = this.win + this.lose == 0u;
				uint result;
				if (flag)
				{
					result = 100u;
				}
				else
				{
					bool flag2 = this.win == 0u;
					if (flag2)
					{
						result = 0u;
					}
					else
					{
						result = Math.Max(1u, 100u * this.win / (this.win + this.lose));
					}
				}
				return result;
			}
		}

		public RoleSmallInfo brief;

		public uint win;

		public uint lose;

		public uint point;

		public List<uint> records;
	}
}