dong87.c
来自「C实现的MUD,对大家基本入门网络游戏很有帮助!」· C语言 代码 · 共 35 行
C
35 行
#include <room.h>#include <ansi.h>inherit ROOM;void create(){ set("short", WHT"钟乳石洞"NOR); set("long", WHT @LONG 洞顶都是尖尖的钟乳石,四周不停的有水珠滴下。 LONG NOR); set("exits", ([
"east" : __DIR__"dong88",
"south" : __DIR__"dong01",
"west" : __DIR__"dong5"+(random(4)+5),
"north" : __DIR__"dong6"+(random(8)+1),
]));
if (random(6)==1)
set("exits", ([
"south" : __DIR__"dong8"+(random(2)+7),
"north" : __DIR__"dong4"+(random(2)+7),
]));if (random(9)==0)
set("exits", ([
"east" : __DIR__"dong3"+(random(4)+5),
"west" : __DIR__"dong01",
])); set("objects", ([ __DIR__"npc/lev"+(random(9)+1) : 2, __DIR__"npc/lev"+(random(9)+1) : 2, ])); set("no_clean_up", 0); setup(); replace_program(ROOM);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?