Skip to content

Commit

Permalink
Added missing status effects. Frog.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shojy committed Oct 10, 2018
1 parent 761a2a1 commit d32267a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 47 deletions.
52 changes: 6 additions & 46 deletions Tseng/Models/StatusEffect.cs
Expand Up @@ -27,58 +27,18 @@ public enum StatusEffect:uint
Barrier = 0x00010000,
MBarrier = 0x00020000,
Reflect = 0x00040000,
Dual = 0x00080000,
Shield = 0x00100000,
DeathSentence = 0x00200000,
Manipulate = 0x00400000,
Berserk = 0x00800000,
Peerless = 0x01000000,
Paralyzed = 0x02000000,
Darkness = 0x04000000,

//Dual = ????,
//Imprisoned = ????,
//Resist = ????,
//Lucky = ????,

DualDrain = 0x08000000,
DeathForce = 0x10000000,
Resist = 0x20000000,
LuckyGirl = 0x40000000,
Imprisoned = 0x80000000
}

/*
*
1111 0222
1st Part
0000 - None
0001 - Death
0002 - Near-death
0004 - Sleep
0008 - Poison
0010 - Sadness
0020 - Fury
0040 - Confusion
0080 - Silence
0100 - Haste
0200 - Slow
0400 - Stop
0800 - Frog
1000 - Small
2000 - Slow-numb
4000 - Petrify
8000 - Regen
FFFF - All Of The Above
2nd Part
000 - None
001 - Barrier
002 - MBarrier
004 - Reflect
010 - Shield
020 - Death-sentence
040 - Manipulate
080 - Berserk
100 - Peerless
200 - Paralyzed
400 - Darkness
7F7 - All Of The Above
*/
}
8 changes: 7 additions & 1 deletion Tseng/Views/Home/Index.cshtml
Expand Up @@ -310,8 +310,14 @@
} else {
ch.removeClass("hidden");
}
ch.find(' .portrait')
if (char.statusEffects.includes('Frog')) {
ch.find(' .portrait')
.html('<img src="/images/frog.jpg" />');
}
else {
ch.find(' .portrait')
.html('<img src="/images/character-' + char.face + '.png" />');
}
if (char.backRow) {
ch.find('.portrait').addClass('backrow');
Expand Down
Binary file added Tseng/wwwroot/images/frog.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d32267a

Please sign in to comment.