-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2212 from codeeu/2210-2024-badges
2024 Badges
- Loading branch information
Showing
22 changed files
with
244 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace App\Achievements\Types; | ||
|
||
use Illuminate\Support\Facades\Log; | ||
|
||
class Influencer2024 extends AchievementType | ||
{ | ||
public $icon = 'influencer/influencer_normal_2024.png'; | ||
public $edition = 2024; | ||
public $name = 'Influencer 2024'; | ||
|
||
public function description() | ||
{ | ||
return 'Spread your influence more to get 10 bits'; | ||
} | ||
|
||
public function qualifier($user) | ||
{ | ||
return $user->influence($this->edition) >= 10; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace App\Achievements\Types; | ||
|
||
use Illuminate\Support\Facades\Log; | ||
|
||
class InfluencerActive2024 extends AchievementType | ||
{ | ||
public $icon = 'influencer/influencer_active_2024.png'; | ||
public $edition = 2024; | ||
public $name = 'Active Influencer 2024'; | ||
|
||
public function description() | ||
{ | ||
return 'Spread your influence more to get 20 bits'; | ||
} | ||
|
||
public function qualifier($user) | ||
{ | ||
return $user->influence($this->edition) >= 20; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace App\Achievements\Types; | ||
|
||
use Illuminate\Support\Facades\Log; | ||
|
||
class InfluencerChampion2024 extends AchievementType | ||
{ | ||
public $icon = 'influencer/influencer_champion_2024.png'; | ||
public $edition = 2024; | ||
public $name = 'Champion Influencer 2024'; | ||
|
||
public function description() | ||
{ | ||
return 'Spread your influence more to get 40 bits'; | ||
} | ||
|
||
public function qualifier($user) | ||
{ | ||
return $user->influence($this->edition) >= 40; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace App\Achievements\Types; | ||
|
||
use Illuminate\Support\Facades\Log; | ||
|
||
class InfluencerExpert2024 extends AchievementType | ||
{ | ||
public $icon = 'influencer/influencer_expert_2024.png'; | ||
public $edition = 2024; | ||
public $name = 'Expert Influencer 2024'; | ||
|
||
public function description() | ||
{ | ||
return 'Spread your influence more to get 30 bits'; | ||
} | ||
|
||
public function qualifier($user) | ||
{ | ||
return $user->influence($this->edition) >= 30; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace App\Achievements\Types; | ||
|
||
use Illuminate\Support\Facades\Log; | ||
|
||
class InfluencerLegendary2024 extends AchievementType | ||
{ | ||
public $icon = 'influencer/influencer_legendary_2024.png'; | ||
public $edition = 2024; | ||
public $name = 'Legendary Influencer 2024'; | ||
|
||
public function description() | ||
{ | ||
return 'Spread your influence more to get 60 bits'; | ||
} | ||
|
||
public function qualifier($user) | ||
{ | ||
return $user->influence($this->edition) >= 60; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace App\Achievements\Types; | ||
|
||
use Illuminate\Support\Facades\Log; | ||
|
||
class OrganiserActive2024 extends AchievementType | ||
{ | ||
public $icon = 'organiser/organiser_active_2024.png'; | ||
public $edition = 2024; | ||
public $name = 'Active Organiser 2024'; | ||
|
||
public function description() | ||
{ | ||
return 'Report 5 activities to unlock'; | ||
} | ||
|
||
public function qualifier($user) | ||
{ | ||
return $user->reported($this->edition) >= 5; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace App\Achievements\Types; | ||
|
||
class OrganiserChampion2024 extends AchievementType | ||
{ | ||
public $icon = 'organiser/organiser_champion_2024.png'; | ||
public $edition = 2024; | ||
public $name = 'Champion Organiser 2024'; | ||
|
||
public function description() | ||
{ | ||
return 'Report 15 activities to unlock'; | ||
} | ||
|
||
public function qualifier($user) | ||
{ | ||
return $user->reported($this->edition) >= 15; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace App\Achievements\Types; | ||
|
||
class OrganiserExpert2024 extends AchievementType | ||
{ | ||
public $icon = 'organiser/organiser_expert_2024.png'; | ||
public $edition = 2024; | ||
public $name = 'Expert Organiser 2024'; | ||
|
||
public function description() | ||
{ | ||
return 'Report 10 activities to unlock'; | ||
} | ||
|
||
public function qualifier($user) | ||
{ | ||
return $user->reported($this->edition) >= 10; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace App\Achievements\Types; | ||
|
||
class OrganiserLegendary2024 extends AchievementType | ||
{ | ||
public $icon = 'organiser/organiser_legendary_2024.png'; | ||
public $edition = 2024; | ||
public $name = 'Legendary Organiser 2024'; | ||
|
||
public function description() | ||
{ | ||
return 'Report 20 activities to unlock'; | ||
} | ||
|
||
public function qualifier($user) | ||
{ | ||
return $user->reported($this->edition) >= 20; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace App\Achievements\Types; | ||
|
||
class OrganiserMaster2024 extends AchievementType | ||
{ | ||
public $icon = 'organiser/organiser_master_2024.png'; | ||
public $edition = 2024; | ||
public $name = 'Master Organiser 2024'; | ||
|
||
public function description() | ||
{ | ||
return 'Report 30 activities to unlock'; | ||
} | ||
|
||
public function qualifier($user) | ||
{ | ||
return $user->reported($this->edition) >= 30; | ||
} | ||
|
||
|
||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters