Merge branch 'master' of woodyfolsom.net:/opt/git/cs8803p3
Conflicts: src/dk/itu/mario/level/matcher/ProfileMatcher.java
This commit is contained in:
@@ -69,7 +69,6 @@ public class ProfileMatcher {
|
||||
DataRecorder detailedInfo) {
|
||||
System.out
|
||||
.println("Selecting PlayerProfile based on GamePlay metrics, DataRecorder logs.");
|
||||
|
||||
// GAP comes from jump skill and jumper type.
|
||||
// ENEMY comes from run skill and runner type and stomp skill.
|
||||
// HARDER_ENEMY comes from shooting skill and shooting type.
|
||||
@@ -123,7 +122,7 @@ public class ProfileMatcher {
|
||||
// Relevant to: ENEMY.
|
||||
skillHolder = (int) (100 * ((((double) playerMetrics.timeSpentRunning)
|
||||
/ playerMetrics.totalTime + (playerMetrics.timesPressedRun / 75 > 1 ? 0
|
||||
: 1 - (playerMetrics.timesPressedRun / 75.0))) / 2));
|
||||
: 1 - (playerMetrics.timesPressedRun / 200))) / 2));
|
||||
skillVector.put(SKILL.RUN, new Integer(skillHolder));
|
||||
|
||||
// Get shoot skills.
|
||||
@@ -174,6 +173,8 @@ public class ProfileMatcher {
|
||||
|
||||
skillHolder /= skillVector.size();
|
||||
|
||||
skillHolder = (skillHolder + ((int) (100 * ((double) playerMetrics.timesSwichingPower / (playerMetrics.totalpowerBlocks * 2))))) / 2;
|
||||
|
||||
if (skillHolder >= 80) {
|
||||
skillLevel = SKILL_LEVEL.EXPERT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user