mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2025-07-17 17:43:54 +08:00
fix point bug
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -104,3 +104,5 @@ dist
|
||||
.tern-port
|
||||
|
||||
utils/xlsxTransform-*
|
||||
|
||||
/.idea
|
@@ -166,7 +166,7 @@ class App{
|
||||
freshTotal();
|
||||
}
|
||||
btnAdd.click(()=>{
|
||||
if(total() == this.#totalMax) {
|
||||
if(total() >= this.#totalMax) {
|
||||
this.hint('没用可分配的点数了');
|
||||
return;
|
||||
}
|
||||
@@ -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(),
|
||||
|
Reference in New Issue
Block a user