User Tools

Site Tools


heritage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
heritage [2019/08/01 03:23]
96.227.143.238
heritage [2019/09/11 13:49] (current)
188.152.123.92
Line 2: Line 2:
  
 You can also spend HP to unlock research immediately. You can also spend HP to unlock research immediately.
- 
-<WRAP center 80%> 
-^  General ​ ^  Military ​ ^  Science ​ ^  Technology ​ ^  Agriculture ​ ^ 
-|  [[.research:​Management|Management]] ​ |  [[.research:​Stone spear|Stone spear]] : 3HP  |  [[.research:​Scientific method|Scientific method]] ​ |  [[.research:​Tannery|Tannery]] ​ |  [[.research:​Fishing|Fishing]] ​ | 
-|  [[.research:​Trade|Trade]] ​ |  [[.research:​Barracks|Barracks]] ​ |  [[.research:​Foresight|Foresight]] ​ |  [[.research:​Parchment|Parchment]] ​ |  [[.research:​Fish food|Fish food]] ​ | 
-|  [[.research:​Alcohol|Alcohol]] ​ |  [[.research:​Stash|Stash]] : 4HP  |  [[.research:​Cartography|Cartography]] ​ |  [[.research:​Paper mill|Paper mill]] : 6HP  |  [[.research:​Animals|Animals]] ​ | 
-|  [[.research:​Bow|Bow]] ​ |  [[.research:​Wood defences|Wooden defences]] ​ |  [[.research:​Calendar|Calendar]] ​ |  [[.research:​Fabric|Fabric]] ​ |  [[.research:​Cotton|Cotton]] ​ | 
-|  [[.research:​Hunting|Hunting]] ​ |  [[.research:​Logistics|Logistics]] : 30HP  |  [[.research:​Weather|Weather]] ​ |  [[.research:​Tailoring|Tailoring]] ​ |  [[.research:​Herbalism|Herbalism]] : 11HP  | 
-|  [[.research:​Cooking|Cooking]] : 5HP  |  |  [[.research:​Urban planning|Urban planning]] ​ |  [[.research:​Fire|Fire]] ​ |  [[.research:​Agriculture|Agriculture]] ​ | 
-|  [[.research:​Stone axe|Stone axe]] : 3HP  |  |  [[.research:​Mathematics|Mathematics]] ​ |  [[.research:​Bigger fire|Bigger fire]] ​ |  [[.research:​Forestry|Forestry]] ​ | 
-|  [[.research:​Stone pickaxe|Stone pickaxe]] : 3HP  |  |  [[.research:​Advance mathematics|Advanced mathematics]] ​ |  [[.research:​Mortar|Mortar]] : 3HP  |  [[.research:​Fertilizer|Fertilizer]] ​ | 
-|  [[.research:​Stone hammer|Stone hammer]] : 3HP  |  |  [[.research:​Improved Foresight|Improved Foresight]] : 35HP  |  [[.research:​Mining|Mining]] ​ |  | 
-|  [[.research:​Stone shovel|Stone shovel]] : 3HP  |  |  [[.research:​Herbal medicine|Herbal medicine]] : 3HP  |  [[.research:​Prospecting for ore|Prospecting for ore]]  |  | 
-|  [[.research:​Wonder buildings|Wonder buildings]] ​ |  |  |  [[.research:​Advanced prospecting|Advanced prospecting]] ​ |  | 
-|  [[.research:​Trade routes|Trade routes]] : 9HP  |  |  |  [[.research:​Pit mine|Pit mine]] ​ |  | 
-|  [[.research:​Buff production|Buff production]] : 8HP  |  |  |  [[.research:​Ore processing|Ore processing]] ​ |  | 
-|  [[.research:​Human resources|Human resources]] ​ |  |  |  [[.research:​Deep mine|Deep mine]] ​ |  | 
-|  [[.research:​Production zones|Production zones]] ​ |  |  |  [[.research:​Ore processing|Ore processing]] ​ |  | 
-|  |  |  |  [[.research:​Advanced ore processing|Advanced ​ ore processing]] ​ |  | 
-|  |  |  |  [[.research:​Master ore processing|Master ore processing]] ​ |  | 
-|  |  |  |  [[.research:​Metallurgy|Metallurgy]] ​ |  | 
-|  |  |  |  [[.research:​Advanced metallurgy|Advanced metallurgy]] ​ |  | 
-|  |  |  |  [[.research:​Coins minting|Coins minting]] ​ |    | 
-|  |  |  |  [[.research:​House|House]] ​ |  | 
-|  |  |  |  [[.research:​Longhouse|Longhouse]] ​ |  | 
-|  |  |  |  [[.research:​Sawmill|Sawmill]] ​ |  | 
-|  |  |  |  [[.research:​Windmill|Windmill]] ​ |  | 
-|  |  |  |  [[.research:​Pickaxe design|Pickaxe design]] ​ |  | 
-|  |  |  |  [[.research:​Specialized production|Specialized production]] ​ |  | 
-</​WRAP>​ 
  
 These points will be renewed upon [[:​abdication|abdications]] and [[:​ascension|ascensions]]. The land acquired and research unlocked will be reset as well. These points will be renewed upon [[:​abdication|abdications]] and [[:​ascension|ascensions]]. The land acquired and research unlocked will be reset as well.
  
-You earn HP through [[:​abdication|abdications]] and [[:​ascension|ascensions]] at certain populations. Note: You need the population ​listed, max population is not taken into consideration.+You earn HP through [[:​abdication|abdications]] and [[:​ascension|ascensions]] at certain populations. Note: It'​s ​the actual ​population ​which is used, max population is not taken into consideration. 
 + 
 +Once the village have more than 50 population you will be awarded 1 xp for each additional villager. 
 + 
 +The cost in xp of the next heritage point is 20+2*n with n equal to the total of hp owned. 
 + 
 +hp_cost_in_xp = 20 + 2 * current_hp 
 + 
 +xp_awarded = pop - hp_cost_in_xp_awarded_in_current_run - 50 
 + 
 +  calculateHeritagePoints( removeXP = false ) { 
 +    let peoplePoints = this.resourcesService.getTotalPeople();​ 
 +    let xp = this.xp; 
 +    let threshold = 20 + (this.heritagePoints * 2); 
 +    let pointsToAward = 0; 
 +    while ( peoplePoints >= threshold ) { 
 +      pointsToAward += 1; 
 +      peoplePoints -= threshold;​ 
 +      threshold += 2; 
 +    } 
 +    while ( peoplePoints + xp >= threshold ) { 
 +      pointsToAward += 1; 
 +      peoplePoints -= threshold;​ 
 +      if ( peoplePoints < 0 ) { 
 +        xp += peoplePoints;​ 
 +      } 
 +      threshold += 2; 
 +    } 
 +    if ( removeXP ) { 
 +      this.xp = xp; 
 +    } 
 +    peoplePoints -= 50; 
 +    if ( peoplePoints < 0 ) { 
 +      peoplePoints = 0; 
 +    } 
 +    return { hp: pointsToAward,​ xp: peoplePoints }; 
 +  } 
 + 
 +  peopleToNextHeritagePoint():​ number { 
 +    let peoplePoints = this.resourcesService.getTotalPeople() + this.xp; 
 +    let threshold = 20 + (this.heritagePoints * 2); 
 +    while ( peoplePoints >= threshold ) { 
 +      peoplePoints -= threshold;​ 
 +      threshold += 2; 
 +    } 
 +    return threshold - peoplePoints;​ 
 +  }
  
 The formula for the population requirement where n is the number of HP earned: 100*2^(n-1)-50 The formula for the population requirement where n is the number of HP earned: 100*2^(n-1)-50
 +
 +
heritage.1564629791.txt.gz · Last modified: 2019/08/01 03:23 by 96.227.143.238