Library: Difference between revisions

From Melvor Idle
No edit summary
(removed manual version number as this page is automatically generated)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{V|1.1.1}}
{{V}}
{{BuildingBox}}
{{BuildingBox}}


The '''{{PAGENAME}}''' is a [[Township]] building that increases {{Icon|Education|type=township}}. The percentage is applied to the current {{Icon|Education|type=township}} amount, and is NOT applied to the maximum {{Icon|Education|type=township}}. For the maximum {{Icon|Education|type=township}} with the fewest buildings, the {{BuildingIcon|Library}} should only be built once 100 {{BuildingIcon|School}}-type buildings have already been built. After that, the buildings should be built in a 1:1 ratio: e.g. 106 {{BuildingIcon|Academy}} and 6 {{BuildingIcon|Library|nolink=true}}.
The '''{{PAGENAME}}''' is a {{Skill|Township}} building that increases {{Icon|Education|type=township}}, which in turn increases resource production additively with other production bonuses.
 
<!--
Equation source/proof
 
School = Number of School buildings
Bonus = Education from 1 School building = 15, 35, 75 or 100
Library = Number of Library buildings
M = Modifier from 1 Library building = 1 (+1% Education per Library building)
Total = Total number of education buildings
Education = Total education
 
1) Total = School + Library
2) Education = Bonus*School*(100+M*Library)/100
 
Put both equations together and simplify
Education = Bonus*School*(100+M*(Total - School))/100
Education = Bonus*(100+M*Total)/100*School - M*Bonus/100*School^2
 
Take derivative of Education with respect to School
The maximum education is when the derivative is = 0
dEducation/dSchool = Bonus*(100+M*Total)/100 - 2*M*Bonus/100*School
0 = Bonus*(100+M*Total) - 2*M*Bonus/100*School
2*M*Bonus/100*School = Bonus*(100+M*Total)/100
3) 2*M*School = 100+M*Total
 
Since M = 1, this simplifies to
School = (100+Total)/2
 
----------
 
Substituting 1) and 3) together
2*M*School = 100+M*Total
Total = (2*M*School - 100)/M = School + Library
2*School - 100/M = School + Library
4) School = Library + 100/M
 
----------
 
To derive the number of School and Library buildings from a desired total education
1) Total = School + Library
2) Education = Bonus*School*(100+M*Library)/100
3) 2*M*School = 100+M*Total
4) School = Library + 100/M
 
Substituting 2) and 4) together
Education = Bonus*School*(100+M*Library)/100
Education = Bonus*School*(100+M*(School - 100/M))/100
Education = Bonus*School*(100+M*School-100)/100
Education = Bonus*School*(M*School)/100
Education = Bonus*M*School^2/100
School = sqrt(100/Bonus/M * Education)
 
Since M = 1, this simplifies to
School = sqrt(100/Bonus * Education)
-->
 
When more than 100 buildings are required, to calculate the optimal number of each building from a total {{Icon|Education|type=township}}, the following equations can be used:<br>
<math>\textrm{Bonus} = \textrm{Education per School-type building} = 15, 35, 75 \textrm{ or } 100</math><br>
<math>\textrm{School building count} = \sqrt{\frac{100}{\textrm{Bonus}}\textrm{Education}}</math><br>
<math>\textrm{Library count} = \textrm{School count} - 100</math>


{{TownshipBuildingUpgrades}}
{{TownshipBuildingUpgrades}}
{{TownshipBuildingNav}}
{{TownshipBuildingNav}}
{{Menu}}
{{Menu}}

Latest revision as of 06:56, 2 January 2024

This page is up to date (v1.2.2).


Library
Library
Building ID: melvorF:Library
Requirements:
Township Level 35
Population 2,500
Base Cost:

8,200 GP, 700 Planks, 450 Stone

Maximum Built:
100
Provides:
Education +0.25,
Biomes:
Grasslands

The Library is a Township building that increases Education, which in turn increases resource production additively with other production bonuses.



Township
Population

Basic Shelter Wooden Hut House Cottage Large Cottage Manor Estate

Storage

Storehouse Warehouse Repository Large Repository

Happiness

Tavern Gardens

Education

School Large School Academy Large Academy
Library

Worship

Chapel Statue of Worship

Trading

Trading Post Prats Hats Malcs Cats Cool Rocks

Food

Farmland Plantation Mill Farming Estate
Fishermans Dock Fishermans Pier Fishermans Port Fishermans Estate
Orchard Market

Wood

Woodcutter Camp Logging Camp Forestry Camp Forestry Estate

Planks

Carpenters Workshop Carpenters Factory Carpenters Foundry Carpenters Estate

Stone, Ore & Coal

Miners Pit Miners Field Miners Quarry Miners Estate

Bar

Blacksmiths Smithy Blacksmiths Workshop Blacksmiths Forge Blacksmiths Estate

Rune Essence

Magic Emporium

Herbs

Gatherers Hut Gatherers Lodge Gatherers Villa Gatherers Estate

Potions

Herbalist Infirmary Healing Centre Hospital

Leather

Hunters Cabin Hunters Lodge Hunters Villa Hunters Estate

Clothing

Tailor Clothier Outfitter Clothiers Estate

Other

Cemetery Town Hall Lemvor Lemon Stall