[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [werewolf] hacking werewolf code



Meanwhile, back at the model home, Lyman Hurd <lhurd@yahoo.com> said:

> So what are you intending to add?  Please let it be
> default night actions :-).  Actually the day's been
> sort of slow lately too...

I'd like that when the day ends, if you have queued up your target, it
sends out a message as if you just did it so that you can see and be
reminded of who you selected.

In particular, this right after all the history pushes in ProcessDay:


	foreach $p (@players) {
		next if $queue{$p} eq '-';
		next if $status{$p} =~ /^dead-/;
		next if $status{$queue{$p}} =~ /^dead-/;
		if (IsWerewolfNight) {
			next if $status{$p} eq 'mafia';
			next if $status{$p} eq 'police';
			next if $status{$p} eq 'medic';
		}
		if (IsMafiaNight) {
			next if $status{$p} eq 'werewolf';
			next if $status{$p} eq 'angel';
			next if $status{$p} eq 'seer';
		}

		SendBoard(RealName($p),UserAddr(RealName($p)),"$gametype select $boardno results","");

		$queue{$p} = '-';
	}

-- 
Ted Rathkopf