mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31: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.offense = 100;
|
||||||
$scope.defense = 100;
|
$scope.mitigation = 100;
|
||||||
|
|
||||||
$scope.data = [{
|
$scope.data = [{
|
||||||
key: "Cumulative Return",
|
key: "Cumulative Return",
|
||||||
@ -95,18 +95,18 @@ app.controller('MainCtrl', function($scope, $interval) {
|
|||||||
|
|
||||||
function doCombatRound() {
|
function doCombatRound() {
|
||||||
var offense = $scope.offense;
|
var offense = $scope.offense;
|
||||||
var defense = $scope.defense;
|
var mitigation = $scope.mitigation;
|
||||||
defense = defense - ((defense - offense) / 2.0);
|
mitigation = mitigation - ((mitigation - offense) / 2.0);
|
||||||
var diff = offense - defense;
|
var diff = offense - mitigation;
|
||||||
var mean = 0.0;
|
var mean = 0.0;
|
||||||
var mult1 = 0.0;
|
var mult1 = 0.0;
|
||||||
var mult2 = 0.0;
|
var mult2 = 0.0;
|
||||||
|
|
||||||
if (offense > 30.0) {
|
if (offense > 30.0) {
|
||||||
mult1 = offense / 200.0 + 25.75;
|
mult1 = offense / 200.0 + 25.75;
|
||||||
if ((defense / offense) < 0.35) {
|
if ((mitigation / offense) < 0.35) {
|
||||||
mult1 = mult1 + 1.0;
|
mult1 = mult1 + 1.0;
|
||||||
} else if ((defense / offense) > 0.65) {
|
} else if ((mitigation / offense) > 0.65) {
|
||||||
mult1 = mult1 - 1.0;
|
mult1 = mult1 - 1.0;
|
||||||
}
|
}
|
||||||
mult2 = offense / 140 + 18.5;
|
mult2 = offense / 140 + 18.5;
|
||||||
@ -115,10 +115,10 @@ app.controller('MainCtrl', function($scope, $interval) {
|
|||||||
mult2 = 14.0 + offense / 6.0;
|
mult2 = 14.0 + offense / 6.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (offense > defense) {
|
if (offense > mitigation) {
|
||||||
mean = diff / offense * mult1;
|
mean = diff / offense * mult1;
|
||||||
} else if (defense > offense) {
|
} else if (mitigation > offense) {
|
||||||
mean = diff / defense * mult2;
|
mean = diff / mitigation * mult2;
|
||||||
}
|
}
|
||||||
|
|
||||||
var stddev = 8.8;
|
var stddev = 8.8;
|
||||||
|
|||||||
@ -23,8 +23,8 @@
|
|||||||
<input type="number" name="Offense" ng-model="offense"></input>
|
<input type="number" name="Offense" ng-model="offense"></input>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-row">
|
<div class="input-row">
|
||||||
<label>Defense:</label>
|
<label>Mitigation:</label>
|
||||||
<input type="number" name="Defense" ng-model="defense"></input>
|
<input type="number" name="mitigation" ng-model="mitigation"></input>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user