static */
| 99 | } |
| 100 | |
| 101 | /* static */ bool ScriptGoal::SetProgress(GoalID goal_id, Text *progress) |
| 102 | { |
| 103 | ScriptObjectRef counter(progress); |
| 104 | |
| 105 | EnforcePrecondition(false, IsValidGoal(goal_id)); |
| 106 | EnforceDeityMode(false); |
| 107 | |
| 108 | return ScriptObject::Command<CMD_SET_GOAL_PROGRESS>::Do(goal_id, progress != nullptr ? progress->GetEncodedText() : EncodedString{}); |
| 109 | } |
| 110 | |
| 111 | /* static */ bool ScriptGoal::SetCompleted(GoalID goal_id, bool completed) |
| 112 | { |
nothing calls this directly
no test coverage detected