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

bastion-siege-logic

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bastion-siege-logic - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

dist/buildings/building-types.d.ts

6

dist/battle.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const building_cost_1 = require("./building-cost");
const cost_1 = require("./buildings/cost");
exports.BATTLE_ODDS = {

@@ -24,4 +24,4 @@ solo: {

const partialRequirementPercent = buildingLevelsRequired - completeLevelsRequired;
const buildingCostComplete = building_cost_1.calcBuildingCostUntil(building, currentBuildingLevel, currentBuildingLevel + completeLevelsRequired);
const buildingCostTopoff = building_cost_1.calcBuildingCost(building, currentBuildingLevel + completeLevelsRequired);
const buildingCostComplete = cost_1.calcBuildingCostUntil(building, currentBuildingLevel, currentBuildingLevel + completeLevelsRequired);
const buildingCostTopoff = cost_1.calcBuildingCost(building, currentBuildingLevel + completeLevelsRequired);
const resultCost = {

@@ -28,0 +28,0 @@ gold: buildingCostComplete.gold + (buildingCostTopoff.gold * partialRequirementPercent),

@@ -0,9 +1,13 @@

import { Mystic } from './gamescreen/mystics';
export declare type BattlereportResource = 'gold' | 'gems' | 'karma' | 'terra';
export interface Battlereport {
export interface Battlereport extends BattlereportRaw {
time: number;
}
export interface BattlereportRaw {
attack: boolean;
won: boolean;
friends: string[];
enemies: string[];
enemyAlliance?: string;
enemies: string[];
enemyMystic?: Mystic;
soldiersAlive: number;

@@ -10,0 +14,0 @@ soldiersTotal: number;

@@ -30,4 +30,5 @@ "use strict";

search: '🔎',
alliancebattle: '🕊',
attack: '⚔',
defence: '🏰',
defence: '🛡',
trade: '🎪',

@@ -34,0 +35,0 @@ castle: '🏰',

export * from './emoji';
export * from './gamescreen-type';
export * from './gamescreen';
export * from './gametext';
export * from './mystics';
export * from './player';
export * from './text-cleanup';

@@ -7,3 +7,7 @@ "use strict";

__export(require("./emoji"));
__export(require("./gamescreen"));
__export(require("./gametext"));
__export(require("./mystics"));
__export(require("./player"));
__export(require("./text-cleanup"));
//# sourceMappingURL=index.js.map
export declare const BASTION_SIEGE_BOT_ID = 252148344;
export * from './battle';
export * from './battlereport';
export * from './building-cost';
export * from './building-people';
export * from './building-required';
export * from './buildings';
export * from './gamescreen';
export * from './resources';

@@ -9,5 +9,2 @@ "use strict";

__export(require("./battlereport"));
__export(require("./building-cost"));
__export(require("./building-people"));
__export(require("./building-required"));
__export(require("./buildings"));

@@ -14,0 +11,0 @@ __export(require("./gamescreen"));

{
"name": "bastion-siege-logic",
"version": "1.2.0",
"version": "1.3.0",
"description": "",

@@ -31,13 +31,15 @@ "license": "MIT",

],
"dependencies": {},
"dependencies": {
"emoji-tree": "^1.1.2"
},
"devDependencies": {
"@sindresorhus/tsconfig": "^0.2.1",
"@types/node": "^11.9.0",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"@sindresorhus/tsconfig": "^0.3.0",
"@types/node": "^11.13.0",
"@typescript-eslint/eslint-plugin": "^1.6.0",
"ava": "^1.3.1",
"del-cli": "^1.1.0",
"eslint-config-xo-typescript": "^0.8.0",
"eslint-config-xo-typescript": "^0.9.0",
"nyc": "^13.3.0",
"ts-node": "^8.0.2",
"typescript": "^3.3.3",
"typescript": "^3.4.2",
"xo": "^0.24.0"

@@ -79,3 +81,3 @@ },

"import/named": "warn",
"@typescript-eslint/promise-function-async": "off",
"@typescript-eslint/promise-function-async": "warn",
"ava/no-ignored-test-files": "off"

@@ -82,0 +84,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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