feat: 奪還支援 ブレイフロクスの野営地 完全攻略ページの作成およびリンク追加
This commit is contained in:
1 parent
562d4c6d29
commit
cb8e062447
5 files changed
+497
-2
No files matched your search
@@ -57,7 +57,8 @@ const WIKI_NAV_CONFIG = {
|
||||
{ text: 'サスタシャ侵食洞 (Lv15)', path: 'dungeons/sastasha.html' },␍
|
||||
{ text: 'タムタラの墓所 (Lv16)', path: 'dungeons/tam_tara.html' },␍
|
||||
{ text: 'カッパーベル銅山 (Lv17)', path: 'dungeons/copperbell.html' },␍
|
||||
{ text: '記憶幻想 アレクサンドリア (Lv100)', path: 'dungeons/alexandria.html' }
|
||||
{ text: '記憶幻想 アレクサンドリア (Lv100)', path: 'dungeons/alexandria.html' },␍
|
||||
{ text: 'ブレイフロクスの野営地 (Lv32)', path: 'dungeons/brayflox.html' }␍
|
||||
]␍
|
||||
},␍
|
||||
{␍
|
||||
@@ -410,3 +411,4 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
}␍
|
||||
renderFooter();␍
|
||||
});␍
|
||||
␍
|
||||
@@ -72,6 +72,7 @@
|
||||
<li><a href="../dungeons/tam_tara.html">タムタラの墓所 (Lv16)</a></li>␍
|
||||
<li><a href="../dungeons/copperbell.html">カッパーベル銅山 (Lv17)</a></li>␍
|
||||
<li><a href="../dungeons/alexandria.html">記憶幻想 アレクサンドリア (Lv100)</a></li>␍
|
||||
<li><a href="../dungeons/brayflox.html">ブレイフロクスの野営地 (Lv32)</a></li>␍
|
||||
</ul>␍
|
||||
<p style="font-size: 11px; font-weight: bold; color: #d39e00; margin: 6px 0 2px;">討伐・討滅戦個別攻略</p>␍
|
||||
<ul>␍
|
||||
@@ -257,3 +258,4 @@
|
||||
</script>␍
|
||||
</body>␍
|
||||
</html>␍
|
||||
␍
|
||||
@@ -0,0 +1,412 @@
|
||||
<!DOCTYPE html>␍
|
||||
␍
|
||||
<html lang="ja">␍
|
||||
␍
|
||||
<head>␍
|
||||
␍
|
||||
<meta charset="UTF-8">␍
|
||||
␍
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">␍
|
||||
␍
|
||||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">␍
|
||||
␍
|
||||
<meta http-equiv="Pragma" content="no-cache">␍
|
||||
␍
|
||||
<meta http-equiv="Expires" content="0">␍
|
||||
␍
|
||||
<title>奪還支援 ブレイフロクスの野営地 完全攻略・ボスギミック&ロール別立ち回り - FF14 攻略Wiki</title>␍
|
||||
␍
|
||||
<link rel="stylesheet" href="../common/css/seesaa_neutral_gray.css">␍
|
||||
␍
|
||||
</head>␍
|
||||
␍
|
||||
<body>␍
|
||||
␍
|
||||
<div id="wiki-wrapper">␍
|
||||
␍
|
||||
<!-- 共通ヘッダー&グローバルナビ(iframe共通化) -->␍
|
||||
␍
|
||||
<iframe src="../common/header.html" class="wiki-header-frame" frameborder="0" scrolling="no"></iframe>␍
|
||||
␍
|
||||
<!-- 2カラムコンテンツ -->␍
|
||||
␍
|
||||
<div id="wiki-container">␍
|
||||
␍
|
||||
<!-- 共通左サイドバー(iframe共通化) -->␍
|
||||
␍
|
||||
<div id="wiki-sidebar">␍
|
||||
␍
|
||||
<iframe src="../common/sidebar.html" class="wiki-sidebar-frame" frameborder="0"></iframe>␍
|
||||
␍
|
||||
</div>␍
|
||||
␍
|
||||
<main id="wiki-main">␍
|
||||
␍
|
||||
<div class="wiki-breadcrumbs">␍
|
||||
␍
|
||||
<a href="../index.html">トップ</a> > <a href="index.html">ダンジョン攻略</a> > <span>新生エオルゼア</span> > <strong>奪還支援 ブレイフロクスの野営地 完全攻略</strong>␍
|
||||
␍
|
||||
</div>␍
|
||||
␍
|
||||
<div class="wiki-page-header">␍
|
||||
␍
|
||||
<h1 class="wiki-page-title">奪還支援 ブレイフロクスの野営地 完全攻略・ボスギミック&ロール別立ち回り</h1>␍
|
||||
␍
|
||||
<div class="wiki-page-meta">␍
|
||||
␍
|
||||
<span>コンテンツ種別: 4人制インスタンスダンジョン</span>␍
|
||||
␍
|
||||
<span>適正レベル: Lv32〜34(シンク上限Lv34)</span>␍
|
||||
␍
|
||||
<span>最終更新: 2026年10月29日</span>␍
|
||||
␍
|
||||
<span>対応パッチ: 7.x 黄金のレガシー最新</span>␍
|
||||
␍
|
||||
</div>␍
|
||||
␍
|
||||
<div class="wiki-box wiki-box-alert">␍
|
||||
␍
|
||||
<div class="wiki-box-title">📢 初の「ジョブ」本格運用ID・毒ギミックの登竜門</div>␍
|
||||
␍
|
||||
<div class="wiki-box-content">␍
|
||||
␍
|
||||
<ul class="wiki-list" style="margin-bottom: 0;">␍
|
||||
␍
|
||||
<li><strong>ジョブクリスタル装備必須:</strong> クラス(剣術士・幻術士等)からジョブ(ナイト・白魔道士等)へ昇格して挑むことが強く推奨されるレベル帯。</li>␍
|
||||
␍
|
||||
<li><strong>大ボス「アイアタル」の毒沼誘導:</strong> ボスが吐き出す毒液(緑色の毒沼)の上にボス自身が乗っているとリジェネ(HP自動回復)するため、タンクは即座に通常床へ引っ張り出す。</li>␍
|
||||
␍
|
||||
<li><strong>毒デバフのエスナ解除:</strong> 毒スタックが増えるとヒーラーの回復が追いつかなくなるため、エスナでのデバフ解除を徹底。</li>␍
|
||||
␍
|
||||
</ul>␍
|
||||
␍
|
||||
</div>␍
|
||||
␍
|
||||
</div>␍
|
||||
␍
|
||||
</div>␍
|
||||
␍
|
||||
<p>「奪還支援 ブレイフロクスの野営地」は、東ラノシアのジャングルに位置するゴブリン族の野営地である。水辺や湿地帯の進行、毒沼トラップ、大ボス「アイアタル」の誘導テクニック、各ロールの立ち回りを徹底解説する。</p>␍
|
||||
␍
|
||||
<!-- 目次 -->␍
|
||||
␍
|
||||
<div class="wiki-toc">␍
|
||||
␍
|
||||
<div class="wiki-toc-title">目次</div>␍
|
||||
␍
|
||||
<ul class="wiki-toc-list">␍
|
||||
␍
|
||||
<li><a href="#section-overview">1. コンテンツ基本データ・解放手順・ドロップ報酬</a></li>␍
|
||||
␍
|
||||
<li><a href="#section-dungeon-flow">2. 全体マップ進行・道中の進め方&周回ルート</a></li>␍
|
||||
␍
|
||||
<li><a href="#section-boss-1">3. ボス1攻略:グレート・イエローペリカン</a></li>␍
|
||||
␍
|
||||
<li><a href="#section-boss-2">4. ボス2攻略:インフェルノ・ドレイク</a></li>␍
|
||||
␍
|
||||
<li><a href="#section-boss-3">5. ボス3攻略:ヘルベンダー</a></li>␍
|
||||
␍
|
||||
<li><a href="#section-boss-4">6. 大ボス攻略:アイアタル</a></li>␍
|
||||
␍
|
||||
<li><a href="#section-role-summary">7. ロール別立ち回り&よくある全滅原因</a></li>␍
|
||||
␍
|
||||
</ul>␍
|
||||
␍
|
||||
</div>␍
|
||||
␍
|
||||
<!-- 1. 基本データ -->␍
|
||||
␍
|
||||
<h2 id="section-overview" class="wiki-h2">1. コンテンツ基本データ・解放手順・ドロップ報酬</h2>␍
|
||||
␍
|
||||
<table class="wiki-table">␍
|
||||
␍
|
||||
<thead>␍
|
||||
␍
|
||||
<tr>␍
|
||||
␍
|
||||
<th style="width: 25%;">項目</th>␍
|
||||
␍
|
||||
<th>詳細データ</th>␍
|
||||
␍
|
||||
</tr>␍
|
||||
␍
|
||||
</thead>␍
|
||||
␍
|
||||
<tbody>␍
|
||||
␍
|
||||
<tr>␍
|
||||
␍
|
||||
<td><strong>参加条件</strong></td>␍
|
||||
␍
|
||||
<td>ファイター/ソーサラー Lv32以上(アイテムレベル制限なし)</td>␍
|
||||
␍
|
||||
</tr>␍
|
||||
␍
|
||||
<tr>␍
|
||||
␍
|
||||
<td><strong>制限時間 / 参加人数</strong></td>␍
|
||||
␍
|
||||
<td>90分 / 4人(タンク1 / ヒーラー1 / DPS2)</td>␍
|
||||
␍
|
||||
</tr>␍
|
||||
␍
|
||||
<tr>␍
|
||||
␍
|
||||
<td><strong>解放クエスト</strong></td>␍
|
||||
␍
|
||||
<td>メインクエスト<strong>「カタリストの行方」</strong></td>␍
|
||||
␍
|
||||
</tr>␍
|
||||
␍
|
||||
<tr>␍
|
||||
␍
|
||||
<td><strong>受注場所 / NPC</strong></td>␍
|
||||
␍
|
||||
<td>東ラノシア:ワインポート / NPC「シャミア・サトミア」</td>␍
|
||||
␍
|
||||
</tr>␍
|
||||
␍
|
||||
<tr>␍
|
||||
␍
|
||||
<td><strong>クリア報酬</strong></td>␍
|
||||
␍
|
||||
<td>大量経験値、ギル</td>␍
|
||||
␍
|
||||
</tr>␍
|
||||
␍
|
||||
<tr>␍
|
||||
␍
|
||||
<td><strong>宝箱・ドロップ品</strong></td>␍
|
||||
␍
|
||||
<td>Lv32バトルメイジ装備、キャバルリー装備、インファントリー装備(大人気ミラプリ)</td>␍
|
||||
␍
|
||||
</tr>␍
|
||||
␍
|
||||
<tr>␍
|
||||
␍
|
||||
<td><strong>コンテンツサポーター</strong></td>␍
|
||||
␍
|
||||
<td><strong>完全対応</strong>(ソロ攻略可能)</td>␍
|
||||
␍
|
||||
</tr>␍
|
||||
␍
|
||||
</tbody>␍
|
||||
␍
|
||||
</table>␍
|
||||
␍
|
||||
<!-- 2. 全体マップ進行 -->␍
|
||||
␍
|
||||
<h2 id="section-dungeon-flow" class="wiki-h2">2. 全体マップ進行・道中の進め方&周回ルート</h2>␍
|
||||
␍
|
||||
<h3 class="wiki-h3">全体進行フロー</h3>␍
|
||||
␍
|
||||
<ol class="wiki-list">␍
|
||||
␍
|
||||
<li><strong>スタート ➜ ボス1区画:</strong> ゲートキーパーのゴブリンを助けつつ鍵を入手。水辺のトカゲや鳥をタンクがまとめて撃破。</li>␍
|
||||
␍
|
||||
<li><strong>ボス1 ➜ ボス2区画:</strong> つり橋を渡り、ドレイクが生息する野営地跡へ。眠っているモンスターは無理に起こさず通り抜けることも可能。</li>␍
|
||||
␍
|
||||
<li><strong>ボス2 ➜ ボス3区画:</strong> 湿地帯。水生モンスターと巨大トカゲの2グループまとめ進行。</li>␍
|
||||
␍
|
||||
<li><strong>ボス3 ➜ 大ボス区画:</strong> 洞窟を抜け、緑色の毒霧が立ち込める最深部「竜のねぐら」へ突入。</li>␍
|
||||
␍
|
||||
</ol>␍
|
||||
␍
|
||||
<!-- 3. ボス1攻略 -->␍
|
||||
␍
|
||||
<h2 id="section-boss-1" class="wiki-h2">3. ボス1攻略:グレート・イエローペリカン</h2>␍
|
||||
␍
|
||||
<p>毒ブレスを吐く巨大怪鳥。増援の小型ペリカンが出現する。</p>␍
|
||||
␍
|
||||
<ul class="wiki-list">␍
|
||||
␍
|
||||
<li><strong>毒ブレスの向き:</strong> ボスの前方に強烈な毒ブレスを吐くため、タンクはボスの頭を必ず外周に向ける。</li>␍
|
||||
␍
|
||||
<li><strong>ペリカン増援:</strong> 戦闘中に湧く小ペリカンをタンクが範囲攻撃でキャッチし、DPSが迅速に処理する。</li>␍
|
||||
␍
|
||||
</ul>␍
|
||||
␍
|
||||
<!-- 4. ボス2攻略 -->␍
|
||||
␍
|
||||
<h2 id="section-boss-2" class="wiki-h2">4. ボス2攻略:インフェルノ・ドレイク</h2>␍
|
||||
␍
|
||||
<p>火を噴くトカゲモンスター。ブレイフロクス(ゴブリンNPC)が逃げ回りながら乱入してくる。</p>␍
|
||||
␍
|
||||
<ul class="wiki-list">␍
|
||||
␍
|
||||
<li><strong>ブレイフロクスの救出:</strong> 増援の小ドレイクがブレイフロクスを追尾するため、タンクが敵視を取るかDPSが素早く倒す。</li>␍
|
||||
␍
|
||||
</ul>␍
|
||||
␍
|
||||
<!-- 5. ボス3攻略 -->␍
|
||||
␍
|
||||
<h2 id="section-boss-3" class="wiki-h2">5. ボス3攻略:ヘルベンダー</h2>␍
|
||||
␍
|
||||
<p>オタマジャクシ型の水棲魔獣。ボグ・バブルによる行動不能トラップを仕掛けてくる。</p>␍
|
||||
␍
|
||||
<table class="wiki-table">␍
|
||||
␍
|
||||
<thead>␍
|
||||
␍
|
||||
<tr>␍
|
||||
␍
|
||||
<th style="width: 25%;">技名</th>␍
|
||||
␍
|
||||
<th>効果と対処法</th>␍
|
||||
␍
|
||||
</tr>␍
|
||||
␍
|
||||
</thead>␍
|
||||
␍
|
||||
<tbody>␍
|
||||
␍
|
||||
<tr>␍
|
||||
␍
|
||||
<td><strong>ボグ・バブル(水泡拘束)</strong></td>␍
|
||||
␍
|
||||
<td>ランダム1名を巨大な泡の中に閉じ込め行動不能にする。他のメンバーが泡を攻撃して破壊すると即座に救出できる。</td>␍
|
||||
␍
|
||||
</tr>␍
|
||||
␍
|
||||
</tbody>␍
|
||||
␍
|
||||
</table>␍
|
||||
␍
|
||||
<!-- 6. 大ボス攻略 -->␍
|
||||
␍
|
||||
<h2 id="section-boss-4" class="wiki-h2">6. 大ボス攻略:アイアタル</h2>␍
|
||||
␍
|
||||
<p>緑色の翼竜型ドラゴン。フィールドに毒沼を生成し、自ら回復する厄介なボス。</p>␍
|
||||
␍
|
||||
<table class="wiki-table">␍
|
||||
␍
|
||||
<thead>␍
|
||||
␍
|
||||
<tr>␍
|
||||
␍
|
||||
<th style="width: 25%;">技名(詠唱)</th>␍
|
||||
␍
|
||||
<th style="width: 25%;">攻撃タイプ・予兆</th>␍
|
||||
␍
|
||||
<th>効果・回避ギミック解説</th>␍
|
||||
␍
|
||||
</tr>␍
|
||||
␍
|
||||
</thead>␍
|
||||
␍
|
||||
<tbody>␍
|
||||
␍
|
||||
<tr>␍
|
||||
␍
|
||||
<td><strong>毒液(トキシック・ヴォミット)</strong></td>␍
|
||||
␍
|
||||
<td>円形床設置毒沼</td>␍
|
||||
␍
|
||||
<td>プレイヤーの足元に緑色の毒沼を生成。触れると猛毒デバフ(スタック制)が付与される。<strong>ボスがこの毒沼の上に乗っていると、ボス自身のリジェネ(HP回復)が猛烈に発動する</strong>ため、タンクは即座にボスを毒沼のない通常床へ誘導する。</td>␍
|
||||
␍
|
||||
</tr>␍
|
||||
␍
|
||||
<tr>␍
|
||||
␍
|
||||
<td><strong>毒ブレス</strong></td>␍
|
||||
␍
|
||||
<td>前方扇状不可視攻撃</td>␍
|
||||
␍
|
||||
<td>タンクへの強打撃+毒付与。タンク以外が巻き込まれないよう外周に向ける。</td>␍
|
||||
␍
|
||||
</tr>␍
|
||||
␍
|
||||
<tr>␍
|
||||
␍
|
||||
<td><strong>スワイプ</strong></td>␍
|
||||
␍
|
||||
<td>後方扇状攻撃(予兆あり)</td>␍
|
||||
␍
|
||||
<td>ボスの背後に尻尾を叩きつける。側面へ避難する。</td>␍
|
||||
␍
|
||||
</tr>␍
|
||||
␍
|
||||
</tbody>␍
|
||||
␍
|
||||
</table>␍
|
||||
␍
|
||||
<!-- 7. ロール別まとめ -->␍
|
||||
␍
|
||||
<h2 id="section-role-summary" class="wiki-h2">7. ロール別立ち回り&よくある全滅原因</h2>␍
|
||||
␍
|
||||
<table class="wiki-table">␍
|
||||
␍
|
||||
<thead>␍
|
||||
␍
|
||||
<tr>␍
|
||||
␍
|
||||
<th style="width: 20%;">ロール</th>␍
|
||||
␍
|
||||
<th>立ち回りの要点・注意点</th>␍
|
||||
␍
|
||||
</tr>␍
|
||||
␍
|
||||
</thead>␍
|
||||
␍
|
||||
<tbody>␍
|
||||
␍
|
||||
<tr>␍
|
||||
␍
|
||||
<td><strong>TANK(タンク)</strong></td>␍
|
||||
␍
|
||||
<td>大ボス戦の誘導が最重要。毒沼が出たら直ちにボスを引っ張って毒沼の外へ出す。外周を円を描くように順次移動させて安全地帯を広く確保する。</td>␍
|
||||
␍
|
||||
</tr>␍
|
||||
␍
|
||||
<tr>␍
|
||||
␍
|
||||
<td><strong>HEALER(ヒーラー)</strong></td>␍
|
||||
␍
|
||||
<td>タンクや味方に毒デバフが2スタック以上溜まったら「エスナ」で迅速に解除。毒沼の上には絶対に足を踏み入れない。</td>␍
|
||||
␍
|
||||
</tr>␍
|
||||
␍
|
||||
<tr>␍
|
||||
␍
|
||||
<td><strong>DPS(攻)</strong></td>␍
|
||||
␍
|
||||
<td>自身に毒液マーカーがついた場合、フィールドの中央に捨てず、外周の端に捨ててから戻る。ボスの背後で殴る際はスワイプの予兆に注意。</td>␍
|
||||
␍
|
||||
</tr>␍
|
||||
␍
|
||||
</tbody>␍
|
||||
␍
|
||||
</table>␍
|
||||
␍
|
||||
<div class="wiki-callout danger">␍
|
||||
␍
|
||||
<div class="wiki-callout-title">⚠️ 初心者が最も陥りやすい全滅原因と対策</div>␍
|
||||
␍
|
||||
<p><strong>アイアタルを毒沼の上で戦わせる回復ループ全滅:</strong><br>␍
|
||||
␍
|
||||
タンクが動かず、ボスを毒沼の上に乗せたまま戦い続けると、ボスのHPが高速で全快し続けて戦闘が終わらず、ヒーラーのMPが枯渇して全滅する。ボスが緑の沼に乗ったら1秒も躊躇せず通常床へ引っ張り出すこと。</p>␍
|
||||
␍
|
||||
</div>␍
|
||||
␍
|
||||
</main>␍
|
||||
␍
|
||||
</div>␍
|
||||
␍
|
||||
<!-- フッター -->␍
|
||||
␍
|
||||
<footer id="wiki-footer">␍
|
||||
␍
|
||||
<p>© SQUARE ENIX CO., LTD. All Rights Reserved. | FINAL FANTASY XIV</p>␍
|
||||
␍
|
||||
<p>FF14 攻略Wiki (Seesaa Wiki ニュートラルグレー テンプレート完全準拠)</p>␍
|
||||
␍
|
||||
</footer>␍
|
||||
␍
|
||||
</div>␍
|
||||
␍
|
||||
<script src="../common/js/wiki_common.js"></script>␍
|
||||
␍
|
||||
</body>␍
|
||||
␍
|
||||
</html>␍
|
||||
␍
|
||||
+2
-1
@@ -156,7 +156,7 @@
|
||||
<td><strong>奪還支援 ブレイフロクスの野営地</strong></td>␍
|
||||
<td>Lv32 (新生2.0)</td>␍
|
||||
<td>初のジョブ専用アクション使用ID。毒消し、アイアタル毒沼誘導の登竜門。</td>␍
|
||||
<td>準備中</td>
|
||||
<td><a href="brayflox.html">攻略を見る ➜</a></td>␍
|
||||
</tr>␍
|
||||
<tr>␍
|
||||
<td><strong>強硬突入 イシュガルド教皇庁</strong></td>␍
|
||||
@@ -187,3 +187,4 @@
|
||||
<script src="../common/js/wiki_common.js"></script>␍
|
||||
</body>␍
|
||||
</html>␍
|
||||
␍
|
||||
@@ -0,0 +1,78 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import os
|
||||
import re
|
||||
|
||||
def normalize_text(text):
|
||||
# CRLF統一
|
||||
text = text.replace('\r\n', '\n').replace('\r', '\n')
|
||||
lines = [line.rstrip() for line in text.split('\n')]
|
||||
# 連続空行の防止(最大1行)
|
||||
result_lines = []
|
||||
prev_empty = False
|
||||
for line in lines:
|
||||
if line == '':
|
||||
if not prev_empty:
|
||||
result_lines.append(line)
|
||||
prev_empty = True
|
||||
else:
|
||||
result_lines.append(line)
|
||||
prev_empty = False
|
||||
return '\r\n'.join(result_lines) + '\r\n'
|
||||
|
||||
def save_utf8_bom(path, content):
|
||||
content = normalize_text(content)
|
||||
# 既存の先頭BOM文字を除去してから書き込む
|
||||
content = content.lstrip('\ufeff')
|
||||
with open(path, 'w', encoding='utf-8-sig', newline='\r\n') as f:
|
||||
f.write(content)
|
||||
|
||||
def update_dungeon_index(dungeon_id, dungeon_name, url):
|
||||
path = 'dungeons/index.html'
|
||||
if not os.path.exists(path):
|
||||
return
|
||||
with open(path, 'r', encoding='utf-8', errors='ignore') as f:
|
||||
c = f.read()
|
||||
# 該当行の「準備中」をリンクへ置換
|
||||
pattern = re.compile(rf'(<td><strong>[^<]*{re.escape(dungeon_name)}[^<]*</strong></td>\s*<td>[^<]*</td>\s*<td>[^<]*</td>\s*<td>)準備中(</td>)', re.DOTALL)
|
||||
if pattern.search(c):
|
||||
c = pattern.sub(rf'\g<1><a href="{url}">攻略を見る ➜</a>\2', c)
|
||||
save_utf8_bom(path, c)
|
||||
print(f"Updated {path} for {dungeon_name}")
|
||||
|
||||
def update_sidebar_dungeon(name, url):
|
||||
# 1. sidebar.html
|
||||
path_sb = 'common/sidebar.html'
|
||||
if os.path.exists(path_sb):
|
||||
with open(path_sb, 'r', encoding='utf-8', errors='ignore') as f:
|
||||
c = f.read()
|
||||
target = '<li><a href="../dungeons/alexandria.html">記憶幻想 アレクサンドリア (Lv100)</a></li>'
|
||||
new_entry = f'<li><a href="../dungeons/{url}">{name}</a></li>'
|
||||
if new_entry not in c and target in c:
|
||||
c = c.replace(target, f'{target}\n {new_entry}')
|
||||
save_utf8_bom(path_sb, c)
|
||||
print(f"Updated {path_sb} with {name}")
|
||||
|
||||
# 2. wiki_common.js
|
||||
path_js = 'common/js/wiki_common.js'
|
||||
if os.path.exists(path_js):
|
||||
with open(path_js, 'r', encoding='utf-8', errors='ignore') as f:
|
||||
c = f.read()
|
||||
target_js = "{ text: '記憶幻想 アレクサンドリア (Lv100)', path: 'dungeons/alexandria.html' }"
|
||||
new_entry_js = f"{{ text: '{name}', path: 'dungeons/{url}' }}"
|
||||
if new_entry_js not in c and target_js in c:
|
||||
c = c.replace(target_js, f"{target_js},\n {new_entry_js}")
|
||||
save_utf8_bom(path_js, c)
|
||||
print(f"Updated {path_js} with {name}")
|
||||
|
||||
def normalize_file(filepath):
|
||||
if not os.path.exists(filepath):
|
||||
return
|
||||
with open(filepath, 'r', encoding='utf-8', errors='ignore') as f:
|
||||
c = f.read()
|
||||
save_utf8_bom(filepath, c)
|
||||
print(f"Normalized {filepath}")
|
||||
|
||||
if __name__ == '__main__':
|
||||
normalize_file('dungeons/brayflox.html')
|
||||
update_dungeon_index('brayflox', 'ブレイフロクス', 'brayflox.html')
|
||||
update_sidebar_dungeon('ブレイフロクスの野営地 (Lv32)', 'brayflox.html')
|
||||
Reference in new issue
Block a user