-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move PlayerExperience from Infiltrates to InfiltrateFor #20106
Conversation
788244d
to
e9e0fee
Compare
1cbc9e2
to
6624be8
Compare
6624be8
to
eb217e0
Compare
I think the experience added by infiltration is bugged, as it reset the experience to 0 initially, and then it sets it to 2635 somehow as shown below - there doesn't seem to be a pattern to it. I've tested the original game's experience and normally it increments by 50 per infiltration as you've described in your original post. |
eb217e0
to
042bfd2
Compare
It seems I have forgotten to divide InfiltratesForCash percentage by 100. The 2635 was probably meant to be 18. |
6fef14b
to
0fbb5a0
Compare
0fbb5a0
to
da24cb0
Compare
da24cb0
to
0eeb4fa
Compare
rebased |
Needs a small rebase. |
0eeb4fa
to
269df49
Compare
4193e5a
to
8782284
Compare
8782284
to
8fca987
Compare
Looking at the code for the first time it seems that the There is no way to refactor these classes, let them inherit or make use of a util class? |
8fca987
to
eb79d41
Compare
I don't think it's necessary, these are fairly tiny traits. A util class wouldn't help much with code sharing as there's actually very little duplicated code here. |
Needs a rebase. |
16064d7
to
5f4ad28
Compare
Rebased and update rule fixed |
5f4ad28
to
da83190
Compare
This allows customisation per InfiltrateFor trait instead of only for the unit infiltrating. This will allow us to determine what infiltration is worth more than the other.
The reward currently is 10 per infiltration I've given a different reward for infiltrating for cash, 5 + 1% for cash stolen
I've also removed XP from infiltrating fakes