Oh sorry, maybe I forgot to say that in my game I'm using the Auto Summon state feature to summon pets at the start of every battle. Basically I don't have any summoner actor in the party. I just have the graphic for the player to let him move around the maps (I removed every normal actor in the party). The player can put the pets in the deck and every time a pet is put in the deck, the pet will be given the Auto Summon state to be instantly summoned in battles (and every time the pet is removed from the deck, its Auto Summon state will be removed as well).
In order to achieve this effect, I used your JavaScript snippet that I found on your blog:
JavaScript:const autoSummonState = $dataStates.find(state => state && 'Auto Summon' in state.meta);
if (index == 0 && autoSummonState && replacedPet) {
replacedPet.eraseState(autoSummonState.id)
}
if (index == 0 && autoSummonState && substitutePet) {
substitutePet.addNewState(autoSummonState.id)
}
I used the same code for every pet in the deck (I just replaced the index number for every pet), so every pet can have the Auto Summon state.
Because of this, I turned off the Auto Add Summon Skills feature in the main Summon Plugin (but I tested this by turning it on again and the problem is still there).
And I don't want the pets to be given any summon skills because every pet is already auto summoned with the Auto Summon state and, most importantly, pets cannot summon other pets in my game.
So I was wondering why the pets will be given the summon skills when they are put in the deck. I can show you screenshots for proof (I'm using your demo project to test this):
1) The pet "Fox" is unlocked by adding it to the party. In the Companions menu there's no summon skill and that's okay:
2) The "Fox" is now added to the Deck and the summon skill appears in the list:
3) The pet "Cat" is unlocked by adding it to the party. In the Companions menu there's no summon skill for the "Cat", but it has the summon skill for the "Fox":
4) The "Cat" is now added to the Deck and the summon skill appears:
5) If the "Cat" and the "Fox" are removed from the deck, they won't have the summon skills anymore:
So why are the pets gaining summon skills for the pets after being added to the deck?
6) And also, the pets are still learning summon skills after leveling up:
Is there a way to prevent pets learn summon skills after leveling up?
EDIT: I just found an easy and quick fix by overriding this function:
JavaScript:MK.Summoning.createDummySkill = function(pet) {
return;
}
But I'm not sure if this fix is the right way to do this or if it's gonna cause other problems in my game. XD