Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

drugwars

Package Overview
Dependencies
Maintainers
1
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drugwars - npm Package Compare versions

Comparing version 0.1.70 to 0.1.71

8

lib/army.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc