Comparing version 0.1.70 to 0.1.71
@@ -473,6 +473,6 @@ 'use strict'; | ||
if (coordination) power = power + parseInt(coordination.lvl) / 10; | ||
if (power >= 50) { | ||
if (power >= 60) { | ||
if (power > 100) power = 100; | ||
return power; | ||
} else return 50; | ||
} else return 60; | ||
} | ||
@@ -491,6 +491,6 @@ }, { | ||
if (coordination) power = power + parseInt(coordination.lvl) / 10; | ||
if (power >= 50) { | ||
if (power >= 65) { | ||
if (power > 100) power = 100; | ||
return power; | ||
} else return 50; | ||
} else return 65; | ||
} | ||
@@ -497,0 +497,0 @@ }, { |
@@ -49,3 +49,3 @@ 'use strict'; | ||
var defender_start_value = { supply: defenders.supply(), power: defenders.defensiveAttackPower(this.defendersTrainings), size: defenders.size(), cost: defenders.cost(), carry: defenders.capacity() }; | ||
if (attacker_start_value.size === defender_start_value.size) {} else if (attacker_start_value.size > defender_start_value.size) attacker_start_value.power = attacker_start_value.power - 10;else defender_start_value.power = defender_start_value.power - 10; | ||
var defenderPower = defender_start_value.power; | ||
@@ -52,0 +52,0 @@ var attackerPower = attacker_start_value.power; |
{ | ||
"name": "drugwars", | ||
"version": "0.1.70", | ||
"version": "0.1.71", | ||
"description": "A lightweight JavaScript library for DrugWars", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -418,7 +418,7 @@ import { orderBy } from 'lodash'; | ||
power = power + parseInt(coordination.lvl) / 10 | ||
if (power >= 50) { | ||
if (power >= 60) { | ||
if (power > 100) | ||
power = 100 | ||
return power | ||
} else return 50 | ||
} else return 60 | ||
} | ||
@@ -436,7 +436,7 @@ | ||
power = power + parseInt(coordination.lvl) / 10 | ||
if (power >= 50) { | ||
if (power >= 65) { | ||
if (power > 100) | ||
power = 100 | ||
return power | ||
} else return 50 | ||
} else return 65 | ||
} | ||
@@ -443,0 +443,0 @@ |
@@ -24,7 +24,3 @@ import Army from './army'; | ||
const defender_start_value = { supply: defenders.supply(), power: defenders.defensiveAttackPower(this.defendersTrainings), size: defenders.size(), cost: defenders.cost(), carry: defenders.capacity() }; | ||
if (attacker_start_value.size === defender_start_value.size) { | ||
} else if (attacker_start_value.size > defender_start_value.size) | ||
attacker_start_value.power = attacker_start_value.power - 10 | ||
else defender_start_value.power = defender_start_value.power - 10 | ||
const defenderPower = defender_start_value.power | ||
@@ -31,0 +27,0 @@ const attackerPower = attacker_start_value.power |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
3009326
17070