Comparing version 0.1.69 to 0.1.70
@@ -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
3010562
17076