- 7
- Posts
- 8
- Years
- Seen Sep 5, 2016
Hey guys... I need your help on this one. Just not that much of a crack.
I am developing a new Pokémon database and now I am stuck on an algorithm.
Let's take Dragonite for instance. Based on the types matchup table:
Flying takes 2x damage from electric.
Dragon takes 0.5x damage from electric.
2 * 0.5 = 1 (Which doesn't make him weak to electric)!
Now let's take Croboat.
Poisen takes 2x damage from Ground.
Flying is immune to Ground.
2 * 0 = 0.
Does that mean even though their second type might take double damage from ground they are just immune to ground?
I am developing a new Pokémon database and now I am stuck on an algorithm.
Let's take Dragonite for instance. Based on the types matchup table:
Flying takes 2x damage from electric.
Dragon takes 0.5x damage from electric.
2 * 0.5 = 1 (Which doesn't make him weak to electric)!
Now let's take Croboat.
Poisen takes 2x damage from Ground.
Flying is immune to Ground.
2 * 0 = 0.
Does that mean even though their second type might take double damage from ground they are just immune to ground?