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.69 to 0.1.70

4

lib/army.js

@@ -168,5 +168,5 @@ 'use strict';

var attack = _buildings2.default[mines.key].attack * Math.ceil(mines.lvl * 5);
if (attack > 100) attack = 100;
if (attack > 50) attack = 50;
for (var i = 0; i < parseInt(Math.ceil(mines.lvl / 5)); i++) {
actions.push([attack, { type: 'splash', range: 5 }, _buildings2.default[mines.key].name, 1, 1]);
actions.push([attack, { type: 'splash', range: 3 }, _buildings2.default[mines.key].name, 1, 1]);
}

@@ -173,0 +173,0 @@ }

@@ -500,3 +500,3 @@ {

"desc": "Put some mines around your base and suprise your opponents!",
"feature": "Splash damage triggered once at the first round",
"feature": "Splash damage triggered once at the first round (Each 5 level hit 3 enemies)",
"base_price": 5000,

@@ -503,0 +503,0 @@ "drugs_cost": 1000,

{
"name": "drugwars",
"version": "0.1.69",
"version": "0.1.70",
"description": "A lightweight JavaScript library for DrugWars",

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

@@ -119,6 +119,6 @@ import { orderBy } from 'lodash';

let attack = dwbuildings[mines.key].attack * Math.ceil(mines.lvl * 5)
if (attack > 100)
attack = 100;
if (attack > 50)
attack = 50;
for (let i = 0; i < parseInt(Math.ceil(mines.lvl / 5)); i++) {
actions.push([attack, { type: 'splash', range: 5 }, dwbuildings[mines.key].name, 1, 1]);
actions.push([attack, { type: 'splash', range: 3 }, dwbuildings[mines.key].name, 1, 1]);
}

@@ -125,0 +125,0 @@ }

@@ -500,3 +500,3 @@ {

"desc": "Put some mines around your base and suprise your opponents!",
"feature": "Splash damage triggered once at the first round",
"feature": "Splash damage triggered once at the first round (Each 5 level hit 3 enemies)",
"base_price": 5000,

@@ -503,0 +503,0 @@ "drugs_cost": 1000,

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