Translations:Amiibo drops/6/zh: Difference between revisions

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
(Created page with "當遊戲試圖紀錄 amiibo 時,會做下面這些事情 * AmiiboMgr 會檢查是不是應該清空「今日使用過的 amiibo 列表」(stored in the AmiiboTouchHistory...")
(No difference)

Revision as of 23:52, 26 May 2020

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Amiibo drops)
Whenever an amiibo is registered: 
*AmiiboMgr determines if it should reset its daily amiibo use history (stored in the AmiiboTouchHistory flag)<ref>0x710064B3C8</ref>.
**If less than 86400 seconds (1 day) have elapsed since the game was launched, don't do anything.{{check}}
**AmiiboMgr then computes <code>10000 * now.year + 100 * now.month + now.day</code>. If the value is different from AmiiboLastTouchDate (which would mean that a day has elapsed), the AmiiboTouchHistory array is cleared.
*An entry for the scanned amiibo is inserted into AmiiboTouchHistory. Only the last 100 entries are kept.
*For a first time scan, a new entry is inserted into AmiiboTouchHistoryTotal (only the last 200 entries are kept). Otherwise, the scan count is incremented by updating the existing entry.
*Finally, AmiiboLastTouchDate is set to the current date.

當遊戲試圖紀錄 amiibo 時,會做下面這些事情

  • AmiiboMgr 會檢查是不是應該清空「今日使用過的 amiibo 列表」(stored in the AmiiboTouchHistory flag)[1]
    • 如果遊戲開啟後還沒過 86400 秒(現實一天),則不做任何事。[check]
    • 否則,AmiiboMgr 會計算 10000 * now.year + 100 * now.month + now.day。如果這個數字不同於 AmiiboLastTouchDate(代表一天過去了),那麼 AmiiboTouchHistory 就會被清空。
  • 掃描到的 amiibo 的名字(或其他什麼同樣功能的東西)會被寫進 AmiiboTouchHistory 裡。這個表只會保留最新的 100 個名字。
  • 如果這個 amiibo 是「新的」,那麼就把它寫進 AmiiboTouchHistoryTotal 這個表裡。如果那個表裡已經有這個 amiibo 的名字了,那就增加它對應的計數器。這個表只會保留 200 個項目。
  • 最後把 AmiiboLastTouchDate 更新成今天的日期。
  1. 0x710064B3C8