Merge branch 'master' into master

This commit is contained in:
神戸小鳥
2021-09-03 21:32:08 +08:00
committed by GitHub
10 changed files with 2140 additions and 29 deletions

View File

@@ -223,9 +223,12 @@ class App{
propertyPage
.find('#start')
.click(()=>{
if(total()!=this.#totalMax) {
if(total() < this.#totalMax) {
this.hint(`你还有${this.#totalMax-total()}属性点没有分配完`);
return;
} else if (total() > this.#totalMax) {
this.hint(`你多使用了${total() - this.#totalMax}属性点`);
return;
}
this.#life.restart({
CHR: groups.CHR.get(),

14
src/index.js Normal file
View File

@@ -0,0 +1,14 @@
import App from '../src/app.js';
window.json = async fileName=>(await axios(`../data/${fileName}.json`)).data;
// Pssst, I've created a github package - https://github.com/brookesb91/dismissible
const hideBanners = (e) => {
document
.querySelectorAll(".banner.visible")
.forEach((b) => b.classList.remove("visible"));
};
const app = new App();
app.initial();