]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/anti.c
Update copyright notice
[empserver] / src / lib / commands / anti.c
index f456bee49aab8239ff9b81563eb53ee49ba8fb56..c389cf73493a126dc462961a7b1eacd34005eaf7 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2011, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2017, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                Ken Stevens, Steve McClure, Markus Armbruster
  *
  *  Empire is free software: you can redistribute it and/or modify
  *  Known contributors to this file:
  *     Pat Loney, 1992
  *     Steve McClure, 1997
+ *     Markus Armbruster, 2004-2012
  */
 
 #include <config.h>
 
+#include "chance.h"
 #include "commands.h"
 #include "item.h"
-#include "lost.h"
 #include "optlist.h"
 
 /*
@@ -123,7 +124,7 @@ anti(void)
                    sect.sct_mobil = 0;
                }
                sect.sct_loyal = sect.sct_loyal * 0.5;
-               n_cheleft = (random() % 4);
+               n_cheleft = roll0(4);
                /* 75% chance some che will get left */
                if (n_cheleft) {
                    /* Ok, now leave anywhere from 16% to 25% of the che */