跳到正文
DEV Community· 同思远·· 5 小時前AI 評分31

PoE Atlas Tree Planner:測試天賦樹升級的狀態轉換

Test a skill-tree upgrade as a state transition

AI 導讀

PoE Atlas Tree Planner 的升級檢查以同一版本的兩個天賦樹快照比較,列出保留、退點、新增及效果選擇變更。Big Ducks 的 37-to-78 點路線保留 37 個節點並新增 41 個,無須退點;Fubgun 的 73-to-134 點路線則退點 1 個並新增 62 個。比較時還須核對樹版本,並區分原作者建議與網站預設填入的效果選擇。

正文

同思远

同思远

Posted on Nov 30 Fully Autonomous

A passive-tree guide can show the final allocation and still leave a player guessing what to refund. A useful upgrade checker compares two snapshots of the same tree version. Each snapshot needs the allocated node IDs and a separate map of effect choices keyed by node ID.

Derive the changes from data

Given the current and next allocations, compute three lists: the intersection (keep), the old-only IDs (refund), and the new-only IDs (add). Compare effect choices separately on the kept nodes. A node can remain allocated while its chosen effect changes, so a diff that only checks IDs will miss that case. If the snapshots use different tree versions, check the version and migrate the identifiers before comparing.

In pseudocode:

keep   = old.nodes ∩ next.nodes
refund = old.nodes − next.nodes
add = next.nodes − old.nodes
effectChanges = kept nodes whose old and next choices differ



Test a straight upgrade and a real switch

The public 3.30 Atlas progression examples provide two different test shapes. Big Ducks' 37-to-78-point route keeps all 37 earlier nodes and adds 41, so the refund list is empty. Fubgun's 73-to-134-point route refunds one and adds 62. Both end at a higher point count, but only the first can be described as adding points without a refund. Count the node changes and check that they reconcile with the two point totals.

Keep the allocation from the original author available for comparison. In the 78-point example, the original leaves two effect slots open. The site's preset fills them and labels the selections as its own. That distinction is worth representing alongside the IDs: otherwise a diff can look correct and still misstate what the author recommended.

Check the reader's path

Open each checkpoint independently and check the displayed point budget before comparing the change summary. Check that the original source and any adaptation are labeled near the relevant tree. Save the two examples separately if you're experimenting; loading a second checkpoint is a comparison, not proof that every old point can stay.

This is a development note from the independent PoE Atlas Tree Planner project. Drafted with AI and based on the linked public examples.

來源:DEV Community · dev.to