Skip to content

Commit

Permalink
spell completion on sheet, top nav bar, delimter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bananatron committed Nov 14, 2014
1 parent 5776930 commit eb23561
Show file tree
Hide file tree
Showing 8 changed files with 319 additions and 322 deletions.
22 changes: 13 additions & 9 deletions base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
@ch_size = params[:ch_size]
@ch_speed = params[:ch_speed]
@ch_race_languages = params[:ch_race_languages]
@ch_race_features = params[:ch_race_features]
@ch_race_features = params[:ch_race_features].split("^")
@ch_race_armor_prof = params[:ch_race_armor_prof]
@ch_race_weapon_prof = params[:ch_race_weapon_prof]
@ch_race_weapon_prof = params[:ch_race_weapon_prof].split("^")
@ch_race_skill_prof = params[:ch_race_skill_prof]
@ch_race_langcount = params[:ch_race_langcount]

Expand All @@ -38,25 +38,29 @@
@ch_cha = params[:ch_cha]
@ch_wis = params[:ch_wis]

#Skills and Spells
@ch_class_skills = params[:ch_class_skills]
@ch_rogue_exp = params[:ch_rogue_expertise].split("^")

#Class stuff
@ch_class = params[:ch_class]
@ch_hp = params[:ch_hp] #Hit points
@ch_hd = params[:ch_hd] #Hit die
@ch_stp = params[:ch_stp] #Saving throw prof.
@ch_stp = params[:ch_stp].split("^") #Saving throw prof.
@ch_armp = params[:ch_armp] #Armor prof.
@ch_wepp = params[:ch_wepp] # Weapon prof.
@ch_classtool = params[:ch_classtool] #Class tool prof.
#@ch_spellcount = params[:ch_spellcount]
@ch_skillcount = params[:ch_skillcount]
@ch_classequip = params[:ch_classequip]
@ch_classfeat = params[:ch_classfeat]
@ch_classfeat = params[:ch_classfeat].split("^")
@ch_classfeat << "Expertise: Double your proficiency bonus when using #{@ch_rogue_exp.join(" and ")}" if @ch_rogue_exp.length != 0


#Alignemnt
@ch_alignment = params[:ch_alignment]

#Skills and Spells
@ch_class_skills = params[:ch_class_skills]
@ch_rogue_exp = params[:ch_rogue_expertise]


#Background
@ch_background = params[:ch_background] #Background name
Expand Down Expand Up @@ -85,8 +89,8 @@
@master_skill_list.each { |skill| skill.strip! }

#Spells
@ch_cantrips_selected = params[:ch_cantrips_selected]
@ch_spells_selected = params[:ch_spells_selected]
@ch_cantrips_selected = params[:ch_cantrips_selected].strip.tr('*','').split("^")
@ch_spells_selected = params[:ch_spells_selected].strip.tr('*','').split("^")

erb :sheet #Load results onto sheet.erb
end
Expand Down
12 changes: 4 additions & 8 deletions log.txt
Original file line number Diff line number Diff line change
@@ -1,33 +1,29 @@
##Add:

saving throw delimiter standardization ^
equipment delimiter standardization ^ (check rogue equip)

Top nav bar on sheet and some info on front page

background unique properties (specialty, etc.)
spells & descriptions on sheet (cleric, etc)

styling
check on mending & other spells on phb!




make sure all fields are ediable without entry (height, weight,etc.)

##Low Prior
- Tooltip on sheet for how it was calculated
- tooltips for things (kits, skills, etc.)
- Spreadsheet export
- Save html (instructions?)
- pluses on stat mods
- hide spells not available in basic (based on * probably)
- labels on sheet skill checkbox

##Problems:



##!DONE!
saving throw delimiter standardization ^ - DONE
Top nav bar on sheet and some info on front page - DONE
fix light/detect magic (any duplicates) that (id is duplicated on wizard) - DONE
add/remove list elements - DONE
test rogue expertise - DONE
Expand Down
66 changes: 4 additions & 62 deletions public/css/foundation.css
Original file line number Diff line number Diff line change
Expand Up @@ -1806,64 +1806,6 @@ button::-moz-focus-inner {
.dropdown.button.secondary:after, button.dropdown.secondary:after {
border-color: #333333 transparent transparent transparent; }

/* Image Thumbnails */
.th {
line-height: 0;
display: inline-block;
border: solid 4px white;
max-width: 100%;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
transition: all 200ms ease-out; }
.th:hover, .th:focus {
box-shadow: 0 0 6px 1px rgba(76, 0, 0, 0.5); }
.th.radius {
border-radius: 3px; }

/* Pricing Tables */
.pricing-table {
border: solid 1px #dddddd;
margin-left: 0;
margin-bottom: 1.25rem; }
.pricing-table * {
list-style: none;
line-height: 1; }
.pricing-table .title {
background-color: #333333;
padding: 0.9375rem 1.25rem;
text-align: center;
color: #eeeeee;
font-weight: normal;
font-size: 1rem;
font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; }
.pricing-table .price {
background-color: #f6f6f6;
padding: 0.9375rem 1.25rem;
text-align: center;
color: #333333;
font-weight: normal;
font-size: 2rem;
font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; }
.pricing-table .description {
background-color: white;
padding: 0.9375rem;
text-align: center;
color: #777777;
font-size: 0.75rem;
font-weight: normal;
line-height: 1.4;
border-bottom: dotted 1px #dddddd; }
.pricing-table .bullet-item {
background-color: white;
padding: 0.9375rem;
text-align: center;
color: #333333;
font-size: 0.875rem;
font-weight: normal;
border-bottom: dotted 1px #dddddd; }
.pricing-table .cta-button {
background-color: white;
text-align: center;
padding: 1.25rem 1.25rem 0; }

.text-left {
text-align: left !important; }
Expand Down Expand Up @@ -4787,10 +4729,7 @@ th.hide-for-touch {
th.show-for-print {
display: table-cell !important; } }

ul {
list-style-type:none;
font-size: 26px;
}

li.attr{
width:70px;
border-style: solid;
Expand Down Expand Up @@ -4831,6 +4770,9 @@ li.statlist {
font-size: 1.6rem;
margin:2px;
}
ul.statlist {
list-style-type: none;
}
.pb_statlist {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
Expand Down
Loading

0 comments on commit eb23561

Please sign in to comment.