This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float GetPvESpellHitRate(byte playerLevel, byte targetLevel, byte spellLevel) | |
{ | |
float hitrate; | |
if ( playerlevel > targetLevel) // Player > Mob, no base miss rate, 0.5% miss per spelllevel lower than moblevel | |
hitrate = 1 + (spellLevel - targetLevel)/200); | |
else if ( targetLevel == playerlevel) // Player == Mob, 15% base miss rate, 0.5% miss per spelllevel lower than moblevel | |
hitrate = 0.85 + (spellLevel - targetlevel)/200); | |
else // Player < Mob, guessed formula | |
hitrate = 0.85 - Math.Sqrt(targetlevel - spellLevel) * 9; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double GetPvESpellHitRate(byte playerLevel, byte targetLevel, byte spellLevel, uint attackerCount) | |
{ | |
double hitrate; | |
if ( playerlevel > targetLevel) // Player > Mob, no base miss rate, 0.5% miss per spelllevel lower than moblevel | |
hitrate = 1 + (spellLevel - targetLevel)/200); | |
else if ( targetLevel == playerlevel) // Player == Mob, 15% base miss rate, 0.5% miss per spelllevel lower than moblevel | |
hitrate = 0.85 + (spellLevel - targetlevel)/200); | |
else // Player < Mob, guessed formula | |
{ | |
if ( spellLevel > targetLevel) return 1; // Just a safety check so we don't sqrt a negative number. this should never happen as a player cannot have higher spells than his level is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background: #222 | |
} | |
div { | |
height: 200px; | |
width: 200px; | |
position:absolute; | |
background: #f51; | |
transition: left .5s ease; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background: #222 | |
} | |
div { | |
height: 200px; | |
width: 200px; | |
position:absolute; | |
background: #f51; | |
transition: left .5s ease; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@keyframes nodeInserted { | |
from { clip: rect(1px, auto, auto, auto); } | |
to { clip: rect(0px, auto, auto, auto); } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-moz-document url("chrome://browser/content/devtools/markup-view.xhtml") { | |
body { font-size: 15px !important; font-family: monospace !important; background: linear-gradient(#282828, #111) !important; background-attachment: fixed !important; } | |
.editable, .codebox { color: #ccc !important; } | |
.tagname { color: #f5a !important; } | |
.attrname { color: #5af !important; } | |
.attrvalue { color: #fa5 !important; } | |
.editable:focus { outline: none !important;} | |
.attreditor:hover { border-bottom: 1px dotted #ccc !important; } | |
.theme-selected { background: transparent !important;} | |
.theme-selected:after { content: ''; position: absolute; top: 0; left: -4000px; width: 8000px; height: 100%; z-index: -1; border: 1px solid #555; background: linear-gradient(#000,#111); } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document regexp("^http(s)?://((www|gist|help|status).)?github.*") { | |
/* Github Dark Theme v1.3.5 (6/18/2013) | |
* https://github.com/Mottie/Github-Dark | |
* http://userstyles.org/styles/37035 | |
* License: http://sam.zoy.org/wtfpl/ | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install: /usr/local/lib/cw/../lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/ | |
programs: =/usr/local/lib/cw/../lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/local/lib/cw/../lib/gcc/:/usr/local/lib/cw/../lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../../armv6l-unknown-linux-gnueabihf/bin/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/local/lib/cw/../lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../../armv6l-unknown-linux-gnueabihf/bin/ | |
libraries: =/usr/local/lib/cw/../lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/local/lib/cw/../lib/gcc/:/usr/local/lib/cw/../lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../../armv6l-unknown-linux-gnueabihf/lib/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/local/lib/cw/../lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../../armv6l-unknown-linux-gnueabihf/lib/:/usr/local/lib/cw/../lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/local/lib/cw/../lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../:/lib/armv6l- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install: /usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/ | |
programs: =/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../../armv6l-unknown-linux-gnueabihf/bin/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../../armv6l-unknown-linux-gnueabihf/bin/ | |
libraries: =/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../../armv6l-unknown-linux-gnueabihf/lib/armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../../armv6l-unknown-linux-gnueabihf/lib/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../armv6l-unknown-linux-gnueabihf/4.7.2/:/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/../../../:/lib/armv6l-unknown-linu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#9576ff | |
#869a00 | |
#c67f66 | |
#ff0095 | |
#809b31 | |
#92bc82 | |
#919191 | |
#ff4593 | |
#f79c0d | |
#d2ad00 |
OlderNewer