Skip to content

Commit

Permalink
Add Stealth
Browse files Browse the repository at this point in the history
Touches #7.
  • Loading branch information
beheh committed May 19, 2016
1 parent 44cf0ff commit 6fa0193
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
Binary file added assets/images/inplay_minion_stealth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion less/entities.less
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@

div.visuals {
.inplay-base, .inplay-legendary, .inplay-taunt, .inplay-shield, .inplay-frozen, .inplay-divine-shield,
.icon-deathrattle, .icon-trigger, .icon-inspire, .icon-poisonous,
.inplay-stealth, .icon-deathrattle, .icon-trigger, .icon-inspire, .icon-poisonous,
.effect-sleep {
height: 100%;
}
Expand Down
3 changes: 2 additions & 1 deletion ts/TexturePreloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ class CardArtPreloader extends Stream.Writable {
'inhand_minion_legendary', 'mana_crystal', 'inplay_minion', 'effect_sleep',
'hero_power_exhausted', 'hero_armor', 'hero_attack', 'icon_deathrattle', 'icon_inspire',
'icon_poisonous', 'icon_trigger', 'inplay_minion_frozen', 'inplay_minion_legendary',
'inplay_minion_taunt', 'inplay_minion_divine_shield', 'inplay_weapon', 'inplay_weapon_dome'];
'inplay_minion_taunt', 'inplay_minion_divine_shield', 'inplay_minion_stealth',
'inplay_weapon', 'inplay_weapon_dome'];

constructor(public cardArtDirectory?: string, public assetDirectory?: string) {
super({objectMode: true});
Expand Down
7 changes: 7 additions & 0 deletions ts/components/game/visuals/InPlayCardArt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ class InPlayCardArt extends React.Component<EntityProps, {}> {
classes: ["inplay-portrait"]
});

if (entity.isStealthed() || true) {
images.push({
image: "inplay_minion_stealth.png",
classes: ["inplay-stealth"]
});
}

images.push({
image: "inplay_minion.png",
classes: ["inplay-base"]
Expand Down

0 comments on commit 6fa0193

Please sign in to comment.