Make the palace work over 10 levels instead of 20.
This commit is contained in:
parent
c984b5b0c5
commit
9062d7b626
@ -325,7 +325,7 @@ export default [
|
|||||||
{
|
{
|
||||||
type: 'palace',
|
type: 'palace',
|
||||||
name: 'Palace',
|
name: 'Palace',
|
||||||
maxLevel: 20,
|
maxLevel: 10,
|
||||||
unique: true,
|
unique: true,
|
||||||
requiredTownhallLevel: 10,
|
requiredTownhallLevel: 10,
|
||||||
cost: (level: number) => {
|
cost: (level: number) => {
|
||||||
@ -345,7 +345,7 @@ export default [
|
|||||||
},
|
},
|
||||||
triggers: {
|
triggers: {
|
||||||
onLevelUp: (V: VillageState, self: BuildingType) => {
|
onLevelUp: (V: VillageState, self: BuildingType) => {
|
||||||
if (self.level === 10 || self.level === 20) {
|
if (self.level === 5 || self.level === 10) {
|
||||||
// Create a new hero.
|
// Create a new hero.
|
||||||
V.heroes.push(createHero());
|
V.heroes.push(createHero());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user