Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (from->paperdoll[Character::Weapon] == util::to_int(this->world->mining_config["MiningWeapon"]))
- {
- if ((from->direction == DIRECTION_UP && this->GetSpec(from->x, from->y-1) == Map_Tile::Mining) ||
- (from->direction == DIRECTION_RIGHT && this->GetSpec(from->x+1, from->y) == Map_Tile::Mining) ||
- (from->direction == DIRECTION_DOWN && this->GetSpec(from->x, from->y+1) == Map_Tile::Mining) ||
- (from->direction == DIRECTION_LEFT && this->GetSpec(from->x-1, from->y) == Map_Tile::Mining))
- {
- this->Mine(from);
- }
- else
- {
- from->ServerMsg("You can't use the mining weapon for anything besides mining");
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement