Comparing version 0.0.85 to 0.0.86
@@ -56,5 +56,5 @@ 'use strict'; | ||
if (this.name === 'attacker') current = "D";else current = "A"; | ||
var currentlog = '[' + this.name.substring(0, 1).toUpperCase() + '] group (' + this.i + ') with ' + this.undead + ' x ' + this.key + ' with ' + parseFloat(this.grouhealth).toFixed(3) + ' HP take <span style="color:red">' + damages + ' DMG</span> from [' + current + '] ' + name + ' (' + num + ') with <span style="color:blueviolet"> "' + skill_type + '"</span>.'; | ||
this.grouhealth = this.grouhealth - damages; | ||
var healthAfterDamage = this.grouhealth; | ||
var currentlog = '[' + this.name.substring(0, 1).toUpperCase() + '] group (' + this.i + ') with ' + this.undead + ' x ' + this.key + ' with ' + parseFloat(this.grouhealth).toFixed(3) + ' HP take <span style="color:red">' + damages + ' DMG</span> from [' + current + '] ' + name + ' (' + num + ') with <span style="color:blueviolet"> "' + skill_type + '"</span>.'; | ||
if (healthAfterDamage <= 0) { | ||
@@ -61,0 +61,0 @@ currentlog += ' [' + this.name.substring(0, 1).toUpperCase() + '] group (' + this.i + ') ' + this.undead + ' x ' + this.key + ' are <span style="color:darkorange">now dead.</span>'; |
@@ -65,3 +65,3 @@ 'use strict'; | ||
this.use -= 1; | ||
this.health = 25; | ||
this.health = 250; | ||
} else if (this.skill.type === 'dodge' && this.use > 0 && damages > this.health) { | ||
@@ -68,0 +68,0 @@ this.use -= 1; |
@@ -373,3 +373,3 @@ { | ||
"desc": "He is a freelancer that will only listen to money, but you won’t regret spending on him.", | ||
"feature": "BULLETPROOF : He is immortal... or not. He just has a bulletproof vest. This unit will obtain 25HP back when he reaches 0. Elite.", | ||
"feature": "BULLETPROOF : He is immortal... or not. He just has a bulletproof vest. This unit will obtain 250HP back when he reaches 0. Elite.", | ||
"attack": 10000, | ||
@@ -376,0 +376,0 @@ "health": 7500, |
{ | ||
"name": "drugwars", | ||
"version": "0.0.85", | ||
"version": "0.0.86", | ||
"description": "A lightweight JavaScript library for DrugWars", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -22,3 +22,3 @@ import { orderBy } from 'lodash'; | ||
{ | ||
let group_amount = unit.amount | ||
let group_amount = unit.amount; | ||
while(group_amount>0) | ||
@@ -25,0 +25,0 @@ { |
@@ -37,5 +37,5 @@ import units from './units.json'; | ||
current = "A" | ||
this.grouhealth = this.grouhealth- damages | ||
let currentlog = `[${this.name.substring(0,1).toUpperCase()}] group (${this.i}) with ${this.undead} x ${this.key} with ${parseFloat(this.grouhealth).toFixed(3)} HP take <span style="color:red">${damages} DMG</span> from [${current}] ${name} (${num}) with <span style="color:blueviolet"> "${skill_type}"</span>.` | ||
this.grouhealth = this.grouhealth - damages | ||
let healthAfterDamage = this.grouhealth ; | ||
let currentlog = `[${this.name.substring(0,1).toUpperCase()}] group (${this.i}) with ${this.undead} x ${this.key} with ${parseFloat(this.grouhealth).toFixed(3)} HP take <span style="color:red">${damages} DMG</span> from [${current}] ${name} (${num}) with <span style="color:blueviolet"> "${skill_type}"</span>.` | ||
if (healthAfterDamage <= 0) { | ||
@@ -42,0 +42,0 @@ currentlog+= ` [${this.name.substring(0,1).toUpperCase()}] group (${this.i}) ${this.undead} x ${this.key} are <span style="color:darkorange">now dead.</span>`; |
@@ -50,3 +50,3 @@ import dunits from './units.json'; | ||
this.use -= 1; | ||
this.health = 25; | ||
this.health = 250; | ||
} | ||
@@ -53,0 +53,0 @@ else if(this.skill.type === 'dodge' && this.use > 0 && damages > this.health) |
@@ -373,3 +373,3 @@ { | ||
"desc": "He is a freelancer that will only listen to money, but you won’t regret spending on him.", | ||
"feature": "BULLETPROOF : He is immortal... or not. He just has a bulletproof vest. This unit will obtain 25HP back when he reaches 0. Elite.", | ||
"feature": "BULLETPROOF : He is immortal... or not. He just has a bulletproof vest. This unit will obtain 250HP back when he reaches 0. Elite.", | ||
"attack": 10000, | ||
@@ -376,0 +376,0 @@ "health": 7500, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2457475