mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 16:51:29 +00:00
Rename Defense to Mitigation on sim (since that's what it is)
This commit is contained in:
parent
698a814fc3
commit
18e6e5e5e2
@ -32,7 +32,7 @@ app.controller('MainCtrl', function($scope, $interval) {
|
||||
};
|
||||
|
||||
$scope.offense = 100;
|
||||
$scope.defense = 100;
|
||||
$scope.mitigation = 100;
|
||||
|
||||
$scope.data = [{
|
||||
key: "Cumulative Return",
|
||||
@ -95,18 +95,18 @@ app.controller('MainCtrl', function($scope, $interval) {
|
||||
|
||||
function doCombatRound() {
|
||||
var offense = $scope.offense;
|
||||
var defense = $scope.defense;
|
||||
defense = defense - ((defense - offense) / 2.0);
|
||||
var diff = offense - defense;
|
||||
var mitigation = $scope.mitigation;
|
||||
mitigation = mitigation - ((mitigation - offense) / 2.0);
|
||||
var diff = offense - mitigation;
|
||||
var mean = 0.0;
|
||||
var mult1 = 0.0;
|
||||
var mult2 = 0.0;
|
||||
|
||||
if (offense > 30.0) {
|
||||
mult1 = offense / 200.0 + 25.75;
|
||||
if ((defense / offense) < 0.35) {
|
||||
if ((mitigation / offense) < 0.35) {
|
||||
mult1 = mult1 + 1.0;
|
||||
} else if ((defense / offense) > 0.65) {
|
||||
} else if ((mitigation / offense) > 0.65) {
|
||||
mult1 = mult1 - 1.0;
|
||||
}
|
||||
mult2 = offense / 140 + 18.5;
|
||||
@ -115,10 +115,10 @@ app.controller('MainCtrl', function($scope, $interval) {
|
||||
mult2 = 14.0 + offense / 6.0;
|
||||
}
|
||||
|
||||
if (offense > defense) {
|
||||
if (offense > mitigation) {
|
||||
mean = diff / offense * mult1;
|
||||
} else if (defense > offense) {
|
||||
mean = diff / defense * mult2;
|
||||
} else if (mitigation > offense) {
|
||||
mean = diff / mitigation * mult2;
|
||||
}
|
||||
|
||||
var stddev = 8.8;
|
||||
|
||||
@ -23,8 +23,8 @@
|
||||
<input type="number" name="Offense" ng-model="offense"></input>
|
||||
</div>
|
||||
<div class="input-row">
|
||||
<label>Defense:</label>
|
||||
<input type="number" name="Defense" ng-model="defense"></input>
|
||||
<label>Mitigation:</label>
|
||||
<input type="number" name="mitigation" ng-model="mitigation"></input>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user