+
Skip to content

Hp calc #4

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions osuApiConnector/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
/.classpath
/.project
/.settings

# IntelliJ IDEA
/.idea
/*.iml
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,17 @@ public static double calcCircleSize(double circleSize, @BitwiseMods long mods) {
return circleSize;
}

private double calcHpDrain(double healthDrain, @BitwiseMods long mods) {
if(Easy.is(mods)) {
healthDrain /= 2;
}
if(HardRock.is(mods)) {
healthDrain *= 1.4;
}
// adjusting for DT/HT is impossible and doesnt make a whole lot of sense so lets just ignore it
return healthDrain;
}

public double getApproachRate(@BitwiseMods long mods) {
return calcAR(getApproachRate(), mods);
}
Expand All @@ -283,4 +294,8 @@ public int getTotalLength(@BitwiseMods long mods) {
public double getCircleSize(@BitwiseMods long mods) {
return calcCircleSize(getCircleSize(), mods);
}

public double getHealthDrain(@BitwiseMods long mods) {
return calcHpDrain(getHealthDrain(), mods);
}
}
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载