Yiga Clan member spawns: Difference between revisions

Jump to navigation Jump to search
imported>Leoetlino
imported>Leoetlino
Line 35: Line 35:
</poem></blockquote>
</poem></blockquote>


...then Blademasters are allowed to spawn. In this case, Footsoldiers carry a random weapon:
Then:
<source lang="c++">
* Blademasters are allowed to spawn, and their weapon is a Windcleaver (Weapon_Lsword_074)
// probability: roughly 75%
* Archers are allowed to spawn, and their weapon is a Duplex Bow (Weapon_Bow_040)
if (sead::Random::getU32() / (U32_MAX+1) < 0.75)
* Footsoldiers now carry a Demon Carver (Weapon_Sword_073) instead of a Vicious Sickle (Weapon_Sword_053) 25% of the time.
  weapon = "Weapon_Sword_073"; // Demon Carver
else
  weapon = "Weapon_Sword_053"; // Vicious Sickle
</source>


'''Otherwise''':
'''Otherwise''', only footsoldiers are allowed to spawn dynamically, and '''only if''' [the player has talked to Impa ''or'' the Electric_Relic_AssassinFirst flag is set]. In this case, their weapon is always a Vicious Sickle.
* if Electric_Relic_AssassinFirst ''or'' Npc_Kakariko001_TalkEnd is set; '''and'''
* if the enemy is Enemy_Assassin_Junior, ''or'' a disguised Yiga, and in possibly more cases{{check}}


then only Footsoldiers may be dynamically generated, and they will only wield Vicious Sickles.
Note: if Electric_Relic_GetBack is set, [[AIDef:Action/CreateAndReplaceAssassin]] will create Yiga enemy actors with the DropTable parameter set to "HighRank". This causes them to drop better items upon defeat.
 
Note: if Electric_Relic_GetBack is set, [[AIDef:Action/CreateAndReplaceAssassin]] will create Yiga enemy actors with the DropTable parameter set to "HighRank".


[[Category:Internals]]
[[Category:Internals]]
[[Category:Game mechanics]]
[[Category:Game mechanics]]
Anonymous user

Navigation menu