Show colours added by skills
This commit is contained in:
parent
a64572e6a2
commit
efb55f6024
@ -173,91 +173,113 @@ module.exports = {
|
|||||||
SKILLS: {
|
SKILLS: {
|
||||||
Amplify: {
|
Amplify: {
|
||||||
description: 'increase the magic damage dealt by a cryp',
|
description: 'increase the magic damage dealt by a cryp',
|
||||||
colours: '2 Blue',
|
colours: '1 Green 1 Blue',
|
||||||
},
|
},
|
||||||
|
|
||||||
Attack: {
|
Attack: {
|
||||||
description: 'a fast attack with red damage',
|
description: 'a fast attack with red damage',
|
||||||
upgrades: 'combine with any combination of 2 red / blue / green - red + blue attack not implemented',
|
upgrades: 'combine with 2 red / blue / green - red + blue attack not implemented',
|
||||||
},
|
},
|
||||||
|
|
||||||
Banish: {
|
Banish: {
|
||||||
description: 'target cryp is prevented from casting any skills and taking any damage',
|
description: 'target cryp is prevented from casting any skills and taking any damage',
|
||||||
|
colours: '1 Red 1 Green',
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
Blast: {
|
Blast: {
|
||||||
description: 'blast the target with magic damage',
|
description: 'blast the target with magic damage',
|
||||||
|
colours: '2 Blue',
|
||||||
},
|
},
|
||||||
|
|
||||||
Block: {
|
Block: {
|
||||||
description: 'decreases incoming red damage for 1T',
|
description: 'decreases incoming red damage for 1T',
|
||||||
upgrades: 'combine with any combination of 2 red / blue / green',
|
upgrades: 'combine with 2 red / blue / green',
|
||||||
},
|
},
|
||||||
|
|
||||||
Buff: {
|
Buff: {
|
||||||
description: 'increase target cryp speed',
|
description: 'increase target cryp speed',
|
||||||
upgrades: 'combine with any combination of 2 red / blue / green',
|
upgrades: 'combine with 2 red / blue / green',
|
||||||
},
|
},
|
||||||
|
|
||||||
Clutch: {
|
Clutch: {
|
||||||
description: '??????',
|
description: '??????',
|
||||||
|
colours: '1 Red 1 Green',
|
||||||
|
},
|
||||||
|
|
||||||
|
Corrupt: {
|
||||||
|
description: 'Inflicts a dot to attacker while active',
|
||||||
|
colours: '2 Blue',
|
||||||
},
|
},
|
||||||
|
|
||||||
Curse: {
|
Curse: {
|
||||||
description: 'target cryp takes increased magic damage',
|
description: 'target cryp takes increased magic damage',
|
||||||
|
colours: '2 Blue',
|
||||||
},
|
},
|
||||||
|
|
||||||
Debuff: {
|
Debuff: {
|
||||||
description: 'reduce target cryp speed',
|
description: 'reduce target cryp speed',
|
||||||
upgrades: 'combine with any combination of 2 red / blue / green',
|
upgrades: 'combine with 2 red / blue / green',
|
||||||
},
|
},
|
||||||
|
|
||||||
Decay: {
|
Decay: {
|
||||||
description: 'afflict a cryp with a blue damage based damage over time debuff',
|
description: 'afflict a cryp with a blue damage based damage over time debuff',
|
||||||
|
colours: '1 Green 1 Blue',
|
||||||
},
|
},
|
||||||
|
|
||||||
Empower: {
|
Empower: {
|
||||||
description: 'increase the red damage dealt by a cryp',
|
description: 'increase the red damage dealt by a cryp',
|
||||||
|
colours: '2 Red',
|
||||||
},
|
},
|
||||||
|
|
||||||
Haste: {
|
Haste: {
|
||||||
description: 'magical skill that increases speed of target cryp',
|
description: 'magical skill that increases speed of target cryp',
|
||||||
|
colours: '1 Red 1 Blue',
|
||||||
},
|
},
|
||||||
|
|
||||||
Heal: {
|
Heal: {
|
||||||
description: 'heal a cryp with blue damage',
|
description: 'heal a cryp with blue damage',
|
||||||
|
colours: '2 Green',
|
||||||
},
|
},
|
||||||
|
|
||||||
Hex: {
|
Hex: {
|
||||||
description: 'magical bsed skill that prevents target cryp from using any skills',
|
description: 'magical bsed skill that prevents target cryp from using any skills',
|
||||||
|
colours: '1 Red 1 Blue',
|
||||||
},
|
},
|
||||||
|
|
||||||
Hostility: {
|
Hostility: {
|
||||||
description: 'magical bsed skill that prevents target cryp from using any skills',
|
description: 'magical bsed skill that prevents target cryp from using any skills',
|
||||||
|
colours: '2 Blue',
|
||||||
},
|
},
|
||||||
|
|
||||||
Invert: {
|
Invert: {
|
||||||
description: 'reverse ???',
|
description: 'reverse ???',
|
||||||
|
colours: '1 Red 1 Blue',
|
||||||
},
|
},
|
||||||
|
|
||||||
Parry: {
|
Parry: {
|
||||||
description: 'prevents all red damage for 1T',
|
description: 'prevents all red damage for 1T',
|
||||||
|
colours: '2 Red',
|
||||||
},
|
},
|
||||||
|
|
||||||
Purge: {
|
Purge: {
|
||||||
description: 'remove magical buffs from target cryp',
|
description: 'remove magical buffs from target cryp',
|
||||||
|
colours: '2 Green',
|
||||||
},
|
},
|
||||||
|
|
||||||
Purify: {
|
Purify: {
|
||||||
description: 'remove magical debuffs from target cryp',
|
description: 'remove magical debuffs from target cryp',
|
||||||
|
colours: '1 Red 1 Green',
|
||||||
},
|
},
|
||||||
|
|
||||||
Recharge: {
|
Recharge: {
|
||||||
description: 'restore something',
|
description: 'restore something',
|
||||||
|
colours: '1 Red 1 Blue',
|
||||||
},
|
},
|
||||||
|
|
||||||
Reflect: {
|
Reflect: {
|
||||||
description: 'reflect damage back to attacker',
|
description: 'reflect damage back to attacker',
|
||||||
|
colours: '2 Green',
|
||||||
},
|
},
|
||||||
|
|
||||||
Riposte: {
|
Riposte: {
|
||||||
@ -266,18 +288,22 @@ module.exports = {
|
|||||||
|
|
||||||
Ruin: {
|
Ruin: {
|
||||||
description: 'Stun the entire enemy team',
|
description: 'Stun the entire enemy team',
|
||||||
|
colours: '2 Blue',
|
||||||
},
|
},
|
||||||
|
|
||||||
Shield: {
|
Shield: {
|
||||||
description: 'grants immunity to magical skills to target cryp',
|
description: 'grants immunity to magical skills to target cryp',
|
||||||
|
colours: '1 Green 1 Blue',
|
||||||
},
|
},
|
||||||
|
|
||||||
Silence: {
|
Silence: {
|
||||||
description: 'prevent target cryp from casting magical skills',
|
description: 'prevent target cryp from casting magical skills',
|
||||||
|
colours: '1 Green 1 Blue',
|
||||||
},
|
},
|
||||||
|
|
||||||
Siphon: {
|
Siphon: {
|
||||||
description: 'siphon hp from target cryp with a blue damage based debuff',
|
description: 'siphon hp from target cryp with a blue damage based debuff',
|
||||||
|
colours: '1 Green 1 Blue',
|
||||||
},
|
},
|
||||||
|
|
||||||
Slay: {
|
Slay: {
|
||||||
@ -286,55 +312,62 @@ module.exports = {
|
|||||||
|
|
||||||
Slow: {
|
Slow: {
|
||||||
description: 'magical skill that reduces speed of target cryp',
|
description: 'magical skill that reduces speed of target cryp',
|
||||||
|
colours: '1 Red 1 Green',
|
||||||
},
|
},
|
||||||
|
|
||||||
Snare: {
|
Snare: {
|
||||||
description: 'prevents red skills from being used for 2T',
|
description: 'prevents red skills from being used for 2T',
|
||||||
|
colours: '2 Red',
|
||||||
},
|
},
|
||||||
|
|
||||||
Strangle: {
|
Strangle: {
|
||||||
description: 'Stun the enemy and inflict physical damage over 3T',
|
description: 'Stun the enemy and inflict physical damage over 3T',
|
||||||
|
colours: '2 Red',
|
||||||
},
|
},
|
||||||
|
|
||||||
Strike: {
|
Strike: {
|
||||||
description: 'Fast attacking red skill',
|
description: 'Fast attacking red skill',
|
||||||
|
colours: '2 Red',
|
||||||
},
|
},
|
||||||
|
|
||||||
Stun: {
|
Stun: {
|
||||||
description: 'red skill hat prevents target cryp from using any skills',
|
description: 'red skill hat prevents target cryp from using any skills',
|
||||||
upgrades: 'combine with any combination of 2 red / blue / green',
|
upgrades: 'combine with 2 red / blue / green',
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
Taunt: {
|
Taunt: {
|
||||||
description: 'Enemy skills will prioritise cryps with this skill active',
|
description: 'Enemy skills will prioritise cryps with this skill active',
|
||||||
|
colours: '1 Red 1 Green',
|
||||||
},
|
},
|
||||||
|
|
||||||
Throw: {
|
Throw: {
|
||||||
description: 'stuns and makes the target take increased red damage',
|
description: 'stuns and makes the target take increased red damage',
|
||||||
|
colours: '2 Green',
|
||||||
},
|
},
|
||||||
|
|
||||||
Triage: {
|
Triage: {
|
||||||
description: 'grants a blue damage based healing over time buff',
|
description: 'grants a blue damage based healing over time buff',
|
||||||
|
colours: '2 Green',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
SPECS: {
|
SPECS: {
|
||||||
Damage: {
|
Damage: {
|
||||||
description: 'Increase red / green / blue power stats cryp',
|
description: 'Increase red / green / blue power stats cryp',
|
||||||
upgrades: 'combine with any combination of 2 red / blue / green',
|
upgrades: 'combine with 2 red / blue / green',
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
Hp: {
|
Hp: {
|
||||||
description: 'Increases health of cryp',
|
description: 'Increases health of cryp',
|
||||||
upgrades: 'combine with any combination of 2 red / blue / green',
|
upgrades: 'combine with 2 red / blue / green',
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
Speed: {
|
Speed: {
|
||||||
description: 'Increases speed of cryp',
|
description: 'Increases speed of cryp',
|
||||||
upgrades: 'combine with any combination of 2 red / blue / green',
|
upgrades: 'combine with 2 red / blue / green',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ const Y = MENU_MAIN.y();
|
|||||||
const WIDTH = MENU_MAIN.width();
|
const WIDTH = MENU_MAIN.width();
|
||||||
const HEIGHT = MENU_MAIN.height();
|
const HEIGHT = MENU_MAIN.height();
|
||||||
|
|
||||||
const UNEQUIP_Y = Y + Math.floor(HEIGHT * 0.5);
|
const UNEQUIP_Y = Y + Math.floor(HEIGHT * 0.7);
|
||||||
const UNEQUIP_WIDTH = Math.floor(WIDTH * 0.4);
|
const UNEQUIP_WIDTH = Math.floor(WIDTH * 0.4);
|
||||||
const UNEQUIP_HEIGHT = Math.floor(HEIGHT * 0.15);
|
const UNEQUIP_HEIGHT = Math.floor(HEIGHT * 0.15);
|
||||||
|
|
||||||
@ -23,12 +23,14 @@ class ItemInfo extends Phaser.Scene {
|
|||||||
let title = item;
|
let title = item;
|
||||||
let description = 'Description missing';
|
let description = 'Description missing';
|
||||||
let upgrades = '';
|
let upgrades = '';
|
||||||
|
let colours = '';
|
||||||
|
|
||||||
// Replace item text with constants if it exists
|
// Replace item text with constants if it exists
|
||||||
if (SKILLS[item]) {
|
if (SKILLS[item]) {
|
||||||
title = `Skill Item - ${item}`;
|
title = `Skill Item - ${item}`;
|
||||||
({ description } = SKILLS[item]);
|
({ description } = SKILLS[item]);
|
||||||
if (SKILLS[item].upgrades) ({ upgrades } = SKILLS[item]);
|
if (SKILLS[item].upgrades) ({ upgrades } = SKILLS[item]);
|
||||||
|
if (SKILLS[item].colours) ({ colours } = SKILLS[item]);
|
||||||
} else if (SPECS[item]) {
|
} else if (SPECS[item]) {
|
||||||
title = `Spec Item - ${item}`;
|
title = `Spec Item - ${item}`;
|
||||||
({ description } = SPECS[item]);
|
({ description } = SPECS[item]);
|
||||||
@ -47,6 +49,11 @@ class ItemInfo extends Phaser.Scene {
|
|||||||
this.add
|
this.add
|
||||||
.text(X, Y + HEIGHT * 0.25, upgrades, TEXT.NORMAL)
|
.text(X, Y + HEIGHT * 0.25, upgrades, TEXT.NORMAL)
|
||||||
.setWordWrapWidth(WIDTH * 0.75);
|
.setWordWrapWidth(WIDTH * 0.75);
|
||||||
|
if (colours !== '') {
|
||||||
|
this.add
|
||||||
|
.text(X, Y + HEIGHT * 0.35, `Adds ${colours} to cryp`, TEXT.NORMAL)
|
||||||
|
.setWordWrapWidth(WIDTH * 0.75);
|
||||||
|
}
|
||||||
|
|
||||||
if (!cryp) return true;
|
if (!cryp) return true;
|
||||||
const ws = this.registry.get('ws');
|
const ws = this.registry.get('ws');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user