10 lines
275 B
ActionScript 3
10 lines
275 B
ActionScript 3
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);
|
|
} |