18 public boolean execute(String ruleId, InteractionDialogAPI dialog, List<Token> params, Map<String, MemoryAPI> memoryMap) {
19 if (dialog ==
null)
return false;
21 float credits =
Global.
getSector().getPlayerFleet().getCargo().getCredits().get();
22 float tithe = (int)
Global.
getSector().getPlayerFleet().getFleetPoints() * 200;
24 memoryMap.get(MemKeys.LOCAL).set(
"$LP_tithe", (
int)tithe, 0);
25 memoryMap.get(MemKeys.LOCAL).set(
"$LP_titheDGS", Misc.getWithDGS(tithe), 0);
26 return credits >= tithe;