public static bool GetDrillMiningValidityOfBlocksIfYouBoughtTheRightDrill(Drill thisIsTheDrillThatThePlayerHas, Block thisIsTheBlockThatThePlayerIsCurrentlyAttemptingToRemoveFromTheWorldExceptTheyMightNotHaveTheRightDrill) { foreach (var thisIsOneOfTheBlockOptionsInTheListOfValidBlocksInTheDrill in thisIsTheDrillThatThePlayerHas.mineableBlocks) { if (thisIsTheBlockThatThePlayerIsCurrentlyAttemptingToRemoveFromTheWorldExceptTheyMightNotHaveTheRightDrill.GetType() == thisIsOneOfTheBlockOptionsInTheListOfValidBlocksInTheDrill) { return true; } } return false; }
public static bool GetDrillMiningValidityOfBlocksIfYouBoughtTheRightDrill(Drill thisIsTheDrillThatThePlayerHas, Block thisIsTheBlockThatThePlayerIsCurrentlyAttemptingToRemoveFromTheWorldExceptTheyMightNotHaveTheRightDrill) { foreach (var thisIsOneOfTheBlockOptionsInTheListOfValidBlocksInTheDrill in thisIsTheDrillThatThePlayerHas.mineableBlocks) { if (thisIsTheBlockThatThePlayerIsCurrentlyAttemptingToRemoveFromTheWorldExceptTheyMightNotHaveTheRightDrill.GetType() == thisIsOneOfTheBlockOptionsInTheListOfValidBlocksInTheDrill) { return(true); } } return(false); }