Amiibo drops: Difference between revisions
Jump to navigation
Jump to search
no edit summary
imported>Leoetlino (→Logic) |
imported>Leoetlino No edit summary |
||
Line 36: | Line 36: | ||
== Logic == | == Logic == | ||
[[AIDef:Action/ItemAmiiboCreateFromDropTable]] (the action that is responsible for determining the drop table and spawning the drops) follows the following process: | [[AIDef:Action/ItemAmiiboCreateFromDropTable]] (the action that is responsible for determining the drop table and spawning the drops) follows the following process: | ||
=== Step 1 - Determine drop rates and drop nums (in practice) === | |||
*Get the number of times the amiibo has been scanned for the current day (using AmiiboTouchHistory): $scanCount | *Get the number of times the amiibo has been scanned for the current day (using AmiiboTouchHistory): $scanCount | ||
*Get the number of times the amiibo has been scanned (using AmiiboTouchHistoryTotal): $scanCountTotal | *Get the number of times the amiibo has been scanned (using AmiiboTouchHistoryTotal): $scanCountTotal | ||
* | *Drop table category: | ||
**''Remain'' if Find_4Relic_1stClear is set | **''Remain'' if Find_4Relic_1stClear is set | ||
**''Parasail'' if IsGet_PlayerStole2 is set | **''Parasail'' if IsGet_PlayerStole2 is set | ||
**''Normal'' otherwise | **''Normal'' otherwise | ||
* | *Great Hit rate: 20% if $scanCountTotal < 4 and 100% otherwise | ||
*Big Hit rate: 0% if there is a GreatHit, 100% otherwise | |||
*Small Hit rate: 20% | |||
*Drop num rate: 20% | |||
* | |||
* | |||
* | |||
*For each [[#Drop tables|drop table]] ({Normal,SmallHit,BigHit,GreatHit}{,2}), calculate the actual drop num. | *For each [[#Drop tables|drop table]] ({Normal,SmallHit,BigHit,GreatHit}{,2}), calculate the actual drop num. | ||
**0 if the table doesn't exist in the [[bdrop]] | **0 if the table doesn't exist in the [[bdrop]] | ||
**<code>max(1, | **<code>max(1, repeatNum)</code> otherwise | ||
**'''Note:''' For BigHit and GreatHit tables, (Remain), (Parasail) or (Normal) are appended to the table name. | **'''Note:''' For BigHit and GreatHit tables, (Remain), (Parasail) or (Normal) are appended to the table name. | ||
=== Step 2 - Determine the final drop nums === | |||
{|class="wikitable" | {|class="wikitable" | ||
|+ Final drop nums after RNG (note: negative values are set to 0) | |+ Final drop nums after RNG (note: negative values are set to 0) |