Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
asgrabowski authored Oct 12, 2018
1 parent e438094 commit babb17f
Show file tree
Hide file tree
Showing 40 changed files with 329 additions and 2 deletions.
Binary file added NS/ns0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns15.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns17.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns18.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns19.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns26.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns27.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns28.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns30.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added NS/ns7.png
Binary file added NS/ns8.png
Binary file added NS/ns9.png
Binary file added NS/nsBack.png
70 changes: 68 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ <h2 class = "header" align = "center" style = "color:white;">Select Your Charact
<td><img id = "tinkerer" class = "character" src = "./Tinkerer.png"/><br/><p class = "character-title" align = "center">Tinkerer</td>
</tr>
<tr>
<td><img id = "beastTyrant" class = "character" src = "./bmprofile.png"/><br/><p class = "character-title" align = "center"></td>
<td><img id = "doomStalker" class = "character" src = "./dsprofile.png"/><br/><p class = "character-title" align = "center"></td>
<td><img id = "beastTyrant" class = "character" src = "./bmprofile.png"/><br/><p class = "character-title" align = "center">"Two Minis"</td>
<td><img id = "doomStalker" class = "character" src = "./dsprofile.png"/><br/><p class = "character-title" align = "center">"Spiky Face"</td>
<td><img id = "nightshroud" class = "character" src = "./nsProfile.png"/><br/><p class = "character-title" align = "center">"Eclipse"</td>
</tr>
</table>
<div id = "level-selection" align = "center">
Expand Down Expand Up @@ -561,6 +562,71 @@ <h2 id ="perks-header" class = "header">Select Your Perks</h2>
</div>
<button id ="mtConfirmPerksButton" class ="button" type ="button">Confirm Perks</button>
</div>

<div id ="nightshroud-perks" class ="perks hiding">
<div>
<div id ="nsPerk1-1" class = "checkbox">
</div>
<div id ="nsPerk1-2" class = "checkbox">
</div>
<p>Remove Two -1 Cards</p>
</div>
<div>
<div id ="nsPerk2" class = "checkbox">
</div>
<p>Remove Four +0 Cards</p>
</div>
<div>
<div id ="nsPerk3-1" class = "checkbox">
</div>
<div id ="nsPerk3-2" class = "checkbox">
</div>
<p>Add One -1 Infuse Dark Card</p>
</div>
<div>
<div id ="nsPerk4-1" class = "checkbox">
</div>
<div id ="nsPerk4-2" class = "checkbox">
</div>
<p>Replace One -1 Infuse Dark Card With One +1 Infuse Dark Card</p>
</div>
<div>
<div id ="nsPerk5-1" class = "checkbox">
</div>
<div id ="nsPerk5-2" class = "checkbox">
</div>
<p>Add One +1 Invisible Card</p>
</div>
<div>
<div id ="nsPerk6-1" class = "checkbox">
</div>
<div id ="nsPerk6-2" class = "checkbox">
</div>
<p>Add Three Rolling Muddle Cards</p>
</div>
<div>
<div id ="nsPerk7" class = "checkbox">
</div>
<p>Add Two Rolling Heal 1 Cards</p>
</div>
<div>
<div id ="nsPerk8" class = "checkbox">
</div>
<p>Add Two Rolling Curse Cards</p>
</div>
<div>
<div id ="nsPerk9" class = "checkbox">
</div>
<p>Add One Rolling Add Target Card</p>
</div>
<div>
<div id ="nsPerk10" class = "checkbox">
</div>
<p>Ignore Negative Scenario Effects and Add Two +1 Cards</p>
</div>
<button id ="nsConfirmPerksButton" class ="button" type ="button">Confirm Perks</button>
</div>

<button id = "go-back1" class = "button hiding" type ="button">Go Back To Character Select</button>
</div>

Expand Down
Binary file added nsPerks/nsMinus1Dark.png
Binary file added nsPerks/nsPlus1.png
Binary file added nsPerks/nsPlus1Dark.png
Binary file added nsPerks/nsPlus1Invisible.png
Binary file added nsPerks/nsRollingAddTarget.png
Binary file added nsPerks/nsRollingCurse.png
Binary file added nsPerks/nsRollingHeal1.png
Binary file added nsPerks/nsRollingMuddle.png
Binary file added nsProfile.png
261 changes: 261 additions & 0 deletions script2.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ let scoundrel = document.getElementById('scoundrel');
let tinkerer = document.getElementById('tinkerer');
let beastTyrant = document.getElementById('beastTyrant');
let doomStalker = document.getElementById('doomStalker');
let nightshroud = document.getElementById("nightshroud");

//status effects
let poisoned = false;
Expand Down Expand Up @@ -1345,6 +1346,150 @@ confirmCharacterButton.onclick = () => {
bearHealth = bearMaxHealth;
break;
}
} else if(nightshroud.classList.contains("character-selected")){
let characterChoice = "nightshroud";
document.getElementById("nightshroud-perks").classList.remove("hiding");
flippedCard = "./NS/nsBack.png";
handSize = 9
cardHand10.classList.add("hiding");
cardHand11.classList.add("hiding");
cardHand12.classList.add("hiding");
var hand = document.querySelectorAll(".hand");
var cardsToChooseFrom = document.querySelectorAll(".chooseCardsTable");
for (var i = 0; i<cardsToChooseFrom.length; i++){
(function (){
var cardToChooseFrom = cardsToChooseFrom[i];
if((i>-1 && i<12) || i>14){
cardToChooseFrom.innerHTML = "<img id ='"+`${cardToChooseFrom.id}`+"' class = 'chooseCards "+`${cardToChooseFrom.id}`+"' src = './NS/ns"+i+".png' />";
} else {
cardToChooseFrom.innerHTML = '';
}
}).call(this,i);
}
for (var j = 0; j<hand.length; j++){
(function () {
var handCardBack = hand[j];
handCardBack.src = flippedCard;
}).call(this,j);
}
switch (levelCount) {
case 1:
maxHealth = 8;
health = maxHealth;
var cardsToChooseFrom = document.querySelectorAll(".chooseCardsTable");
for(var i = 15; i<cardsToChooseFrom.length; i++){
var cardToChooseFrom = cardsToChooseFrom[i];
cardToChooseFrom.innerHTML = "";
}
var levelTitles = document.querySelectorAll(".level");
for(var j = 3; j<levelTitles.length; j++){
var levelTitle = levelTitles[j];
levelTitle.classList.add("hiding");
}
break;
case 2:
maxHealth = 9;
health = maxHealth;
var cardsToChooseFrom = document.querySelectorAll(".chooseCardsTable");
for(var i = 17; i<cardsToChooseFrom.length; i++){
var cardToChooseFrom = cardsToChooseFrom[i];
cardToChooseFrom.innerHTML = "";
}
var levelTitles = document.querySelectorAll(".level");
for(var j = 4; j<levelTitles.length; j++){
var levelTitle = levelTitles[j];
levelTitle.classList.add("hiding");
}
break;
case 3:
maxHealth = 11;
health = maxHealth;
var cardsToChooseFrom = document.querySelectorAll(".chooseCardsTable");
for(var i = 19; i<cardsToChooseFrom.length; i++){
var cardToChooseFrom = cardsToChooseFrom[i];
cardToChooseFrom.innerHTML = "";
}
var levelTitles = document.querySelectorAll(".level");
for(var j = 5; j<levelTitles.length; j++){
var levelTitle = levelTitles[j];
levelTitle.classList.add("hiding");
}
break;
case 4:
maxHealth = 12;
health = maxHealth;
var cardsToChooseFrom = document.querySelectorAll(".chooseCardsTable");
for(var i = 21; i<cardsToChooseFrom.length; i++){
var cardToChooseFrom = cardsToChooseFrom[i];
cardToChooseFrom.innerHTML = "";
}
var levelTitles = document.querySelectorAll(".level");
for(var j = 6; j<levelTitles.length; j++){
var levelTitle = levelTitles[j];
levelTitle.classList.add("hiding");
}
break;
case 5:
maxHealth = 14;
health = maxHealth;
var cardsToChooseFrom = document.querySelectorAll(".chooseCardsTable");
for(var i = 23; i<cardsToChooseFrom.length; i++){
var cardToChooseFrom = cardsToChooseFrom[i];
cardToChooseFrom.innerHTML = "";
}
var levelTitles = document.querySelectorAll(".level");
for(var j = 7; j<levelTitles.length; j++){
var levelTitle = levelTitles[j];
levelTitle.classList.add("hiding");
}
break;
case 6:
maxHealth = 15;
health = maxHealth;
var cardsToChooseFrom = document.querySelectorAll(".chooseCardsTable");
for(var i = 25; i<cardsToChooseFrom.length; i++){
var cardToChooseFrom = cardsToChooseFrom[i];
cardToChooseFrom.innerHTML = "";
}
var levelTitles = document.querySelectorAll(".level");
for(var j = 8; j<levelTitles.length; j++){
var levelTitle = levelTitles[j];
levelTitle.classList.add("hiding");
}
break;
case 7:
maxHealth = 17;
health = maxHealth;
var cardsToChooseFrom = document.querySelectorAll(".chooseCardsTable");
for(var i = 27; i<cardsToChooseFrom.length; i++){
var cardToChooseFrom = cardsToChooseFrom[i];
cardToChooseFrom.innerHTML = "";
}
var levelTitles = document.querySelectorAll(".level");
for(var j = 9; j<levelTitles.length; j++){
var levelTitle = levelTitles[j];
levelTitle.classList.add("hiding");
}
break;
case 8:
maxHealth = 18;
health = maxHealth;
var cardsToChooseFrom = document.querySelectorAll(".chooseCardsTable");
for(var i = 29; i<cardsToChooseFrom.length; i++){
var cardToChooseFrom = cardsToChooseFrom[i];
cardToChooseFrom.innerHTML = "";
}
var levelTitles = document.querySelectorAll(".level");
for(var j = 10; j<levelTitles.length; j++){
var levelTitle = levelTitles[j];
levelTitle.classList.add("hiding");
}
break;
case 9:
maxHealth = 20;
health = maxHealth;
break;
}
}
goBack.classList.remove("hiding");
document.getElementById("select-class-section").classList.add("hiding");
Expand Down Expand Up @@ -4270,6 +4415,7 @@ let chConfirmPerksButton = document.getElementById('chConfirmPerksButton');
let swConfirmPerksButton = document.getElementById('swConfirmPerksButton');
let scConfirmPerksButton = document.getElementById('scConfirmPerksButton');
let tiConfirmPerksButton = document.getElementById('tiConfirmPerksButton');
let nsConfirmPerksButton = document.getElementById('nsConfirmPerksButton');


//Cragheart
Expand Down Expand Up @@ -4942,3 +5088,118 @@ btConfirmPerksButton.onclick = () => {
defaultDeckArray = modDeckArray.slice();
confirmPerks();
}

//nightshroud

nsConfirmPerksButton.onclick = () => {
let nsPerk11 = document.getElementById("nsPerk1-1");
let nsPerk12 = document.getElementById("nsPerk1-2");
let nsPerk2 = document.getElementById("nsPerk2");
let nsPerk31 = document.getElementById("nsPerk3-1");
let nsPerk32 = document.getElementById("nsPerk3-2");
let nsPerk41 = document.getElementById("nsPerk4-1");
let nsPerk42 = document.getElementById("nsPerk4-2");
let nsPerk51 = document.getElementById("nsPerk5-1");
let nsPerk52 = document.getElementById("nsPerk5-2");
let nsPerk61 = document.getElementById("nsPerk6-1");
let nsPerk62 = document.getElementById("nsPerk6-2");
let nsPerk7 = document.getElementById("nsPerk7");
let nsPerk8 = document.getElementById("nsPerk8");
let nsPerk9 = document.getElementById("nsPerk9");
let nsPerk10 = document.getElementById("nsPerk10");
let hasMinus1 = 0;
if(nsPerk11.classList.contains('checked')){
for (var i = 0; i<modDeckArray.length; i++){
if(modDeckArray[i] === mod12){
modDeckArray.splice(i, 2);
i = modDeckArray.length;
cardsInDeckText.innerHTML = "Cards in Deck: "+ modDeckArray.length;
}
}
}
if(nsPerk12.classList.contains('checked')){
for (var i = 0; i<modDeckArray.length; i++){
if(modDeckArray[i] === mod14){
modDeckArray.splice(i, 2);
i = modDeckArray.length;
cardsInDeckText.innerHTML = "Cards in Deck: "+ modDeckArray.length;
}
}
}
if(nsPerk2.classList.contains('checked')){
for (var i = 0; i<modDeckArray.length; i++){
if(modDeckArray[i] === mod1){
modDeckArray.splice(i, 4);
i = modDeckArray.length;
cardsInDeckText.innerHTML = "Cards in Deck: "+ modDeckArray.length;
}
}
}
if(nsPerk31.classList.contains('checked')){
let newCard = "./nsPerks/nsMinus1Dark.png";
modDeckArray.push(newCard);
hasMinus1++;
cardsInDeckText.innerHTML = "Cards in Deck: "+ modDeckArray.length;
}
if (nsPerk32.classList.contains('checked')){
let newCard = "./nsPerks/nsMinus1Dark.png";
modDeckArray.push(newCard);
hasMinus1++;
cardsInDeckText.innerHTML = "Cards in Deck: "+ modDeckArray.length;
}
if (nsPerk41.classList.contains('checked') && (hasMinus1> 0)){
hasMinus1--;
modDeckArray.pop();
let newCard = "./nsPerks/nsPlus1Dark.png";
modDeckArray.unshift(newCard);
cardsInDeckText.innerHTML = "Cards in Deck: "+ modDeckArray.length;
}
if (nsPerk42.classList.contains('checked') && (hasMinus1> 0)){
hasMinus1--;
modDeckArray.pop();
let newCard = "./nsPerks/nsPlus1Dark.png";
modDeckArray.unshift(newCard);
cardsInDeckText.innerHTML = "Cards in Deck: "+ modDeckArray.length;
}
if (nsPerk51.classList.contains('checked')){
let newCard = "./nsPerks/nsPlus1Invisible.png";
modDeckArray.push(newCard);
}
if (nsPerk52.classList.contains('checked')){
let newCard = "./nsPerks/nsPlus1Invisible.png";
modDeckArray.push(newCard);
}
if (nsPerk61.classList.contains('checked')){
let newCard = "./nsPerks/nsRollingMuddle.png";
modDeckArray.push(newCard);
modDeckArray.push(newCard);
modDeckArray.push(newCard);
}
if (nsPerk62.classList.contains('checked')){
let newCard = "./nsPerks/nsRollingMuddle.png";
modDeckArray.push(newCard);
modDeckArray.push(newCard);
modDeckArray.push(newCard);
}
if (nsPerk7.classList.contains('checked')){
let newCard = "./nsPerks/nsRollingHeal1.png";
modDeckArray.push(newCard);
modDeckArray.push(newCard);
}
if (nsPerk8.classList.contains('checked')){
let newCard = "./nsPerks/nsRollingCurse.png";
modDeckArray.push(newCard);
modDeckArray.push(newCard);
}
if (nsPerk9.classList.contains('checked')){
let newCard = "./nsPerks/nsRollingAddTarget.png";
modDeckArray.push(newCard);
}
if (nsPerk10.classList.contains('checked')){
let newCard = "./nsPerks/nsPlus1.png";
modDeckArray.push(newCard);
modDeckArray.push(newCard);
}
defaultDeckArray = modDeckArray.slice();
confirmPerks();
}

0 comments on commit babb17f

Please sign in to comment.