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.0.93 to 0.0.94

12

lib/army.js

@@ -275,6 +275,2 @@ 'use strict';

serie.splice(0, 1);
if (unit.skill_type === 'bodyshield' && serie.length > 0) {
unit.takeDamages(serie[0].dmg * attackpower / 100, skill_type, round, serie[0].author, serie[0].num);
serie.splice(0, 1);
}
}

@@ -300,6 +296,2 @@ });

serie.splice(0, 1);
if (unit.skill_type === 'bodyshield') {
unit.takeDamages(serie[0].dmg * attackpower / 100, skill_type, round, serie[0].author, serie[0].num);
serie.splice(0, 1);
}
}

@@ -326,6 +318,2 @@ });

serie.splice(0, 1);
if (unit.skill_type === 'bodyshield' && serie.length > 0 && serie[0] && serie[0].dmg) {
unit.takeDamages(serie[0].dmg * attackpower / 100, skill_type, round, serie[0].author, serie[0].num);
serie.splice(0, 1);
}
}

@@ -332,0 +320,0 @@ });

2

package.json
{
"name": "drugwars",
"version": "0.0.93",
"version": "0.0.94",
"description": "A lightweight JavaScript library for DrugWars",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -248,7 +248,2 @@ import { orderBy } from 'lodash';

serie.splice(0, 1);
if(unit.skill_type === 'bodyshield' && serie.length > 0)
{
unit.takeDamages(serie[0].dmg * attackpower / 100, skill_type, round , serie[0].author, serie[0].num);
serie.splice(0, 1);
}
}

@@ -274,7 +269,2 @@ });

serie.splice(0, 1);
if(unit.skill_type === 'bodyshield')
{
unit.takeDamages(serie[0].dmg * attackpower / 100, skill_type, round , serie[0].author, serie[0].num);
serie.splice(0, 1);
}
}

@@ -301,7 +291,2 @@ });

serie.splice(0, 1);
if(unit.skill_type === 'bodyshield' && serie.length > 0 && serie[0] && serie[0].dmg)
{
unit.takeDamages(serie[0].dmg * attackpower / 100, skill_type, round , serie[0].author, serie[0].num);
serie.splice(0, 1);
}
}

@@ -308,0 +293,0 @@ });

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