Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
804 commits
Select commit Hold shift + click to select a range
876986d
Tesoro + Flags + Abbreviations
optc-db Aug 13, 2016
a5eecdb
Oars Challenge + New Crab drop
optc-db Aug 13, 2016
d30800d
Laboon Correction
optc-db Aug 13, 2016
31ee61d
Global Drop Versions
optc-db Aug 13, 2016
4693a39
Binz Special
optc-db Aug 13, 2016
704ef67
Eval to HP Input
optc-db Aug 15, 2016
36fe61d
summer units updates
Zeenigami Aug 17, 2016
9b2143b
Violet, flags
Zeenigami Aug 17, 2016
0357b04
Alias changes
Zeenigami Aug 17, 2016
ccd30ce
1.5
Zeenigami Aug 17, 2016
d96a7ca
Baby 5
Zeenigami Aug 17, 2016
f834134
New Island prep
Zeenigami Aug 22, 2016
afe6b92
World Pirates
Zeenigami Aug 23, 2016
028f057
Cooldowns/details/GW changes
Zeenigami Aug 23, 2016
56586f4
Paralysis Switch
Zeenigami Aug 23, 2016
fb13437
Byrnndi world
Zeenigami Aug 25, 2016
bf6a906
,
Zeenigami Aug 25, 2016
2d61b5b
wrong order
Zeenigami Aug 25, 2016
aba6b9b
swap order
Zeenigami Aug 25, 2016
ec34f16
Matchers
Zeenigami Aug 23, 2016
306225b
Finishing new units
Zeenigami Aug 26, 2016
70cad98
Updated drops/quests
Zeenigami Aug 26, 2016
1ee3216
Kizaru Sugo Previews
Zeenigami Aug 29, 2016
039e0d7
Sugo Update
Zeenigami Aug 30, 2016
cd33130
combo
Zeenigami Aug 30, 2016
72cb093
Kizaru Sugo Units
Zeenigami Aug 31, 2016
2244e51
bit more
Zeenigami Aug 31, 2016
d663b0e
Janky Captains
Zeenigami Aug 31, 2016
3c404b0
turn off tashigi
Zeenigami Aug 31, 2016
c20cc6b
Tashigi Special
Zeenigami Aug 31, 2016
5b32938
Story Units Complete
Zeenigami Sep 1, 2016
503d149
Units + WB Ship
Zeenigami Sep 2, 2016
99a60ea
Ace and Revolutionary Army Fortnight
Zeenigami Sep 6, 2016
f364f26
Revolutionary Army Units
Zeenigami Sep 6, 2016
50a6494
Units updated
Zeenigami Sep 7, 2016
41c215c
index
Zeenigami Sep 7, 2016
aa312b6
Improved Blindness Matcher
optc-db Sep 12, 2016
4934eaa
New Marco, And Coliseum Previews
Zeenigami Sep 13, 2016
9900147
everyone updated
Zeenigami Sep 16, 2016
de3ce62
Updates
Zeenigami Sep 19, 2016
01ffe91
Changed some names to global names
pesaher Sep 19, 2016
014ec48
More units updated
pesaher Sep 19, 2016
5932b72
More units updated
pesaher Sep 19, 2016
9c12581
Mansherry CD
optc-db Sep 20, 2016
88e4ea1
New FN CDs
optc-db Sep 20, 2016
9af4d4c
FN Stuff + Units completion
optc-db Sep 20, 2016
e590ee6
Mansherry CD for Drops page
optc-db Sep 20, 2016
667e8e2
Drop icon
optc-db Sep 20, 2016
8cce786
All new units updated
Zeenigami Sep 24, 2016
1424b32
Merge pull request #39 from pesaher/patch-1
optc-db Sep 24, 2016
862afed
Allias + Quickfix for Merge
optc-db Sep 24, 2016
0e92972
Evolver Fixes
optc-db Sep 26, 2016
edfa37d
all units updated minus stats and new BB Sugo
Zeenigami Sep 27, 2016
9c9be95
Blackbeard works!
Zeenigami Sep 29, 2016
cbce252
BB fix
Zeenigami Sep 29, 2016
0226364
Updates for all units except calc and stats
Zeenigami Sep 30, 2016
1dfeea8
.
Zeenigami Sep 30, 2016
5ad25e3
just need stats
Zeenigami Sep 30, 2016
c449418
more stats
Zeenigami Sep 30, 2016
a90d5e2
details fix
Zeenigami Sep 30, 2016
d45fc3f
Marineford Ace Captain
optc-db Oct 1, 2016
11c6961
That's why you don't make changes on github directly
optc-db Oct 1, 2016
f27411b
Lots of little updates. Stats completed
Zeenigami Oct 3, 2016
fa53d2b
missed a few
Zeenigami Oct 3, 2016
7f17674
.
Zeenigami Oct 3, 2016
d768a7e
Added Turtles
Zeenigami Oct 4, 2016
a12e483
icon fix
Zeenigami Oct 4, 2016
03d2ad0
names, units, all updated
Zeenigami Oct 5, 2016
ce2dd9e
AffinityMult Specials Added
optc-db Oct 7, 2016
efb27d9
Quickfix for switching type in chain
optc-db Oct 7, 2016
2e1cc5b
Added test Page for DB App
optc-db Oct 8, 2016
821e3ce
Improved JSON output
optc-db Oct 8, 2016
8b9526e
Tab Char to 4 Spaces
optc-db Oct 8, 2016
ea0127e
Akainu Raid Added
Zeenigami Oct 14, 2016
2d8020c
Cooldown fix
Zeenigami Oct 14, 2016
4bdd2a0
Color Affinity matcher and Notes
optc-db Oct 15, 2016
edeef34
Fixed Saga Special
optc-db Oct 16, 2016
76f77a6
Halloween Ready
Zeenigami Oct 18, 2016
c56d7f9
Tesoro Map Effects
optc-db Oct 22, 2016
ae036b0
Halloween Sugar
Zeenigami Oct 24, 2016
d718da2
New Sugo & Coliseum Units
Zeenigami Oct 27, 2016
8a3192b
New Sugo Batch
Zeenigami Oct 29, 2016
8944caa
updated stats
Zeenigami Nov 1, 2016
1fc98a6
Units added and Stats filled
Solaris333 Nov 2, 2016
2d1ab29
Global Drops
Solaris333 Nov 2, 2016
2f056fa
Gancho
Solaris333 Nov 2, 2016
c77af3d
Merge pull request #43 from JNathwani/master
Zeenigami Nov 2, 2016
afd8aaf
Cavendish Flags
optc-db Nov 4, 2016
aaa2a04
Test Link to Spanish DB
optc-db Nov 4, 2016
3757b81
Actually push the colorCounter to params
optc-db Nov 5, 2016
3c2d44d
Merge remote-tracking branch 'refs/remotes/optc-db/master'
Solaris333 Nov 13, 2016
e194c45
Merge remote-tracking branch 'refs/remotes/optc-db/master'
Solaris333 Nov 13, 2016
6ab2fd5
Another Update Dump
Solaris333 Nov 13, 2016
2669dd9
Tontatta Warriors Part 2
Solaris333 Nov 13, 2016
6c732ba
Rocketman Ship Healing Added
Solaris333 Nov 13, 2016
ce0a484
Removed Debugger Statement
Solaris333 Nov 13, 2016
b2bf5fd
Added alias to Kid Law
Solaris333 Nov 13, 2016
d37552e
Kid Law Secret RR Captain Fixed
Solaris333 Nov 13, 2016
e911ef0
Merge pull request #45 from JNathwani/master
optc-db Nov 14, 2016
2d28b7d
Mansherry Fortnight Units
Solaris333 Nov 14, 2016
255e796
Updated Index page and Story mode units fixed
Solaris333 Nov 14, 2016
15cc6a0
Merge remote-tracking branch 'refs/remotes/optc-db/master'
Solaris333 Nov 14, 2016
167448d
Revert "Mansherry Fortnight Units"
Solaris333 Nov 14, 2016
e1a023d
Reverted the reversion
Solaris333 Nov 14, 2016
c5fc088
Mansherry Fortnight Conditions and ID drops
Solaris333 Nov 14, 2016
4e13365
Matchers
Solaris333 Nov 14, 2016
3fdf35b
New Units updated
Zeenigami Nov 15, 2016
3e5be74
Revert "Reverted the reversion"
Solaris333 Nov 15, 2016
860d2f5
Merge with master
Solaris333 Nov 15, 2016
d69968f
Merge remote-tracking branch 'refs/remotes/optc-db/master'
Solaris333 Nov 15, 2016
1f3e5d1
Some calculator ability things
Solaris333 Nov 15, 2016
7f86606
Merge pull request #46 from JNathwani/master
optc-db Nov 15, 2016
418e81f
Added new units
Solaris333 Nov 16, 2016
eb27309
Aliases
Solaris333 Nov 16, 2016
b4a8486
typeSort attempt, block commented
Solaris333 Nov 16, 2016
8e922e5
Merge pull request #47 from JNathwani/master
optc-db Nov 16, 2016
c1b0549
Chopper's Special
Solaris333 Nov 16, 2016
e72637c
Merge remote-tracking branch 'refs/remotes/optc-db/master'
Solaris333 Nov 16, 2016
e522dc6
Merge pull request #48 from JNathwani/master
jnathwani Nov 16, 2016
8bb9af0
Fixed descriptions and Abilities
Solaris333 Nov 17, 2016
aa7ab9f
Stats and Gamewith Links
Solaris333 Nov 17, 2016
1905867
Couple Fixes
Solaris333 Nov 21, 2016
bc6d9a7
Fixed drop table
Solaris333 Nov 21, 2016
5d9dd54
Global Tags
Solaris333 Nov 23, 2016
99bfb44
General Update
Solaris333 Nov 25, 2016
698bd17
Grammar and Syntax
Solaris333 Nov 25, 2016
a7d7b92
Story Abilities
Solaris333 Nov 25, 2016
49fb372
New Story Units Captain Abilities
Solaris333 Nov 25, 2016
d03fb04
tesoro
Zeenigami Nov 25, 2016
bd07a6c
Specials and Cooldowns
Solaris333 Nov 26, 2016
fb0a9ce
Stats and stuff
Solaris333 Nov 26, 2016
3476884
What we know so far - Nami & Sanji
Solaris333 Nov 27, 2016
5c7916b
Tesoro fix
Zeenigami Nov 28, 2016
95527f7
General Fixes and Chopper
Nov 28, 2016
1944fe6
Units added to Official
Nov 28, 2016
890d44e
6* Zoro
Zeenigami Nov 29, 2016
c9462aa
Bunch of data dumping and simplified Zoro Special
Nov 29, 2016
0aa29cc
Small edit
Nov 29, 2016
15f7af3
Cooldowns
Nov 30, 2016
1c97cc1
Timeskip (New World) Strawhats information added
Nov 30, 2016
1b6c927
New World Cooldowns
Nov 30, 2016
a94888e
Next stats dump
Nov 30, 2016
a30daa1
Nami Combo
Nov 30, 2016
6b9540d
Cool downs for units
Nov 30, 2016
2cfaf47
Official Site Dump
Dec 1, 2016
f9cfbe9
Aliases and Names
Dec 1, 2016
1c40b45
Final Fix for mixup
Dec 2, 2016
87729d0
Magellan Update
Dec 2, 2016
1cf3109
Magellan Max Stats
Dec 2, 2016
ddf3435
added 30 stamina Magellan
Dec 2, 2016
bd29466
Magellan and Wild Zoro
Dec 3, 2016
45bace6
New units
Dec 3, 2016
58b0b2f
Fixed Aliases
Dec 3, 2016
b76b68c
Smoker Details Fixed
Solaris333 Dec 3, 2016
c679e8b
Unevolved Smoker
Solaris333 Dec 3, 2016
7b3a54c
Akainu detail fixed
Solaris333 Dec 5, 2016
f8d5630
Added Colo Drops units
Solaris333 Dec 5, 2016
b8cc455
Sabo names
Solaris333 Dec 5, 2016
b623cd0
Halloween Kalifa
Solaris333 Dec 6, 2016
994db6f
Rayleigh Shop Filter
Solaris333 Dec 6, 2016
e588c10
Invasion Boss Shanks Added
Solaris333 Dec 6, 2016
ba54920
New Colo Units
Solaris333 Dec 7, 2016
d7675c7
New units update, Shanks, Dellinger, Marguerite
Dec 7, 2016
846b0dc
Some Fixes
Solaris333 Dec 8, 2016
513ec45
Suleiman Special Name
Solaris333 Dec 8, 2016
53ea9c8
New Fortnight, Rebeccah and Kyros
Solaris333 Dec 9, 2016
2117e4f
New units updated
Solaris333 Dec 10, 2016
529834a
Rebecca FN
Solaris333 Dec 12, 2016
e336083
Loads of stuff. Don't hate me
Solaris333 Dec 13, 2016
d049d23
Some Fixes and Improvements
Dec 13, 2016
695c716
New units Updated from Official
Solaris333 Dec 13, 2016
d4ed6e0
Merge branch 'master' of https://github.com/optc-db/optc-db.github.io
Solaris333 Dec 13, 2016
21b2f9a
Title Updates changed
Solaris333 Dec 13, 2016
4853067
Rebecca Captain
Solaris333 Dec 13, 2016
e065809
Added special names
Solaris333 Dec 13, 2016
86fe02a
Garp Family
Solaris333 Dec 13, 2016
15d27cf
Kyros Fix
Solaris333 Dec 13, 2016
c5e3c39
New unit Cooldowns
Solaris333 Dec 14, 2016
8bf1f04
5+ units added
Solaris333 Dec 15, 2016
7b9cd3d
Revert "5+ units added"
Zeenigami Dec 16, 2016
1e47afd
Revert "Revert "5+ units added""
Zeenigami Dec 16, 2016
bac411f
Remove evolution back
Zeenigami Dec 16, 2016
3cc5c88
Baggy Update
Solaris333 Dec 16, 2016
45344f4
5+ units EXP
Solaris333 Dec 16, 2016
a2715d2
Zoro detail fixed
Solaris333 Dec 16, 2016
82dd70c
Sabo flags
Solaris333 Dec 16, 2016
ddd1496
Special Names
Solaris333 Dec 16, 2016
afbb8f7
Buggy Cost
Zeenigami Dec 16, 2016
2442179
5+ Units on Official
Solaris333 Dec 16, 2016
c9103ba
Matchers, Magellan Cooldown
Solaris333 Dec 17, 2016
0eb38b0
Buggy Combo
Solaris333 Dec 17, 2016
149bb11
Buggy Finished
Solaris333 Dec 20, 2016
3afda00
Jesus Description
Dec 20, 2016
751ce0f
3D2Y Return
Solaris333 Dec 22, 2016
dfd3668
+Luffy & Colo Previews
Zeenigami Dec 23, 2016
cb77984
I did some things, but I forgot
Solaris333 Dec 23, 2016
b7c5231
Units added
Dec 27, 2016
0558cd7
Units and Families
Dec 27, 2016
cbab31e
I think I added everything except for stats
Solaris333 Dec 27, 2016
b402b45
Cooldowns
Solaris333 Dec 27, 2016
169297a
one off Cooldowns
Solaris333 Dec 27, 2016
7033bc7
Broke'd
Zeenigami Dec 27, 2016
496492e
Colo stuffs
Solaris333 Dec 28, 2016
de62ccb
Added Dalton and null values as temps
Solaris333 Dec 28, 2016
b39d131
I added new lines, and removed them
Solaris333 Dec 28, 2016
ba56bdb
couple typos
Solaris333 Dec 28, 2016
a170a1b
Temp Luffy Numbers
Zeenigami Dec 28, 2016
79fc788
Captains and
Dec 28, 2016
ff8b704
Cooldowns
Solaris333 Dec 29, 2016
bdc782f
New units PogChamp
Solaris333 Dec 31, 2016
92029c5
GW Links and some fixes
Dec 31, 2016
e5900d2
Whitebeard 6*+ Update
Dec 31, 2016
dbfd646
Some stats
Solaris333 Jan 3, 2017
6263e08
New units dump
Solaris333 Jan 6, 2017
0dfaa81
Usopp details fixed
Solaris333 Jan 6, 2017
42f448d
New units, fixes in specials and abilities
Solaris333 Jan 8, 2017
ca82ae6
Cavedish Fix and Replacement Units Books added
Solaris333 Jan 10, 2017
35dabf4
New units
Solaris333 Jan 10, 2017
5e3de25
added character popover to probability page, still needs styling
jnguyen-ca Jan 10, 2017
6c7f5dd
add quick fill buttons to probability page
jnguyen-ca Jan 10, 2017
6201464
Line 2163 error: evolution: 13412,
Intervencion Jan 10, 2017
ab044e8
Sengoku, Colo, and Secret Baby 5
Solaris333 Jan 10, 2017
8d590d7
style probability popover
jnguyen-ca Jan 11, 2017
28d4a07
I had some typos
Solaris333 Jan 11, 2017
fd2662e
Baby 5 Fix
Solaris333 Jan 15, 2017
80feda8
Bunch of units
Solaris333 Jan 18, 2017
5684a8d
Some stats
Solaris333 Jan 18, 2017
802d455
Ship fix and cooldowns
Solaris333 Jan 18, 2017
aa9e001
small typo
Solaris333 Jan 18, 2017
e7dfc70
Typos and changes to map effects
Solaris333 Jan 20, 2017
6cd64cc
Diamante Special
Solaris333 Jan 22, 2017
76d500a
Special Names
marckaram1 Jan 22, 2017
b41f19d
Added base stats for colosseum t-bone
ribcrush Jan 23, 2017
a038b7d
set colo alvida to global unit
ribcrush Jan 23, 2017
b8efcae
set Gum-Gum Gatling luffy to global unit
ribcrush Jan 23, 2017
23c8cb4
Merge pull request #53 from Intervencion/patch-1
jnathwani Jan 23, 2017
fd1383f
Merge pull request #54 from jnguyen-ca/implement/44/probability-tooltip
jnathwani Jan 23, 2017
edc669f
Whiteboard, Global Drops
Jan 23, 2017
fb179cc
Added raid franky, and FN don sai chars' types and classes
ribcrush Jan 23, 2017
cb8cd52
Added information for don sai FN chars (incomplete)
ribcrush Jan 24, 2017
16b7424
Merge pull request #55 from ribcrush/master
jnathwani Jan 24, 2017
e866837
Added base stats and abilities for don sai FN chars
ribcrush Jan 24, 2017
f6f308d
Typo on don sai special
ribcrush Jan 24, 2017
2cd3b0c
I told you it was YUGE
Jan 24, 2017
6f511f9
Merge remote-tracking branch 'refs/remotes/optc-db/master'
ribcrush Jan 24, 2017
ad6f560
Updates
ribcrush Jan 24, 2017
18b3972
Merge branch 'master' into master
jnathwani Jan 24, 2017
555c401
Updates
ribcrush Jan 26, 2017
53cc690
Added preview for raid franky
ribcrush Jan 26, 2017
648b158
Fixes
ribcrush Jan 26, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added Chopperman.psd
Binary file not shown.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# optc-db.github.io

The Continuation of the highly loved and apreciated OPTC Database.

This is a Database for all things One Piece Treasure Cruise, including Stats, Drops, Sockets and a Damage Calculator.

This project is written in html and js, using angular, bootstrap and jquery.

It is hosted on github pages, although you can just download it and run a local copy.

# Team

* Mondfischer - Took over the Project and responsible for adding features and data
* Zeenigami - Joined shorty after and helps out with data and features (And usually adds the newest Units)
* xfts - The newest member for fact checking and everything concerning translations
* Everyone else on Discord/Reddit/Github etc that reports errors and wrong data

# Installation

Just download it and run it in some kind of Live preview or via xampp. Or better yet access it via http://optc-db.github.io

Keep in mind though that the images are not hosted here, but instead linked from the offical site. So you would need an internet connection to see them.

# Contact
You can reach us on Discord @Mondfischer and @Zeenigami and on Reddit as Mondfischer and Zee_n1

The site also has a google contact form, you can also open an Issue on here.

# License

GNU General Public License

It's also in the Project named LICENSE.md.
7 changes: 7 additions & 0 deletions characters/css/edgy.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,10 @@ a:hover { color: #53dccd; }
.pagination > li:hover > a {
color: white;
}

@media (max-width: 1024px) {
#rightContainer {
background: #404040;
}

}
18 changes: 17 additions & 1 deletion characters/css/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/*
Enable for April First
#rightContainer {
-moz-transform: scale(1, -1);
-webkit-transform: scale(1, -1);
-o-transform: scale(1, -1);
-ms-transform: scale(1, -1);
transform: scale(1, -1);
}
*/

@font-face {
font-family: 'icomoon';
src:url('../../res/icomoon.eot?xewvs9');
Expand Down Expand Up @@ -123,6 +134,7 @@ input[type="text"] {
.BLOCK { background: darkslateblue; }
.BOMB { background: maroon; }
.G { background: orange; }
.EMPTY { background: #777; }

.cell-STR { font-weight: bold; color: red; }
.cell-QCK { font-weight: bold; color: blue; }
Expand Down Expand Up @@ -315,7 +327,7 @@ input[type="text"] {
}

#controllers > span:not(.separator) {
width: 14.28%;
width: 9.09090909%;
display: inline-block;
padding: 2px 0;
cursor: pointer;
Expand Down Expand Up @@ -842,6 +854,10 @@ unit > a:hover, .clickable:hover {
height: 320px;
}

.chart-line {
height: 338px !important;
}

/*******************
* SLOT THUMBNAILS *
*******************/
Expand Down
9 changes: 6 additions & 3 deletions characters/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
<head>

<meta charset="utf-8">
<meta name="description" itemprop="description" content="We data now">
<meta name="description" itemprop="description" content="One Piece Treasure Cruise Character Table">
<meta name="author" content="Zeenigami and Mondfischer">
<meta name="keywords" content="OPTC, One Piece Treasure Cruise, Database, Calculator, Guides, Help, Walkthroughs, Tutorials">

<title>One Piece Treasure Cruise Character Table</title>

Expand Down Expand Up @@ -83,8 +85,9 @@
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-64769042-1', 'auto');
})
(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-73715806-1', 'auto');
ga('send', 'pageview', '/characters');
</script>

Expand Down
161 changes: 157 additions & 4 deletions characters/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Common data *
***************/

var filters = { custom: [ ], classes: [ ], stars: [ ], cost: [ 1, 55 ] };
var filters = { custom: [ ], classes: [ ], stars: [ ], cost: [ 1, 99 ] };

/***************
* Controllers *
Expand All @@ -15,7 +15,10 @@ var app = angular.module('optc');
app.controller('MainCtrl',function($scope, $rootScope, $state, $stateParams, $timeout, $storage, $controller) {

var colors = Chart.defaults.global.colours;
//Change Default Chart Colors
Chart.defaults.global.colours = ["#0e91d3", "#F7464A", "#4D5360", "#97BBCD", "#F7464A", "#4D5360", "#4D5360"];
colors = colors.splice(2,0,colors.splice(1,1)[0]);


if (!$rootScope.hasOwnProperty('nightMode')) {
$rootScope.nightMode = $storage.get('chars.night', false);
Expand Down Expand Up @@ -48,8 +51,8 @@ app.controller('SidebarCtrl',function($scope, $rootScope, $stateParams, $timeout
});

$scope.clearFilters = function() {
filters = { custom: [ ], classes: [ ], stars: [ ], cost: [ 1, 55 ] };
$rootScope.filters = { custom: [ ], classes: [ ], stars: [ ], cost: [ 1, 55 ] };
filters = { custom: [ ], classes: [ ], stars: [ ], cost: [ 1, 99 ] };
$rootScope.filters = { custom: [ ], classes: [ ], stars: [ ], cost: [ 1, 99 ] };
};

$scope.onFilterClick = function(e, value) {
Expand Down Expand Up @@ -139,6 +142,26 @@ app.controller('DetailsCtrl',function($scope, $rootScope, $state, $stateParams,
location: location
});
});

//Super Hack Job to show Karoo as a socket for Vivi
if (family == "Nefertari Vivi"){
if (!$scope.families.filter(function(e) { return e.uid == 445; }).length>0){
$scope.families.push({
uid: 445,
name: units[444].name,
location: {data: ["All Difficulties"], name: "Supersonic Duck Squadron! Fortnight", thumb:445}
});
}
}
if (family == "Demalo Black"){
if (!$scope.families.filter(function(e) { return e.uid == 985; }).length>0){
$scope.families.push({
uid: 985,
name: units[985].name,
location: {data: ["Ultimate"], name: "Clash!? Impostor Straw Hat Pirates", thumb:989}
});
}
}
});
}

Expand All @@ -165,6 +188,7 @@ app.controller('DetailsCtrl',function($scope, $rootScope, $state, $stateParams,
};
$scope.getPrevious = function() { return $stateParams.previous.concat($scope.id); };
$scope.isCaptainHybrid = ($scope.details && $scope.details.captain && $scope.details.captain.global);
$scope.isSailorHybrid = ($scope.details && $scope.details.sailor && $scope.details.sailor.global);
$scope.isSpecialHybrid = ($scope.details && $scope.details.special && $scope.details.special.global);
$scope.isSpecialStaged = ($scope.details && $scope.details.special && $scope.details.special.constructor == Array);

Expand Down Expand Up @@ -199,14 +223,143 @@ app.controller('DetailsCtrl',function($scope, $rootScope, $state, $stateParams,
multiTooltipTemplate: '<%= Math.round(value * { HP: 4000, ATK: 1500, RCV: 550 }[label] / 100) %>'
}
};

if($scope.unit.maxLevel<6)
$scope.showLine = false;

// radars for Line Graph
if ($scope.unit.incomplete) return;
if ($scope.unit.maxLevel>6){
$scope.radarHP = {
labels: [1,Math.ceil($scope.unit.maxLevel*0.1) , Math.ceil($scope.unit.maxLevel*0.2), Math.ceil($scope.unit.maxLevel*0.3), Math.ceil($scope.unit.maxLevel*0.4), Math.ceil($scope.unit.maxLevel*0.5), Math.ceil($scope.unit.maxLevel*0.6),Math.ceil($scope.unit.maxLevel*0.7), Math.ceil($scope.unit.maxLevel*0.8), Math.ceil($scope.unit.maxLevel*0.9), $scope.unit.maxLevel],
series: [$scope.unit.name+' HP'],
data: [
[CharUtils.getStatOfUnit($scope.unit, 'hp', 1),
CharUtils.getStatOfUnit($scope.unit, 'hp', Math.ceil($scope.unit.maxLevel*0.1)),
CharUtils.getStatOfUnit($scope.unit, 'hp', Math.ceil($scope.unit.maxLevel*0.2)),
CharUtils.getStatOfUnit($scope.unit, 'hp', Math.ceil($scope.unit.maxLevel*0.3)),
CharUtils.getStatOfUnit($scope.unit, 'hp', Math.ceil($scope.unit.maxLevel*0.4)),
CharUtils.getStatOfUnit($scope.unit, 'hp', Math.ceil($scope.unit.maxLevel*0.5)),
CharUtils.getStatOfUnit($scope.unit, 'hp', Math.ceil($scope.unit.maxLevel*0.6)),
CharUtils.getStatOfUnit($scope.unit, 'hp', Math.ceil($scope.unit.maxLevel*0.7)),
CharUtils.getStatOfUnit($scope.unit, 'hp', Math.ceil($scope.unit.maxLevel*0.8)),
CharUtils.getStatOfUnit($scope.unit, 'hp', Math.ceil($scope.unit.maxLevel*0.9)),
$scope.unit.maxHP]
]};
$scope.radarATK = {
labels: [1,Math.ceil($scope.unit.maxLevel*0.1) , Math.ceil($scope.unit.maxLevel*0.2), Math.ceil($scope.unit.maxLevel*0.3), Math.ceil($scope.unit.maxLevel*0.4), Math.ceil($scope.unit.maxLevel*0.5), Math.ceil($scope.unit.maxLevel*0.6),Math.ceil($scope.unit.maxLevel*0.7), Math.ceil($scope.unit.maxLevel*0.8), Math.ceil($scope.unit.maxLevel*0.9), $scope.unit.maxLevel],
series: [$scope.unit.name+' ATK'],
data: [
[CharUtils.getStatOfUnit($scope.unit, 'atk', 1),
CharUtils.getStatOfUnit($scope.unit, 'atk', Math.ceil($scope.unit.maxLevel*0.1)),
CharUtils.getStatOfUnit($scope.unit, 'atk', Math.ceil($scope.unit.maxLevel*0.2)),
CharUtils.getStatOfUnit($scope.unit, 'atk', Math.ceil($scope.unit.maxLevel*0.3)),
CharUtils.getStatOfUnit($scope.unit, 'atk', Math.ceil($scope.unit.maxLevel*0.4)),
CharUtils.getStatOfUnit($scope.unit, 'atk', Math.ceil($scope.unit.maxLevel*0.5)),
CharUtils.getStatOfUnit($scope.unit, 'atk', Math.ceil($scope.unit.maxLevel*0.6)),
CharUtils.getStatOfUnit($scope.unit, 'atk', Math.ceil($scope.unit.maxLevel*0.7)),
CharUtils.getStatOfUnit($scope.unit, 'atk', Math.ceil($scope.unit.maxLevel*0.8)),
CharUtils.getStatOfUnit($scope.unit, 'atk', Math.ceil($scope.unit.maxLevel*0.9)),
$scope.unit.maxATK]
]};
$scope.radarRCV = {
labels: [1,Math.ceil($scope.unit.maxLevel*0.1) , Math.ceil($scope.unit.maxLevel*0.2), Math.ceil($scope.unit.maxLevel*0.3), Math.ceil($scope.unit.maxLevel*0.4), Math.ceil($scope.unit.maxLevel*0.5), Math.ceil($scope.unit.maxLevel*0.6),Math.ceil($scope.unit.maxLevel*0.7), Math.ceil($scope.unit.maxLevel*0.8), Math.ceil($scope.unit.maxLevel*0.9), $scope.unit.maxLevel],
series: [$scope.unit.name+' RCV'],
data: [
[CharUtils.getStatOfUnit($scope.unit, 'rcv', 1),
CharUtils.getStatOfUnit($scope.unit, 'rcv', Math.ceil($scope.unit.maxLevel*0.1)),
CharUtils.getStatOfUnit($scope.unit, 'rcv', Math.ceil($scope.unit.maxLevel*0.2)),
CharUtils.getStatOfUnit($scope.unit, 'rcv', Math.ceil($scope.unit.maxLevel*0.3)),
CharUtils.getStatOfUnit($scope.unit, 'rcv', Math.ceil($scope.unit.maxLevel*0.4)),
CharUtils.getStatOfUnit($scope.unit, 'rcv', Math.ceil($scope.unit.maxLevel*0.5)),
CharUtils.getStatOfUnit($scope.unit, 'rcv', Math.ceil($scope.unit.maxLevel*0.6)),
CharUtils.getStatOfUnit($scope.unit, 'rcv', Math.ceil($scope.unit.maxLevel*0.7)),
CharUtils.getStatOfUnit($scope.unit, 'rcv', Math.ceil($scope.unit.maxLevel*0.8)),
CharUtils.getStatOfUnit($scope.unit, 'rcv', Math.ceil($scope.unit.maxLevel*0.9)),
$scope.unit.maxRCV]
]};
}else{
$scope.radarHP = {
labels: ['1',$scope.unit.maxLevel],
series: ['HP'],
data: [
[CharUtils.getStatOfUnit($scope.unit, 'hp', 1) , $scope.unit.maxHP]
]
};
$scope.radarATK = {
labels: ['1',$scope.unit.maxLevel],
series: ['ATK'],
data: [
[CharUtils.getStatOfUnit($scope.unit, 'atk', 1) , $scope.unit.maxATK]
]
};
$scope.radarRCV = {
labels: ['1',$scope.unit.maxLevel],
series: ['RCV'],
data: [
[CharUtils.getStatOfUnit($scope.unit, 'rcv', 1) , $scope.unit.maxRCV]
]
};
}

$scope.$watch('compare',function(compare) {
//Delete old Comparison data
$scope.radar.data = $scope.radar.data.slice(0,1);
$scope.radarHP.data = $scope.radarHP.data.slice(0,1);
$scope.radarHP.series = $scope.radarHP.series.slice(0,1);
$scope.radarATK.data = $scope.radarATK.data.slice(0,1);
$scope.radarATK.series = $scope.radarATK.series.slice(0,1);
$scope.radarRCV.data = $scope.radarRCV.data.slice(0,1);
$scope.radarRCV.series = $scope.radarRCV.series.slice(0,1);
if (compare) {
$scope.radar.data.push([
$scope.compare.maxHP / 4000 * 100,
$scope.compare.maxATK / 1500 * 100,
Math.max(0, $scope.compare.maxRCV / 550 * 100)
]);

$scope.radarHP.series.push($scope.compare.name+' HP');
$scope.radarHP.data.push(
[CharUtils.getStatOfUnit($scope.compare, 'hp', 1),
CharUtils.getStatOfUnit($scope.compare, 'hp', Math.ceil($scope.compare.maxLevel*0.1)),
CharUtils.getStatOfUnit($scope.compare, 'hp', Math.ceil($scope.compare.maxLevel*0.2)),
CharUtils.getStatOfUnit($scope.compare, 'hp', Math.ceil($scope.compare.maxLevel*0.3)),
CharUtils.getStatOfUnit($scope.compare, 'hp', Math.ceil($scope.compare.maxLevel*0.4)),
CharUtils.getStatOfUnit($scope.compare, 'hp', Math.ceil($scope.compare.maxLevel*0.5)),
CharUtils.getStatOfUnit($scope.compare, 'hp', Math.ceil($scope.compare.maxLevel*0.6)),
CharUtils.getStatOfUnit($scope.compare, 'hp', Math.ceil($scope.compare.maxLevel*0.7)),
CharUtils.getStatOfUnit($scope.compare, 'hp', Math.ceil($scope.compare.maxLevel*0.8)),
CharUtils.getStatOfUnit($scope.compare, 'hp', Math.ceil($scope.compare.maxLevel*0.9)),
$scope.compare.maxHP]
);
$scope.radarATK.series.push($scope.compare.name+' ATK');
$scope.radarATK.data.push(
[CharUtils.getStatOfUnit($scope.compare, 'atk', 1),
CharUtils.getStatOfUnit($scope.compare, 'atk', Math.ceil($scope.compare.maxLevel*0.1)),
CharUtils.getStatOfUnit($scope.compare, 'atk', Math.ceil($scope.compare.maxLevel*0.2)),
CharUtils.getStatOfUnit($scope.compare, 'atk', Math.ceil($scope.compare.maxLevel*0.3)),
CharUtils.getStatOfUnit($scope.compare, 'atk', Math.ceil($scope.compare.maxLevel*0.4)),
CharUtils.getStatOfUnit($scope.compare, 'atk', Math.ceil($scope.compare.maxLevel*0.5)),
CharUtils.getStatOfUnit($scope.compare, 'atk', Math.ceil($scope.compare.maxLevel*0.6)),
CharUtils.getStatOfUnit($scope.compare, 'atk', Math.ceil($scope.compare.maxLevel*0.7)),
CharUtils.getStatOfUnit($scope.compare, 'atk', Math.ceil($scope.compare.maxLevel*0.8)),
CharUtils.getStatOfUnit($scope.compare, 'atk', Math.ceil($scope.compare.maxLevel*0.9)),
$scope.compare.maxATK]
);
$scope.radarRCV.series.push($scope.compare.name+' RCV');
$scope.radarRCV.data.push(
[CharUtils.getStatOfUnit($scope.compare, 'rcv', 1),
CharUtils.getStatOfUnit($scope.compare, 'rcv', Math.ceil($scope.compare.maxLevel*0.1)),
CharUtils.getStatOfUnit($scope.compare, 'rcv', Math.ceil($scope.compare.maxLevel*0.2)),
CharUtils.getStatOfUnit($scope.compare, 'rcv', Math.ceil($scope.compare.maxLevel*0.3)),
CharUtils.getStatOfUnit($scope.compare, 'rcv', Math.ceil($scope.compare.maxLevel*0.4)),
CharUtils.getStatOfUnit($scope.compare, 'rcv', Math.ceil($scope.compare.maxLevel*0.5)),
CharUtils.getStatOfUnit($scope.compare, 'rcv', Math.ceil($scope.compare.maxLevel*0.6)),
CharUtils.getStatOfUnit($scope.compare, 'rcv', Math.ceil($scope.compare.maxLevel*0.7)),
CharUtils.getStatOfUnit($scope.compare, 'rcv', Math.ceil($scope.compare.maxLevel*0.8)),
CharUtils.getStatOfUnit($scope.compare, 'rcv', Math.ceil($scope.compare.maxLevel*0.9)),
$scope.compare.maxRCV]
);
}
if (!$scope.$$phase) $scope.$apply();
});
Expand All @@ -217,7 +370,7 @@ app.controller('ColumnsCtrl',function($scope, $rootScope, $state, $stateParams,

$scope.columns = { 'HP/ATK': false, 'HP/RCV': false, 'ATK/RCV': false, 'ATK/CMB': false,
'CMB': false, 'ATK/cost': false, 'HP/cost': false, 'Minimum cooldown': false,
'Initial cooldown': false };
'Initial cooldown': false,'MAX EXP': false };

var additionalColumns = $storage.get('charColumns', [ ]);

Expand Down
Loading