Open source Star Ruler 2 source code!
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import bool getCheatsEverOn() from "cheats";
|
||||
|
||||
void giveAchievement(Empire@ emp, const string &in id) {
|
||||
if(!emp.valid || getCheatsEverOn())
|
||||
return;
|
||||
if(emp is playerEmpire)
|
||||
unlockAchievement(id);
|
||||
if(mpServer && emp.player !is null)
|
||||
clientAchievement(emp.player, id);
|
||||
}
|
||||
Reference in New Issue
Block a user