Replace all raw string comparisons with StringKey, source generator that creates cache keys for all names for Gen7 plugin
All checks were successful
Build / Build (push) Successful in 2m21s
All checks were successful
Build / Build (push) Successful in 2m21s
This commit is contained in:
@@ -14,7 +14,7 @@ public class GrassyTerrain : Script, IScriptChangeBasePower, IScriptOnEndTurn
|
||||
if (IsAffectedByTerrain(move.User))
|
||||
{
|
||||
var type = move.GetHitData(target, hit).Type;
|
||||
if (type?.Name == "grass")
|
||||
if (type?.Name == TypeNames.Grass)
|
||||
{
|
||||
basePower = basePower.MultiplyOrMax(1.5f);
|
||||
}
|
||||
@@ -25,7 +25,7 @@ public class GrassyTerrain : Script, IScriptChangeBasePower, IScriptOnEndTurn
|
||||
if (IsAffectedByTerrain(target))
|
||||
{
|
||||
var moveName = move.UseMove.Name;
|
||||
if (moveName == "bulldoze" || moveName == "earthquake" || moveName == "magnitude")
|
||||
if (moveName == MoveNames.Bulldoze || moveName == MoveNames.Earthquake || moveName == MoveNames.Magnitude)
|
||||
{
|
||||
basePower /= 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user