Files
starruler-linux/scripts/server/achievements.as
T
2018-07-17 14:15:37 +02:00

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);
}