Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[195] Removed enhancements in short and long rest modals #217

Merged
merged 1 commit into from
Mar 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 3 additions & 61 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1162,22 +1162,7 @@ <h3 class="modal-title">Short Rest</h3>
<div class="row" v-if='abilityCategory != null'>
<div class="col-md-6 d-flex justify-content-center centerAbilities">
<div v-if="cardToLose!=null">
<img v-bind:id="cardToLose.xws" v-bind:src="'data/'+cardToLose.image" class="image rounded"></img>

<span style="pointer-events: none;" v-if="cardToLose.top != null && cardToLose.top.length > 0"
class="enhancement above">
<div style="padding-top: 10%; padding-left: 70%; display:flex; flex-direction:column; ">
<img v-for="enhancement in cardToLose.top" style="width: 1.3em"
:src="'data/'+enhancement.image" />
</div>
</span>
<span style="pointer-events: none;" v-if="cardToLose.bottom!= null && cardToLose.bottom.length > 0"
class="enhancement">
<div style="padding-top: 10%; padding-left: 70%; display:flex; flex-direction:column;">
<img v-for="enhancement in cardToLose.bottom" style="width: 1.3em;"
:src="'data/'+enhancement.image" />
</div>
</span>
<img v-bind:id="cardToLose.xws" v-bind:src="'data/'+cardToLose.image" class="image rounded"></img>
</div>
<div style="padding-top: 10px;">
<button title="Lose one health point a draw a different card" v-if="!rerolling" type="button"
Expand All @@ -1190,21 +1175,7 @@ <h3 class="modal-title">Short Rest</h3>
<div class="centerAbilities">
<div v-for='(card,i) in cardsToRestore'>
<div v-bind:class="[{crop: cardsToRestore.length -1 !== i}]">
<img v-bind:id="card.xws" v-bind:src="'data/'+card.image" class="image rounded"></img>

<span style="pointer-events: none;" v-if="card.top != null && card.top.length > 0"
class="enhancement above">
<div style="padding-top: 10%; padding-left: 70%; display:flex; flex-direction:column; ">
<img v-for="enhancement in card.top" style="width: 1.3em" :src="'data/'+enhancement.image" />
</div>
</span>
<span style="pointer-events: none;" v-if="card.bottom != null && card.bottom.length > 0"
class="enhancement">
<div style="padding-top: 10%; padding-left: 70%; display:flex; flex-direction:column;">
<img v-for="enhancement in card.bottom" style="width: 1.3em;"
:src="'data/'+enhancement.image" />
</div>
</span>
<img v-bind:id="card.xws" v-bind:src="'data/'+card.image" class="image rounded"></img>
</div>
</div>
</div>
Expand All @@ -1231,21 +1202,6 @@ <h3 class="modal-title">Long Rest</h3>
<div class="col-md-6 d-flex justify-content-center centerAbilities">
<div v-if="cardToLose!=null">
<img v-bind:id="cardToLose.xws" v-bind:src="'data/'+cardToLose.image" class="image rounded"></img>

<span style="pointer-events: none;" v-if="cardToLose.top != null && cardToLose.top.length > 0"
class="enhancement above">
<div style="padding-top: 10%; padding-left: 70%; display:flex; flex-direction:column; ">
<img v-for="enhancement in cardToLose.top" style="width: 1.3em"
:src="'data/'+enhancement.image" />
</div>
</span>
<span style="pointer-events: none;" v-if="cardToLose.bottom!= null && cardToLose.bottom.length > 0"
class="enhancement">
<div style="padding-top: 10%; padding-left: 70%; display:flex; flex-direction:column;">
<img v-for="enhancement in cardToLose.bottom" style="width: 1.3em;"
:src="'data/'+enhancement.image" />
</div>
</span>
</div>
<div v-else>Select a card to lose</div>
<div style="padding-top: 10px;">
Expand All @@ -1258,21 +1214,7 @@ <h3 class="modal-title">Long Rest</h3>
<div v-for='(card,i) in cardsToRestore'>
<div v-bind:class="[{crop: cardsToRestore.length -1 !== i}]"
v-on:click="pickCardToLoseLongRest(card)">
<img v-bind:id="card.xws" v-bind:src="'data/'+card.image" class="image rounded"></img>

<span style="pointer-events: none;" v-if="card.top != null && card.top.length > 0"
class="enhancement above">
<div style="padding-top: 10%; padding-left: 70%; display:flex; flex-direction:column; ">
<img v-for="enhancement in card.top" style="width: 1.3em" :src="'data/'+enhancement.image" />
</div>
</span>
<span style="pointer-events: none;" v-if="card.bottom != null && card.bottom.length > 0"
class="enhancement">
<div style="padding-top: 10%; padding-left: 70%; display:flex; flex-direction:column;">
<img v-for="enhancement in card.bottom" style="width: 1.3em;"
:src="'data/'+enhancement.image" />
</div>
</span>
<img v-bind:id="card.xws" v-bind:src="'data/'+card.image" class="image rounded"></img>
</div>
</div>
</div>
Expand Down