mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-18 21:47:44 +01:00
Improve festivals and add dolphins.
This commit is contained in:
parent
1fefe7366c
commit
42ac507b86
3 changed files with 48 additions and 5 deletions
|
|
@ -77,7 +77,8 @@ internal class FunEquipSet
|
|||
new Group(0000, 0, 0137, 2, 0000, 0, 0000, 0, 0000, 0), // Wailing Spirit
|
||||
new Group(0232, 1, 0232, 1, 0279, 1, 0232, 1, 0232, 1), // Eerie Attire
|
||||
new Group(0232, 1, 6036, 1, 0279, 1, 0232, 1, 0232, 1), // Vampire
|
||||
new Group(0505, 6, 0505, 6, 0505, 6, 0505, 6, 0505, 6) // Manusya Casting
|
||||
new Group(0505, 6, 0505, 6, 0505, 6, 0505, 6, 0505, 6), // Manusya Casting
|
||||
new Group(6147, 1, 6147, 1, 6147, 1, 6147, 1, 6147, 1) // Tonberry
|
||||
);
|
||||
|
||||
public static readonly FunEquipSet AprilFirst = new
|
||||
|
|
@ -94,7 +95,13 @@ internal class FunEquipSet
|
|||
new Group(0159, 1, 0000, 0, 0000, 0, 0000, 0, 0000, 0), // Slime Crown
|
||||
new Group(6117, 1, 6117, 1, 6117, 1, 6117, 1, 6117, 1), // Clown
|
||||
new Group(6169, 3, 6169, 3, 0279, 1, 6169, 3, 6169, 3), // Chocobo Pajama
|
||||
new Group(6169, 2, 6169, 2, 0279, 2, 6169, 2, 6169, 2) // Cactuar Pajama
|
||||
new Group(6169, 2, 6169, 2, 0279, 2, 6169, 2, 6169, 2), // Cactuar Pajama
|
||||
new Group(6023, 1, 6023, 1, 0000, 0, 0000, 0, 0000, 0), // Swine
|
||||
new Group(5040, 1, 0000, 0, 0000, 0, 0000, 0, 0000, 0), // Namazu only
|
||||
new Group(5040, 1, 6023, 1, 0000, 0, 0000, 0, 0000, 0), // Namazu lean
|
||||
new Group(5040, 1, 6023, 1, 0000, 0, 0000, 0, 0000, 0), // Namazu chonk
|
||||
new Group(6182, 1, 6182, 1, 0000, 0, 0000, 0, 0000, 0), // Imp
|
||||
new Group(6147, 1, 6147, 1, 6147, 1, 6147, 1, 6147, 1) // Tonberry
|
||||
);
|
||||
|
||||
private FunEquipSet(params Group[] groups)
|
||||
|
|
|
|||
|
|
@ -116,6 +116,7 @@ public unsafe class FunModule : IDisposable
|
|||
SetRandomItem(slot, ref armor);
|
||||
break;
|
||||
case CodeService.CodeFlag.Elephants:
|
||||
case CodeService.CodeFlag.Dolphins:
|
||||
case CodeService.CodeFlag.World when actor.Index != 0:
|
||||
KeepOldArmor(actor, slot, ref armor);
|
||||
break;
|
||||
|
|
@ -168,6 +169,10 @@ public unsafe class FunModule : IDisposable
|
|||
SetElephant(EquipSlot.Body, ref armor[1], stainId);
|
||||
SetElephant(EquipSlot.Head, ref armor[0], stainId);
|
||||
break;
|
||||
case CodeService.CodeFlag.Dolphins:
|
||||
SetDolphin(EquipSlot.Body, ref armor[1]);
|
||||
SetDolphin(EquipSlot.Head, ref armor[0]);
|
||||
break;
|
||||
case CodeService.CodeFlag.World when actor.Index != 0:
|
||||
_worldSets.Apply(actor, _rng, armor);
|
||||
break;
|
||||
|
|
@ -227,6 +232,32 @@ public unsafe class FunModule : IDisposable
|
|||
7, // Rose Pink
|
||||
];
|
||||
|
||||
private static IReadOnlyList<CharacterArmor> DolphinBodies
|
||||
=>
|
||||
[
|
||||
new CharacterArmor(6089, 1, 4), // Toad
|
||||
new CharacterArmor(6089, 1, 4), // Toad
|
||||
new CharacterArmor(6089, 1, 4), // Toad
|
||||
new CharacterArmor(6023, 1, 4), // Swine
|
||||
new CharacterArmor(6023, 1, 4), // Swine
|
||||
new CharacterArmor(6023, 1, 4), // Swine
|
||||
new CharacterArmor(6133, 1, 4), // Gaja
|
||||
new CharacterArmor(6182, 1, 3), // Imp
|
||||
new CharacterArmor(6182, 1, 3), // Imp
|
||||
new CharacterArmor(6182, 1, 4), // Imp
|
||||
new CharacterArmor(6182, 1, 4), // Imp
|
||||
];
|
||||
|
||||
private void SetDolphin(EquipSlot slot, ref CharacterArmor armor)
|
||||
{
|
||||
armor = slot switch
|
||||
{
|
||||
EquipSlot.Body => DolphinBodies[_rng.Next(0, DolphinBodies.Count - 1)],
|
||||
EquipSlot.Head => new CharacterArmor(5040, 1, 0),
|
||||
_ => armor,
|
||||
};
|
||||
}
|
||||
|
||||
private void SetElephant(EquipSlot slot, ref CharacterArmor armor, StainId stainId)
|
||||
{
|
||||
armor = slot switch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue