6.1.0 • Published 2 years ago

@stephenpoole/deadbydaylight v6.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

deadbydaylight

npm version Known Vulnerabilities Build Status codecov last commit issues

A complete Dead by Daylight dataset.

Getting Started

Install deadbydaylight and save to your package.json in one easy step.

With npm:

npm install @stephenpoole/deadbydaylight

With yarn:

yarn add @stephenpoole/deadbydaylight

Support

To support the development of this library, head over to deadlight.gg and click the Donate button. Any donations are greatly appreciated.

Usage

In the browser globally

  1. Insert the script tag in your html head:
<script src="https://cdn.jsdelivr.net/npm/@stephenpoole/deadbydaylight/en/deadbydaylight.js"></script>
  1. Instantiate and grab some data:
const { Language, Killer } = DeadByDaylight;
const dbd = DeadByDaylight.Client();
const nurse = dbd.killer(Killer.Nurse);
console.log(nurse);

In the browser with webpack

  1. Import deadbydaylight into your application:
import Dbd, { Killer } from "@stephenpoole/deadbydaylight";
  1. Instantiate and grab some data:
const dbd = Dbd();
const nurse = dbd.killer(Killer.Nurse);
console.log(nurse);

Documentation

You'll find the type documentation here: Documentation

Locales

Just like in-game, this library supports the following languages:

English (en)
Spanish (es)
German (de)
French (fr)
Italian (it)
Japanese (jp)
Korean (ko)
Polish (pl)
Russian (ru)
Taiwanese (th)
Turkish (tr)
Simplified Chinese (zh)

To set the locale

In the browser globally:

<script src="https://cdn.jsdelivr.net/npm/@stephenpoole/deadbydaylight/ko/deadbydaylight.js"></script>

In the browser with webpack:

import Dbd from "@stephenpoole/deadbydaylight/ko";

 

If your environment does not care about filesize, you can instead load all locales at once.

<script src="https://cdn.jsdelivr.net/npm/@stephenpoole/deadbydaylight/all/deadbydaylight.js"></script>

or

import Dbd from "@stephenpoole/deadbydaylight/all";

You can then specify the default locale when instantiating, or as a second parameter when calling any method.

const { Language, Killer } = DeadByDaylight;
const dbd = DeadByDaylight.Client(Language.French);
const nurse = dbd.killer(Killer.Nurse);
console.log(nurse); // french

const doctor = dbd.killer(Killer.Doctor, Language.Korean);
console.log(nurse); // korean

Data

Killers

{
        id: 1, (number, required)
        index: "SHAPE", (string, required)
        name: "The Shape", (string, required)
        difficulty: 2, (number, required, of type Difficulty)
        power: "EVIL_WITHIN", (string, required, of type powers[].index)
        story: "Some humans are simply bad seeds. Seeds infused with a distilled...", (string, required)
        description:
            "A haunting Killer, intent on monitoring survivors from a distance to feed his power, %bEvil Within%/b. The more he stalks, the stronger and faster he becomes.", (string, required)
        perks: [
            "SAVE_THE_BEST_FOR_LAST", (string, of type killerPerks[].index)
            ...
        ], (array, required, of length 3)
        addons: [
            "BOYFRIENDS_MEMO", (string, of type killerAddons[].index)
            ...
        ], (array, required)
        image: "http://hxt.nyc3.digitaloceanspaces.com/live/player/SH_charSelect_portrait.png" (string, required)
    }

Survivors

{
        id: 1, (number, required)
        index: "NEA_KARLSSON", (string, required)
        name: "Nea Karlsson", (string, required)
        difficulty: 1, (number, required, of type Difficulty)
        story: "Nea grew up in the small town of Hjo in Sweden. She had a...", (string, required)
        description:
            "An urban artist, able to easily escape and hide.", (string, required)
        perks: [
            "BALANCED_LANDING", (string, of type survivorPerks[].index)
            ...
        ], (array, required, of length 3)
        image: "http://hxt.nyc3.digitaloceanspaces.com/live/player/NK_charSelect_portrait.png" (string, required)
    }

Powers

{
    id: 1, (number, required)
    index: "EVIL_WITHIN", (string, required)
    name: "Evil Within", (string, required)
    owner: "SHAPE", (string, required, of type killers[].index or "NO_ONE")
    description:
        "The darkness inside feeds his determination to take the life of...", (string, required)
    flavor:
        "\"I met him, fifteen years ago; I was told there was nothing left...", (string, optional)
    ], (array, required, at least length 1)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/power/iconPowers_stalker1.png" (string, required)
}

Items

{
    id: 1, (number, required)
    index: "ENGINEERS_TOOLBOX", (string, required)
    name: "Mechanic's Toolbox", (string, required)
    description: "A metal box with specialised mechanics tools. Even without training...", (string, required)
    type: "TOOLBOX", (string, required, of type ItemType)
    rarity: 2, (number, required, of type Rarity)
    addons: [
        "BRAND_NEW_PART", (string, of type survivorAddons[].index)
        ...
    ], (array, required)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/item/iconItems_toolboxMechanics.png" (string, required)
}

Perks

Killer Perks

{
    id: 1, (number, required)
    index: "IRON_GRASP", (string, required)
    name: "Iron Grasp", (string, required)
    rarity: [
        1, (number)
        ...
    ], (array, required, of length 3)
    owner: "NO_ONE", (string, required, of type killers[].index or "NO_ONE")
    description:
        "Your powerful hold on the survivors causes escapes to be nearly impossible. Effects of survivor struggling are reduced by %s. Time to struggle out of your grasp is increased by %s.", (string, required)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/perk/iconPerks_ironGrasp.png", (string, required)
    flavor:
        "\"I met him, fifteen years ago; I was told there was nothing left...", (string, optional)
    tiers: [
        [
            "25%", (string or number)
            ...
        ], (array, of length count of {0} in description)
        ...
    ] (array, required, of length 3)
}

Survivor Perks

{
    id: 1, (number, required)
    index: "SLIPPERY_MEAT", (string, required)
    name: "Slippery Meat", (string, required)
    rarity: [
        1, (number)
        ...
    ], (array, required, of length 3)
    owner: "NO_ONE", (string, required, of type survivors[].index or "NO_ONE")
    description:
        "You have developed an efficient way to get out of Bear Traps and Hooks. Grants up to %s extra escape attempts on the hook. The odds of freeing yourself from Bear Traps are increased by %s.", (string, required)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/perk/iconPerks_slipperyMeat.png", (string, required)
    flavor:
        "\"I met him, fifteen years ago; I was told there was nothing left...", (string, optional)
    tiers: [
        [
            "1%", (string or number)
            ...
        ], (array, of length count of {0} in description)
    ] (array, required, of length 3)
}

Addons

Killer Addons

{
    id: 1, (number, required)
    index: "VHS_PORN", (string, required)
    name: "VHS Porn", (string, required)
    owner: "CLOWN", (string, required, of type killers[].index)
    description: "An all time classic.", (string, required)
    rarity: 2, (number, required, of type Rarity)
    flavor: "\"I met him, fifteen years ago; I was told there was nothing left...", (string, optional)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/addon/iconAddon_toolboxMechanics.png" (string, required)
}

Survivor Addons

{
    id: 1, (number, required)
    index: "CLEAN_RAG", (string, required)
    name: "Clean Rag", (string, required)
    type: "TOOLBOX", (string, required, of type items[].index)
    description: "A mundane rag. Suspiciously clean.", (string, required)
    rarity: 0, (number, required, of type Rarity)
    flavor: "\"I met him, fifteen years ago; I was told there was nothing left...", (string, optional)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/addon/iconAddon_cleanRag.png" (string, required)
}

Offerings

Killer Offerings

{
    id: 1, (number, required)
    index: "HOLLOW_SHELL", (string, required)
    name: "Hollow Shell", (string, required)
    rarity: 1, (number, required, of type Rarity)
    description: "Grants %b25%/b% extra Bloodpoints in all Categories.", (string, required)
    player: 1, (number, required, of type Player)
    flavor:
        "\"An unidentifiable cocoon which was breached by whatever was inside.\"", (string, optional)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/offering/iconFavors_hollowShell.png" (string, required)
}

Survivor Offerings

{
    id: 1, (number, required)
    index: "PETRIFIED_OAK", (string, required)
    name: "Petrified Oak", (string, required)
    rarity: 3, (number, required, of type Rarity)
    description:
        "Calms The Entity and prevents %b1%/b Hook from appearing.", (string, required)
    player: 0, (number, required, of type Player)
    flavor: "\"A deteriorating piece of petrified wood.\"", (string, optional)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/offering/iconFavors_petrifiedOak.png" (string, required)
}

Shared Offerings

{
    id: 1, (number, required)
    index: "BLOODY_PARTY_STREAMERS", (string, required)
    name: "Bloody Party Streamers", (string, required)
    rarity: 2, (number, required, of type Rarity)
    description:
        "Grants %b100%/b% bonus Bloodpoints in all Categories for all Players.", (string, required)
    player: 2, (number, required, of type Player)
    flavor:
        "\"A reminder of a bloody good time when people came together, but left screaming.\"",  (string, optional)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/offering/iconFavors_bloodyPartyStreamers.png" (string, required)
}

Realms

{
    id: 0, (number, required)
    index: "MACMILLAN_ESTATE", (string, required)
    name: "The MacMillan Estate", (string, required)
    owner: "TRAPPER", (string, required, of type killers[].index)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/map/iconMap_Ind_Mine.png" (string, required)
}

Maps

{
    id: 1, (number, required)
    index: "COAL_TOWER", (string, required)
    name: "Coal Tower", (string, required)
    realm: "MACMILLAN_ESTATE", (string, required, of type realms[].index)
    description:
        "Grants %b100%/b% bonus Bloodpoints in all Categories for all Players.", (string, required)
    image: "http://hxt.nyc3.digitaloceanspaces.com/live/map/iconMap_Ind_CoalTower.png" (string, required)
}

License

MIT

6.1.0

2 years ago

6.1.0-beta0

2 years ago

6.0.0-7

2 years ago

6.0.0-5

2 years ago

6.0.0-6

2 years ago

6.0.0-3

2 years ago

6.0.0-4

2 years ago

6.0.0-1

2 years ago

6.0.0-2

2 years ago

6.0.0-alpha0

2 years ago

6.0.0-alpha1

2 years ago

6.0.0-alpha2

2 years ago

6.0.0-alpha3

2 years ago

6.0.0-alpha4

2 years ago

6.0.0-alpha5

2 years ago

6.0.0-alpha6

2 years ago

6.0.0-alpha7

2 years ago

6.0.0-alpha8

2 years ago

6.0.0

2 years ago

6.0.0-slpha9

2 years ago

5.6.0-22

2 years ago

5.6.0-23

2 years ago

5.6.0-20

2 years ago

5.6.0-21

2 years ago

5.6.0

2 years ago

5.6.0-19

2 years ago

5.6.0-17

2 years ago

5.6.0-18

2 years ago

5.6.0-15

2 years ago

5.6.0-16

2 years ago

5.6.0-13

2 years ago

5.6.0-14

2 years ago

5.6.0-11

2 years ago

5.6.0-12

2 years ago

5.6.0-10

2 years ago

5.6.0-6

2 years ago

5.6.0-7

2 years ago

5.6.0-8

2 years ago

5.6.0-9

2 years ago

5.6.0-1

2 years ago

5.6.0-2

2 years ago

5.6.0-3

2 years ago

5.6.0-4

2 years ago

5.6.0-5

2 years ago

5.4.0-1

2 years ago

5.3.0

3 years ago

5.3.0-1

3 years ago

5.3.0-beta.4

3 years ago

5.3.0-beta.3

3 years ago

5.3.0-beta.6

3 years ago

5.3.0-beta.5

3 years ago

5.3.0-beta.7

3 years ago

5.3.0-beta.2

3 years ago

5.2.3

3 years ago

5.3.0-alpha2

3 years ago

5.3.0-alpha

3 years ago

5.3.0-alpha1

3 years ago

5.3.0-alpha4

3 years ago

5.3.0-alpha3

3 years ago

5.3.0-alpha6

3 years ago

5.3.0-alpha5

3 years ago

5.3.0-beta.0

3 years ago

5.3.0-beta.1

3 years ago

5.2.2

3 years ago

5.2.1

3 years ago

5.2.0

3 years ago

5.1.0

3 years ago

5.0.22

3 years ago

5.0.21

3 years ago

5.0.20

3 years ago

5.0.115

3 years ago

5.0.113

3 years ago

5.0.114

3 years ago

5.0.112

3 years ago

5.0.5

3 years ago

5.0.110

3 years ago

5.0.111

3 years ago

5.0.10

3 years ago

5.0.11

3 years ago

5.0.12

3 years ago

5.0.13

3 years ago

5.0.14

3 years ago

5.0.15

3 years ago

5.0.16

3 years ago

5.0.17

3 years ago

5.0.18

3 years ago

5.0.19

3 years ago

5.0.4

3 years ago

5.0.3

3 years ago

5.0.2

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago