1
0
Fork 0
mirror of https://github.com/em-squared/5e-drs.git synced 2025-10-29 20:54:19 +00:00
5e-drs/docs/.vuepress/dist/assets/js/6.1093728f.js
2020-04-11 18:01:59 +02:00

1 line
No EOL
6.1 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{234:function(t,s,e){},235:function(t,s,e){"use strict";var i=e(4),n=e(28).find,r=e(65),a=e(20),o=!0,l=a("find");"find"in[]&&Array(1).find((function(){o=!1})),i({target:"Array",proto:!0,forced:o||!l},{find:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),r("find")},236:function(t,s,e){"use strict";var i=e(234);e.n(i).a},237:function(t,s,e){"use strict";e(235),e(15),e(39);var i={name:"Breadcrumb",computed:{bread:function(){var t=this.$page.path.split("/");t[t.length-1].length||t.pop();for(var s="",e=[],i=0;i<t.length;i++){var n=!1;i==t.length-1&&(n=!0),s+=t[i];var r=this.$site.pages.find((function(t){return t.path===s||t.path===s+"/"}));s+="/",null!=r&&("/grimoire/"==r.path?e.push({to:r.path,disabled:n,text:"Grimoire"}):"/classes/"==r.path?e.push({to:r.path,disabled:n,text:"Classes"}):"/liste-objets-magiques/"==r.path?e.push({to:r.path,disabled:n,text:"Liste des objets magiques"}):e.push({to:r.path,disabled:n,text:r.frontmatter.breadcrumb||r.title}))}return e}}},n=(e(236),e(7)),r=Object(n.a)(i,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",["/"!=t.$route.path?e("v-breadcrumbs",{attrs:{items:t.bread},scopedSlots:t._u([{key:"item",fn:function(s){var i=s.item;return[e("v-breadcrumbs-item",{attrs:{to:i.to,exact:!0,disabled:i.disabled}},["/"==i.to?[e("img",{attrs:{src:"/dragon_rouge.svg"}})]:[t._v("\n "+t._s(i.text)+"\n ")]],2)]}}],null,!1,1077433747)}):e("v-row",{attrs:{justify:"center"}},[e("img",{staticClass:"d-block home-logo",attrs:{src:"/dragon_rouge.svg"}})])],1)}),[],!1,null,null,null);s.a=r.exports},239:function(t,s,e){"use strict";e.r(s);var i=e(237);e(99);function n(t){return Math.floor((t-10)/2)}function r(t){return t>=0&&(t="+"+t),t}var a={abilities:{for:{label:"Force",abbr:"For"},dex:{label:"Dextérité",abbr:"Dex"},con:{label:"Constitution",abbr:"Con"},int:{label:"Intelligence",abbr:"Int"},sag:{label:"Sagesse",abbr:"Sag"},cha:{label:"Charisme",abbr:"Cha"}},sizes:{tp:{label:"Très petit",abbr:"TP",hitDie:4},p:{label:"Petit",abbr:"P",hitDie:6},m:{label:"Moyen",abbr:"M",hitDie:8},g:{label:"Grand",abbr:"G",hitDie:10},tg:{label:"Très grand",abbr:"TG",hitDie:12},gig:{label:"Gigantesque",abbr:"Gig",hitDie:20}}},o={data:function(){return{}},computed:{monster:function(){return this.$page.frontmatter},proficiencyBonus:function(){return this.getProficiencyBonus()}},methods:{displayAbilityScore:function(t){return(e=n(s=t))>=0&&(e="+"+e),s+" ("+e+")";var s,e},getModifier:function(t){return n(t)},getProficiencyBonus:function(){return t=this.monster.level,Math.ceil(t/4)+1;var t},displaySavingThrowBonus:function(t){var s=a.abilities[t].abbr;return s+=" "+r(n(this.monster.abilityScores[t])+this.proficiencyBonus)},displaySkillBonus:function(t){var s=t.name,e=n(this.monster.abilityScores[t.ability])+this.proficiencyBonus;return t.isExpert&&(e+=this.proficiencyBonus),s+=" "+(e=r(e))},displayHP:function(){if(this.monster.customHP)return this.monster.customHP;if(this.monster.level){var t=8;this.monster.hitDieSize?t=this.monster.hitDieSize:this.monster.size&&(t=a.sizes[this.monster.size].hitDie);var s=1;this.monster.level>1&&(s=Math.floor(this.monster.level/2));var e=this.monster.level*(t/2)+this.monster.level*n(this.monster.abilityScores.con)+s,i="";return 0!=n(this.monster.abilityScores.con)&&(i=r(i=this.monster.level*n(this.monster.abilityScores.con))),e+" ("+this.monster.level+"d"+t+i+")"}return""}},mounted:function(){}},l=e(7),c=Object(l.a)(o,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("main",{staticClass:"page content"},[e("div",{staticClass:"theme-default-content"},[e("h1",[t._v(t._s(t.$page.title))]),t._v(" "),e("div",{staticClass:"monster-hit-points"},[e("strong",[t._v("Points de vie")]),t._v(" "),e("span",[t._v(t._s(t.displayHP()))])]),t._v(" "),e("div",{staticClass:"monster-details"},[e("div",{staticClass:"monster-ability-scores"},[e("div",{staticClass:"ability-str"},[t._v("\n "+t._s(t.displayAbilityScore(t.monster.abilityScores.for))+"\n ")]),t._v(" "),e("div",{staticClass:"ability-dex"},[t._v("\n "+t._s(t.displayAbilityScore(t.monster.abilityScores.dex))+"\n ")]),t._v(" "),e("div",{staticClass:"ability-con"},[t._v("\n "+t._s(t.displayAbilityScore(t.monster.abilityScores.con))+"\n ")]),t._v(" "),e("div",{staticClass:"ability-int"},[t._v("\n "+t._s(t.displayAbilityScore(t.monster.abilityScores.int))+"\n ")]),t._v(" "),e("div",{staticClass:"ability-wis"},[t._v("\n "+t._s(t.displayAbilityScore(t.monster.abilityScores.sag))+"\n ")]),t._v(" "),e("div",{staticClass:"ability-cha"},[t._v("\n "+t._s(t.displayAbilityScore(t.monster.abilityScores.cha))+"\n ")])]),t._v(" "),e("div",{staticClass:"monster-saving-throws"},[e("strong",[t._v("Jets de sauvegarde")]),t._v(" "),t._l(t.monster.savingThrows,(function(s,i){return e("span",{staticClass:"monster-saving-throw"},[[t._v(t._s(t.displaySavingThrowBonus(s)))],i<t.monster.savingThrows.length-1?[t._v(", ")]:t._e()],2)}))],2),t._v(" "),e("div",{staticClass:"monster-skills"},[e("strong",[t._v("Compétences")]),t._v(" "),t._l(t.monster.skills,(function(s,i){return e("span",{staticClass:"monster-skill"},[[t._v(t._s(t.displaySkillBonus(s)))],i<t.monster.skills.length-1?[t._v(", ")]:t._e()],2)}))],2)])]),t._v(" "),e("Content",{staticClass:"mt-4",attrs:{"slot-key":"special-traits"}}),t._v(" "),e("Content",{staticClass:"mt-4",attrs:{"slot-key":"actions"}}),t._v(" "),e("Content",{staticClass:"mt-4",attrs:{"slot-key":"reactions"}}),t._v(" "),e("Content",{staticClass:"mt-4",attrs:{"slot-key":"legendary-actions"}}),t._v(" "),e("Content"),t._v(" "),t.$page.frontmatter.source?e("p",{staticClass:"source"},[t._v("Source : "),e("em",[t._v(t._s(t.monster.source))])]):t._e()],1)}),[],!1,null,null,null).exports,u={name:"MonsterLayout",components:{Breadcrumb:i.a,Monster:c},mounted:function(){this.$store.commit("setHasRightDrawer",!1),this.$store.commit("setRightDrawer",!1),this.$store.commit("setInRightDrawer",null)}},v=Object(l.a)(u,(function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"monster"},[s("Breadcrumb"),this._v(" "),s("Monster")],1)}),[],!1,null,null,null);s.default=v.exports}}]);