mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-27 08:46:48 +08:00
update: 名人模式解锁条件
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=2.0,user-scalable=yes">
|
||||
<meta name="description" content="やり直すんだ。そして、次はうまくやる。"/>
|
||||
<meta name="keywords" content="人生重开模拟器 liferestart life restart remake 人生重来"/>
|
||||
<meta name="renderer" content="webkit"/>
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ export default {
|
||||
UI_Thanks: 'Thx',
|
||||
UI_Achievement: 'Achv',
|
||||
UI_Cyber_Theme_Art_Design: 'UI Design by 晰晰',
|
||||
UI_Banner: '作者的新作《纸上谈亲》已上线小程序\n微信/抖音搜索“纸上谈亲”即可游玩~',
|
||||
UI_Banner: ' ',
|
||||
|
||||
UI_Title_Talent: 'Talent Draw',
|
||||
UI_Talent_Draw: '!10 Pulls!',
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ export default {
|
||||
UI_Thanks: '感谢',
|
||||
UI_Achievement: '成就',
|
||||
UI_Cyber_Theme_Art_Design: 'UI 设计 by 晰晰',
|
||||
UI_Banner: '作者的新作《纸上谈亲》已上线小程序\n微信/抖音搜索“纸上谈亲”即可游玩~',
|
||||
UI_Banner: ' ',
|
||||
|
||||
UI_Title_Talent: '天赋抽卡',
|
||||
UI_Talent_Draw: '10连抽!',
|
||||
|
||||
@@ -52,6 +52,7 @@ location.search
|
||||
})
|
||||
|
||||
core.config({
|
||||
celebrityLimit: 10,
|
||||
defaultPropertyPoints: 20, // default number of points for a property
|
||||
talentSelectLimit: 3, // max number of talents that can be selected
|
||||
propertyAllocateLimit: [0, 10], // scoop of properties that can be allocated,
|
||||
|
||||
@@ -35,6 +35,7 @@ class Life {
|
||||
#achievement
|
||||
#character
|
||||
#triggerTalents
|
||||
#celebrityLimit
|
||||
#defaultPropertyPoints
|
||||
#talentSelectLimit
|
||||
#propertyAllocateLimit
|
||||
@@ -63,6 +64,7 @@ class Life {
|
||||
}
|
||||
|
||||
config({
|
||||
celebrityLimit = 10, // limit of celebrity
|
||||
defaultPropertyPoints = 20, // default number of points for a property
|
||||
talentSelectLimit = 3, // max number of talents that can be selected
|
||||
propertyAllocateLimit = [0, 10], // scoop of properties that can be allocated
|
||||
@@ -71,6 +73,7 @@ class Life {
|
||||
propertyConfig, // config for property
|
||||
characterConfig, // config for character
|
||||
} = {}) {
|
||||
this.#celebrityLimit = celebrityLimit
|
||||
this.#defaultPropertyPoints = defaultPropertyPoints
|
||||
this.#talentSelectLimit = talentSelectLimit
|
||||
this.#propertyAllocateLimit = propertyAllocateLimit
|
||||
@@ -347,6 +350,7 @@ class Life {
|
||||
)
|
||||
}
|
||||
|
||||
get celebrityLimit() { return this.times < this.#celebrityLimit }
|
||||
get PropertyTypes() { return this.#property.TYPES }
|
||||
get AchievementOpportunity() { return this.#achievement.Opportunity }
|
||||
get talentSelectLimit() { return this.#talentSelectLimit }
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export default class CyberMain extends ui.view.CyberTheme.CyberMainUI {
|
||||
constructor() {
|
||||
super()
|
||||
this.btnRemake.on(Laya.Event.CLICK, this, () => $ui.switchView(UI.pages.MODE))
|
||||
this.btnRemake.on(Laya.Event.CLICK, this, () => this.remake())
|
||||
this.btnAchievement.on(Laya.Event.CLICK, this, () => $ui.switchView(UI.pages.ACHIEVEMENT))
|
||||
this.btnThanks.on(Laya.Event.CLICK, this, () => $ui.switchView(UI.pages.THANKS))
|
||||
this.btnGithub.on(Laya.Event.CLICK, this, goto, ['github'])
|
||||
@@ -40,4 +40,8 @@ export default class CyberMain extends ui.view.CyberTheme.CyberMainUI {
|
||||
this.btnGithub.visible = !disabled.github
|
||||
this.btnSaveLoad.visible = !disabled.saveload
|
||||
}
|
||||
|
||||
remake() {
|
||||
$ui.switchView(core.celebrityLimit ? UI.pages.TALENT : UI.pages.MODE)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export default class Main extends ui.view.DefaultTheme.MainUI {
|
||||
constructor() {
|
||||
super()
|
||||
this.btnRemake.on(Laya.Event.CLICK, this, () => $ui.switchView(UI.pages.MODE))
|
||||
this.btnRemake.on(Laya.Event.CLICK, this, () => this.remake())
|
||||
this.btnAchievement.on(Laya.Event.CLICK, this, () => $ui.switchView(UI.pages.ACHIEVEMENT))
|
||||
this.btnThanks.on(Laya.Event.CLICK, this, () => $ui.switchView(UI.pages.THANKS))
|
||||
this.btnGithub.on(Laya.Event.CLICK, this, goto, ['github'])
|
||||
@@ -20,13 +20,17 @@ export default class Main extends ui.view.DefaultTheme.MainUI {
|
||||
this.labSubTitle.text = text
|
||||
|
||||
const leastOnce = !!core.times
|
||||
this.banner.visible = leastOnce
|
||||
this.btnAchievement.visible = leastOnce
|
||||
this.btnThanks.visible = leastOnce
|
||||
|
||||
const disabled = globalThis.$channel?.disabled || {}
|
||||
this.banner.visible = leastOnce && !disabled.banner
|
||||
this.btnDiscord.visible = leastOnce && !disabled.discord
|
||||
this.btnGithub.visible = !disabled.github
|
||||
this.btnSaveLoad.visible = !disabled.saveload
|
||||
}
|
||||
|
||||
remake() {
|
||||
$ui.switchView(core.celebrityLimit ? UI.pages.TALENT : UI.pages.MODE)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user