Search the Community
Showing results for tags 'cardbase'.
-
UPDATE: We made it! This is now the official cardBase. You can check it out on the usual link in the top bar of the forum. Or Here: https://allcards.skylords.eu/ If you want anything added or changed or have a bug to report, comment below! Known bugs: - Some cards are sorted into the wrong place or display outdated info in the tooltip. This is because some data in the API is out of date and there is not much I can do about it. 1.8: - You can now sort cards in a deck using the arrow keys <- and -> - Booster Simulator now has a button to share a booster 1.7: - Added a Booster Simulator (link in the top bar) - Some Visual Bugfixes Patchnotes 1.6.6: - Added a slider to adjust card size. - Moved view maps button to the top line. - Added easier implementation into existing website. Patchnotes 1.6.5: - Small GUI edits - Made sure cards with bugged API stats still get added to all filters that they provide data for. - Deck pictures now also have a "small" version Patchnotes 1.6: - Massive clean-up and GUI improvements - Added Link Bar on top of page - Decks can now be exported as pictures to link in forum posts (or anywhere else) or downloaded! - Maps can now be sorted by player count Patchnotes 1.5: - Deckbuilding is live! Hover over the INFO text to get started. - Card links are aquired by shift-clicking now. - Decks can be ex/imported. Shift-click on any card in the deck to get a link! - Some minor tweaks to improve usablity on wierd screen resolutions. Patchnotes 1.4: - You can now choose your orb order and sort by cards you could play with it! - Double clicking a card shows a permanent link to the card. - Added Button to reset all filters. Patchnotes 1.3: - Added filters for Rarity, Affinity and Edition. - Added Unit Stat filtering. - Changed all exclusive selectors to Multicheckboxes. You can now filter in much more detail. - Fixed messed up UI for smaller screens - Renamed remaining Back to Purple Patchnotes 1.2: - Added option to sort alphabetically - Upgrades are now always in the correct order - Added Maps View, which includes Minimap previews and loot tables - Renamed Color Black to Purple Patchnotes 1.1: - Greatly improved loading speed and stability. - Tooltip is now displayed next to the card, and intelligently chooses its position to be on screen. - Tooltip now contains upgrades. Effects + where they drop. - Sorting by Orbs or Energy is now exclusive of each other. Bugfixes:- Firefox scrollbar working now. See you in beta.
-
CardBase API For those interested in making applications with BattleForge data, we expose the CardBase API. Note that we are still expanding the CardBase in functionality, so it could be that your application becomes useless in the future.. Just sayin~ This API provides data about Cards and Maps in json format. On this page I will give you the endpoints and required data to make use of this API. Each Response from this API returns the data inside a wrapper APIWrap<T> which looks like this: public class APIWrap<T> //T = Return Type of API Call { public ExceptionData Exception { get; set; } public T Result { get; set; } public bool Success { get; set; } } public class ExceptionData { public int Code { get; set; } public string Name { get; set; } public string Details { get; set; } } EndPoints For Cards EndPoint: http://cardbase.skylords.eu/Cards/GetCards ResultSet: Response of this call is a List<Card>, where Card is the following class: public class Card { public string Name { get; set; } public Rarity Rarity { get; set; } public int Cost { get; set; } public Edition Edition { get; set; } public CardType Type { get; set; } public Color Color { get; set; } public Affinity Affinity { get; set; } public bool IsRanged { get; set; } public int Defense { get; set; } public int Offense { get; set; } public DefenseType DefenseType { get; set; } public OffenseType OffenseType { get; set; } public int UnitCount { get; set; } public int ChargeCount { get; set; } public string Category { get; set; } public List<Ability> Abilities { get; set; } = new List<Ability>(); public List<Upgrade> Upgrades { get; set; } = new List<Upgrade>(); public OrbInfo OrbInfo { get; set; } public string Extra { get; set; } public Media Image { get; set; } } Essentially parameters for this call is ?[Property1]=[Value]&[Property2]=[Value], if the property is a string it will check if given value is inside property value. Example: http://cardbase.skylords.eu/Cards/GetCards?Name=Dread will return all cards with "Dread" in their name. Note that some properties have integers as values, some of these properties represent enums. Property Enums: public enum Rarity { Common = 0, Uncommon = 1, Rare = 2, UltraRare = 3 } public enum Edition { Twilight = 1, Renegade = 2, LostSouls = 4, Amii = 8 } public enum CardType { Spell = 0 Creature = 2, Building = 3, } public enum OffenseType { Small = 0, Medium = 1, Large = 2, XL = 3, Special = 4 } public enum DefenseType { Small = 0, Medium = 1, Large = 2, XL = 3, Building = 4 } public enum AbilityType { Attack = 0, Passive = 1, Activated = 2, Interval = 3, Cast = 4 } public enum Difficulty { Standard = 0, Advanced = 1, Expert = 2 } For Maps EndPoint: http://cardbase.skylords.eu/Maps/GetMaps ResultSet: Response of this call is a List<Map>, where Map is the following class: public class Map { public string Name { get; set; } public string SubTitle { get; set; } public string Campaign { get; set; } public int Players { get; set; } public Edition Edition { get; set; } public string Description { get; set; } public List<string> Goals { get; set; } public List<string> Unlocks { get; set; } public List<string> Prerequisite { get; set; } public Media Image { get; set; } public Media Map { get; set; } public List<string> Difficulties { get; set; } = new List<string>(); public YoutubeVideo WalkThrough { get; set; } public List<Loot> Standard { get; set; } public List<Loot> Advanced { get; set; } public List<Loot> Expert { get; set; } public class Loot { public string CardName { get; set; } public int Era { get; set; } } } Essentially parameters for this call is ?[Property1]=[Value]&[Property2]=[Value], if the property is a string it will check if given value is inside property value. Example: http://cardbase.skylords.eu/Maps/GetMaps?Name=Soul will return all maps with "Soul" in their name. Note that some properties have integers as values, some of these properties represent enums. Property Enums: public enum Edition { Twilight = 1, Renegade = 2, LostSouls = 4, Amii = 8 }