Closed Stadler76 closed 6 years ago
Implemented createPerkIfNotHasPerk to shorten code, like:
createPerkIfNotHasPerk
if (player.findPerk(PerkLib.Dragonfire) < 0) player.createPerk(PerkLib.Dragonfire, 0, 0, 0, 0);
to:
player.createPerkIfNotHasPerk(PerkLib.Dragonfire);
The 4 perk values are optional and all default to 0.
(Mis)used custom character Etis as an example since he has a lot of perks.
In addition to the I made the 4 perk values for createPerk optional, too, because why not?
createPerk
This is quite promising, can reduce the amount of code.
Implemented
createPerkIfNotHasPerk
to shorten code, like:to:
The 4 perk values are optional and all default to 0.
(Mis)used custom character Etis as an example since he has a lot of perks.
In addition to the I made the 4 perk values for
createPerk
optional, too, because why not?