vote_suspension.c

来自「C实现的MUD,对大家基本入门网络游戏很有帮助!」· C语言 代码 · 共 16 行

C
16
字号
// vote_suspension.c

#include <ansi.h>
#include <login.h>

int update_condition(object me, int duration)
{
	if (duration < 1) {
		tell_object(me, HIY "观察期已满,你又可以投票了!\n" NOR);
		me->delete("vote/deprived");
		return 0;
	}
	me->apply_condition("vote_suspension", duration - 1);
	return 1;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?