mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-03-29 13:15:53 +08:00
Merge branch 'master' into master
This commit is contained in:
@@ -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
14
src/index.js
Normal 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();
|
||||
Reference in New Issue
Block a user