Amiibo drops: Difference between revisions
→Logic
imported>Leoetlino |
imported>Leoetlino (→Logic) |
||
Line 60: | Line 60: | ||
=== 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, do not give them armor pieces that they have already received. | |||
==== Items with a name that starts with GameRomHorse ==== | ==== Items with a name that starts with GameRomHorse ==== | ||
Line 73: | Line 73: | ||
==== Drops from Item_Amiibo_DropTable_012, Item_Amiibo_DropTable_013, Item_Amiibo_DropTable_015 ==== | ==== Drops from Item_Amiibo_DropTable_012, Item_Amiibo_DropTable_013, Item_Amiibo_DropTable_015 ==== | ||
??? | ??? | ||
==== | ==== Some ore, electric/bomb arrows, GreatHit items ==== | ||
These are always spawned as a chest item (TBox_Field_Iron). The chest always receives the "IsAmiibo" property and "SharpWeaponJudgeType" is set to 2, which causes [[difficulty scaling#Weapon bonuses|different weapon bonuses]] and guarantees the weapon will have at least a blue/white modifier. | These are always spawned as a chest item (TBox_Field_Iron). The chest always receives the "IsAmiibo" property and "SharpWeaponJudgeType" is set to 2, which causes [[difficulty scaling#Weapon bonuses|different weapon bonuses]] and guarantees the weapon will have at least a blue/white modifier. | ||
==== 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 === | |||
Unless otherwise indicated, all member function names below are unofficial. (Only the class name is official.) | |||
==== action::ItemAmiiboCreateFromDropTable::getOneDrop ==== | |||
This function is responsible for choosing a drop to be spawned. | |||
https://gist.github.com/leoetlino/a67a874111c1bd97805239f8678e0d00 | |||
==== action::ItemAmiiboCreateFromDropTable::doSpawn ==== | |||
This function is responsible for spawning a drop. | |||
== References == | == References == |