translator
745
edits
imported>Leoetlino |
m (adding translate tags and empty lines for better splitting) |
||
Line 1: | Line 1: | ||
<languages/> | |||
<translate> | |||
{{lowercase}} | {{lowercase}} | ||
== Drop tables == | == Drop tables == | ||
{|class="wikitable" | {|class="wikitable" | ||
! Idx || Name !! Description | ! Idx || Name !! Description | ||
Line 22: | Line 27: | ||
== amiibo registering == | == amiibo registering == | ||
amiibo are registered<ref>0x710064B564 on Switch 1.5.0</ref> every time an amiibo is used. | amiibo are registered<ref>0x710064B564 on Switch 1.5.0</ref> every time an amiibo is used. | ||
* [[AIDef:Action/CreateEpona]] does so after Epona has been spawned. | * [[AIDef:Action/CreateEpona]] does so after Epona has been spawned. | ||
Line 38: | Line 44: | ||
== Logic == | == Logic == | ||
A SmallHit happens 20% of the time. | A SmallHit happens 20% of the time. | ||
Line 61: | Line 68: | ||
=== Special cases === | === Special cases === | ||
==== Items with the AmiiboArmorItem tag ==== | ==== Items with the AmiiboArmorItem tag ==== | ||
If the player hasn't received the complete armor set from an amiibo, armor pieces that they have already received will not be spawned. | If the player hasn't received the complete armor set from an amiibo, armor pieces that they have already received will not be spawned. | ||
==== Items with the Important tag ==== | ==== Items with the Important tag ==== | ||
The IsGet_ flag for Important items must be false; otherwise they will not spawn. | The IsGet_ flag for Important items must be false; otherwise they will not spawn. | ||
==== Items with the AmiiboTreasure tag ==== | ==== Items with the AmiiboTreasure tag ==== | ||
Items with the AmiiboTreasure tag are spawned inside of a treasure chest (TBox_Field_Iron). | Items with the AmiiboTreasure tag are spawned inside of a treasure chest (TBox_Field_Iron). | ||
Line 78: | Line 89: | ||
==== Items with a name that starts with GameRomHorse ==== | ==== Items with a name that starts with GameRomHorse ==== | ||
If it is the first time you are scanning an amiibo that can drop horse equipment (if IsAmiiboDrop_GameRomHorseItem isn't set), the game will always spawn GameRomHorseSaddle_01 and GameRomHorseReins_01. | If it is the first time you are scanning an amiibo that can drop horse equipment (if IsAmiiboDrop_GameRomHorseItem isn't set), the game will always spawn GameRomHorseSaddle_01 and GameRomHorseReins_01. | ||
Line 83: | Line 95: | ||
==== Items that are marked as amiibo drops ==== | ==== Items that are marked as amiibo drops ==== | ||
Items that are marked as amiibo drops -- i.e. actors for which the "Amiibo" key exists in the "drops" dictionary in their [[ActorInfo]] entry -- receive an additional '''DropTable''' actor parameter. It is set to "Amiibo" for normal drop lists and "Amiibo_After" for Parasail/Remain lists. | Items that are marked as amiibo drops -- i.e. actors for which the "Amiibo" key exists in the "drops" dictionary in their [[ActorInfo]] entry -- receive an additional '''DropTable''' actor parameter. It is set to "Amiibo" for normal drop lists and "Amiibo_After" for Parasail/Remain lists. | ||
==== Ancient arrows ==== | ==== Ancient arrows ==== | ||
Obj_AncientArrow_A_01 and Obj_AncientArrow_C_01 can only spawn if you have already received Ancient Arrows at some point (if IsGet_AncientArrow is set). | Obj_AncientArrow_A_01 and Obj_AncientArrow_C_01 can only spawn if you have already received Ancient Arrows at some point (if IsGet_AncientArrow is set). | ||
==== Divine Beast helms (Armor_181_Head, Armor_182_Head, Armor_183_Head, Armor_184_Head) ==== | ==== Divine Beast helms (Armor_181_Head, Armor_182_Head, Armor_183_Head, Armor_184_Head) ==== | ||
When scanning a Champion amiibo, if you've completed any Divine Beast '''and''' received a Great Hit, '''and''' if you haven't already received the corresponding helm<ref>If the corresponding IsGet flag is false</ref>, the chest is guaranteed to contain the Divine Helm. | When scanning a Champion amiibo, if you've completed any Divine Beast '''and''' received a Great Hit, '''and''' if you haven't already received the corresponding helm<ref>If the corresponding IsGet flag is false</ref>, the chest is guaranteed to contain the Divine Helm. | ||
=== Code === | === Code === | ||
Unless otherwise indicated, all member function names below are unofficial. (Only the class name is official.) | Unless otherwise indicated, all member function names below are unofficial. (Only the class name is official.) | ||
==== action::ItemAmiiboCreateFromDropTable::getOneDrop ==== | ==== action::ItemAmiiboCreateFromDropTable::getOneDrop ==== | ||
This function is responsible for choosing a drop to be spawned. | This function is responsible for choosing a drop to be spawned. | ||
Line 100: | Line 117: | ||
==== action::ItemAmiiboCreateFromDropTable::doSpawn ==== | ==== action::ItemAmiiboCreateFromDropTable::doSpawn ==== | ||
This function is responsible for spawning a drop. | This function is responsible for spawning a drop. | ||
https://gist.github.com/leoetlino/ff246cb5c16b12c5af14a899d1cd8ffd | https://gist.github.com/leoetlino/ff246cb5c16b12c5af14a899d1cd8ffd | ||
</translate> | |||
== References == | == References == | ||
<references/> | <references/> | ||
[[Category:Internals]] | [[Category:Internals]] | ||
[[Category:Game mechanics]] | [[Category:Game mechanics]] |