- 37
- Posts
- 8
- Years
- Seen Jan 21, 2021
Basically I thought I should be able to combine the basic Happiness method with the Hitmonchan / Lee method, just that it's higher Atk vs SpA here, but either I keep getting errors that begin with the '>=', or nothing happens upon levelup. Here's the closest I've gotten so far:
I also tried:
Do I need to the define the parameter maybe?
Code:
PBEvolution.register(:AtkGreaterHappy, {
"minimumLevel" => 1, # Needs any level up
"parameterType" => nil,
"levelUpCheck" => proc { |pkmn, parameter|
if pkmn.happiness >= 220
next pkmn.level >= parameter && pkmn.attack > pkmn.spatk
end
}
})
I also tried:
Code:
PBEvolution.register(:AtkGreaterHappy, {
"minimumLevel" => 1, # Needs any level up
"parameterType" => nil,
"levelUpCheck" => proc { |pkmn, parameter|
next pkmn.happiness >= 220 && pkmn.attack > pkmn.spatk
}
})
Do I need to the define the parameter maybe?