{"schema":1,"game":"romestead","buildId":"25128773","dataVersion":"361b2d3b6606b011ae7584f4b184be93310f1d9111dabae2c6aac533fc5ada6a","path":"/world-journal/details/total-town-defence","locale":"en","type":"entity","indexable":true,"canonical":"/world-journal/details/total-town-defence","title":"Total town defence (Details) | Romestead","description":"Total town defence (Details)","entity":{"key":"world_stat:WorldStats_TownDefenceModifier","kind":"world_stat","names":{"cs_CZ":"Total town defence","de_DE":"Gesamte Stadtverteidigung","el_GR":"Total town defence","en":"Total town defence","es_ES":"Defensa total de la ciudad","fr_FR":"Défense totale de la ville","hu_HU":"Total town defence","it_IT":"Total town defence","ja_JP":"町の総防御値","ko_KR":"전체 마을 방어 수준","la_LA":"Total town defence","nl_NL":"Total town defence","pl_PL":"Całkowita obrona miasta","pt_BR":"Defesa total da cidade","pt_PT":"Total town defence","ru_RU":"Общая оборона города","sk_SK":"Celková obrana mesta","sv_SE":"Total town defence","th_TH":"การป้องกันเมืองรวม","tr_TR":"Şehrin savunma değeri","uk_UA":"Total town defence","zh_CN":"总城防值","zh_TW":"總城防值"},"descriptions":{"cs_CZ":"","de_DE":"","el_GR":"","en":"","es_ES":"","fr_FR":"","hu_HU":"","it_IT":"","ja_JP":"","ko_KR":"","la_LA":"","nl_NL":"","pl_PL":"","pt_BR":"","pt_PT":"","ru_RU":"","sk_SK":"","sv_SE":"","th_TH":"","tr_TR":"","uk_UA":"","zh_CN":"","zh_TW":""},"image":"/assets/journal/d4a1fbc8b58669f703824946.png","tier":null,"maxStack":null,"availability":"registered","playerPage":true,"nameLocales":["cs_CZ","de_DE","el_GR","en","es_ES","fr_FR","hu_HU","it_IT","ja_JP","ko_KR","la_LA","nl_NL","pl_PL","pt_BR","pt_PT","ru_RU","sk_SK","sv_SE","th_TH","tr_TR","uk_UA","zh_CN","zh_TW"],"paths":{"en":"/world-journal/details/total-town-defence","de_DE":"/de/weltenbuch/details/gesamte-stadtverteidigung","fr_FR":"/fr/journal-du-monde/détails/défense-totale-de-la-ville","es_ES":"/es/diario-del-mundo/detalles/defensa-total-de-la-ciudad","it_IT":"/it/diario-del-mondo/dettagli/total-town-defence","ru_RU":"/ru/журнал-мира/подробности/общая-оборона-города","uk_UA":"/uk/журнал-світу/подробиці/total-town-defence","pl_PL":"/pl/dziennik-świata/szczegóły/całkowita-obrona-miasta","cs_CZ":"/cs/deník-světa/podrobnosti/total-town-defence","sk_SK":"/sk/denník-sveta/podrobnosti/celková-obrana-mesta","hu_HU":"/hu/világnapló/részletek/total-town-defence","el_GR":"/el/ημερολόγιο-κόσμου/λεπτομέρειες/total-town-defence","nl_NL":"/nl/wereldjournaal/details/total-town-defence","sv_SE":"/sv/världsdagbok/detaljer/total-town-defence","tr_TR":"/tr/dünya-günlüğü/ayrıntılar/şehrin-savunma-değeri","pt_BR":"/pt-br/diário-do-mundo/detalhes/defesa-total-da-cidade","pt_PT":"/pt/diário-do-mundo/detalhes/total-town-defence","ja_JP":"/ja/世界の手帳/詳細/町の総防御値","ko_KR":"/ko/세계-일지/세부-정보/전체-마을-방어-수준","zh_CN":"/zh-cn/世界手册/详情/总城防值","zh_TW":"/zh-tw/世界手冊/詳情/總城防值","th_TH":"/th/บ-นท-กโลก/รายละเอ-ยด/การป-องก-นเม-องรวม","la_LA":"/la/liber-mundi/singula/total-town-defence"}},"articles":[],"answer":{"key":"world_stat:WorldStats_TownDefenceModifier","clauses":[]},"playerAnswers":{"schema":1,"game":"romestead","buildId":"25128773","dataVersion":"361b2d3b6606b011ae7584f4b184be93310f1d9111dabae2c6aac533fc5ada6a","language":"en","locale":"en","playerState":"not-observed","selection":{"entity":"world_stat:WorldStats_TownDefenceModifier"},"owner":{"entity":"world_stat:WorldStats_TownDefenceModifier","kind":"world_stat","name":"Total town defence","href":"/world-journal/details/total-town-defence","apiHref":"/api/page?path=%2Fworld-journal%2Fdetails%2Ftotal-town-defence","answersHref":"/api/player-answers?entity=world_stat%3AWorldStats_TownDefenceModifier&locale=en"},"page":1,"pages":1,"pageSize":20,"total":1,"rows":[{"id":"mechanic:raids:defence_rating","title":"Town defense rating and the Well Defended aura","statement":"The town defense rating sums registered providers with a world modifier and controls a citizen aura at the native Good threshold. The raid completion and failure formulas do not consume this rating as an automatic victory or damage reduction.","status":"operative-rule","language":"en","fields":{"aura":"citizen_aura:buff:town_defence","auraModifiers":{"Armor":{"Additive":20},"Citizen_Happiness":{"Additive":1},"MagicResistance":{"Additive":20}},"good":"int(okay * 1.3)","okay":"int(50 * (1 + tier) + 5 * (1 + tier) * sqrt(citizenCount))","total":"int(sum(TownDefenceProvider.Value) * WorldStats_TownDefenceModifier)"},"conditions":["TownDefenceHelper derives thresholds from the exact WorldTierHelper progression tier and citizen count.","OnTownCitizensChanged adds or removes the town aura according to total >= GoodValue. OnTownDefenceChanged compares the previous total with the threshold and applies the transition when the total changes.","GetTotalTownDefence sums provider values, applies WorldStats_TownDefenceModifier and truncates to int.","The registered Well Defended aura has duration -1, InstanceTypeId=town_defence and the exact +20 Armor, +20 MagicResistance and +1 Citizen_Happiness additive modifiers.","The actual raid manager uses raid progress and configured failure values, not GetTotalTownDefence or the Good/Okay labels. Citizen aura effects still matter through their native stats; no invulnerability or guaranteed defense is inferred."],"unknowns":["The current provider list, modifiers, town citizenship, aura refresh and entity combat state remain live inputs."],"questions":[{"id":"Q31","href":"/api/player-answers?question=Q31&locale=en"}],"relatedRules":[{"id":"mechanic:citizens:aura_lifecycle","href":"/api/player-answers?rule=mechanic%3Acitizens%3Aaura_lifecycle&locale=en"},{"id":"mechanic:citizens:stat_application","href":"/api/player-answers?rule=mechanic%3Acitizens%3Astat_application&locale=en"},{"id":"mechanic:raids:failure_citizens","href":"/api/player-answers?rule=mechanic%3Araids%3Afailure_citizens&locale=en"}],"entities":[{"entity":"citizen_aura:buff:town_defence","kind":"citizen_aura","name":"Well Defended","href":"/world-journal/effects/well-defended","apiHref":"/api/page?path=%2Fworld-journal%2Feffects%2Fwell-defended","answersHref":"/api/player-answers?entity=citizen_aura%3Abuff%3Atown_defence&locale=en","role":"applies-to"},{"entity":"citizen_aura:buff:town_defence","kind":"citizen_aura","name":"Well Defended","href":"/world-journal/effects/well-defended","apiHref":"/api/page?path=%2Fworld-journal%2Feffects%2Fwell-defended","answersHref":"/api/player-answers?entity=citizen_aura%3Abuff%3Atown_defence&locale=en","role":"references"},{"entity":"raid:cyclopelli","kind":"raid","name":"Cyclopelli Siege","href":"/world-journal/creatures/cyclopelli-siege","apiHref":"/api/page?path=%2Fworld-journal%2Fcreatures%2Fcyclopelli-siege","answersHref":"/api/player-answers?entity=raid%3Acyclopelli&locale=en","role":"applies-to"},{"entity":"raid:fallen:1","kind":"raid","name":"Fallen Horde","href":"/world-journal/creatures/fallen-horde","apiHref":"/api/page?path=%2Fworld-journal%2Fcreatures%2Ffallen-horde","answersHref":"/api/player-answers?entity=raid%3Afallen%3A1&locale=en","role":"applies-to"},{"entity":"raid:fallen:3","kind":"raid","name":"Burning Fallen Horde","href":"/world-journal/creatures/burning-fallen-horde","apiHref":"/api/page?path=%2Fworld-journal%2Fcreatures%2Fburning-fallen-horde","answersHref":"/api/player-answers?entity=raid%3Afallen%3A3&locale=en","role":"applies-to"},{"entity":"raid:gorgons","kind":"raid","name":"Gorgon Raid","href":"/world-journal/creatures/gorgon-raid","apiHref":"/api/page?path=%2Fworld-journal%2Fcreatures%2Fgorgon-raid","answersHref":"/api/player-answers?entity=raid%3Agorgons&locale=en","role":"applies-to"},{"entity":"raid:grey_satyr","kind":"raid","name":"Forest Satyr Raid","href":"/world-journal/creatures/forest-satyr-raid","apiHref":"/api/page?path=%2Fworld-journal%2Fcreatures%2Fforest-satyr-raid","answersHref":"/api/player-answers?entity=raid%3Agrey_satyr&locale=en","role":"applies-to"},{"entity":"raid:potmen","kind":"raid","name":"Potman Raid","href":"/world-journal/creatures/potman-raid","apiHref":"/api/page?path=%2Fworld-journal%2Fcreatures%2Fpotman-raid","answersHref":"/api/player-answers?entity=raid%3Apotmen&locale=en","role":"applies-to"},{"entity":"raid:pyzifax","kind":"raid","name":"Pyzifax Siege","href":"/world-journal/creatures/pyzifax-siege","apiHref":"/api/page?path=%2Fworld-journal%2Fcreatures%2Fpyzifax-siege","answersHref":"/api/player-answers?entity=raid%3Apyzifax&locale=en","role":"applies-to"},{"entity":"raid:rats","kind":"raid","name":"Rat Infestation","href":"/world-journal/creatures/rat-infestation","apiHref":"/api/page?path=%2Fworld-journal%2Fcreatures%2Frat-infestation","answersHref":"/api/player-answers?entity=raid%3Arats&locale=en","role":"applies-to"},{"entity":"raid:satyr","kind":"raid","name":"Desert Satyr Raid","href":"/world-journal/creatures/desert-satyr-raid","apiHref":"/api/page?path=%2Fworld-journal%2Fcreatures%2Fdesert-satyr-raid","answersHref":"/api/player-answers?entity=raid%3Asatyr&locale=en","role":"applies-to"},{"entity":"world_stat:WorldStats_TownDefenceModifier","kind":"world_stat","name":"Total town defence","href":"/world-journal/details/total-town-defence","apiHref":"/api/page?path=%2Fworld-journal%2Fdetails%2Ftotal-town-defence","answersHref":"/api/player-answers?entity=world_stat%3AWorldStats_TownDefenceModifier&locale=en","role":"applies-to"}],"href":"/api/player-answers?rule=mechanic%3Araids%3Adefence_rating&locale=en"}],"links":{"self":"/api/player-answers?entity=world_stat%3AWorldStats_TownDefenceModifier&locale=en","previous":null,"next":null,"discovery":"/api/player-answers?locale=en"}},"buildHistory":{"href":"/api/build-history?entity=world_stat%3AWorldStats_TownDefenceModifier&locale=en"},"worship":[],"facts":[],"objectives":[],"locations":{"page":1,"pages":1,"total":0,"rows":[]},"recipes":{"page":1,"pages":1,"total":0,"rows":[]},"uses":{"page":1,"pages":1,"total":0,"rows":[]},"sources":{"page":1,"pages":1,"total":0,"rows":[]},"provides":{"page":1,"pages":1,"total":0,"rows":[]},"stationRecipes":{"page":1,"pages":1,"total":0,"rows":[]},"relations":{"facet":"all","facets":[],"page":1,"pages":1,"total":0,"rows":[]}}