summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 40946f2)
raw | patch | inline | side by side (parent: 40946f2)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Tue, 12 Sep 2017 07:50:48 +0000 (10:50 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Tue, 12 Sep 2017 07:50:58 +0000 (10:50 +0300) |
src/game/g_game.pas | patch | blob | history |
diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index 89d46d59b584d5c8c139d4feef8eb6abd1b82b8d..38fd9582e1182798a706a450a1c444c70caa1a52 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
g_Console_Add('ID | Name');
for b := MONSTER_DEMON to MONSTER_MAN do
g_Console_Add(Format('%2d | %s', [b, g_Mons_NameByTypeId(b)]));
+ conwriteln('behav. num'#10'normal 0'#10'killer 1'#10'maniac 2'#10'insane 3'#10'cannibal 4'#10'good 5');
end else
begin
a := StrToIntDef(P[1], 0);
gPlayer1.Direction, True);
end;
if (Length(P) > 2) and (mon <> nil) then
- mon.MonsterBehaviour := Min(Max(StrToIntDef(P[2], BH_NORMAL), BH_NORMAL), BH_GOOD);
+ begin
+ if (CompareText(P[2], 'normal') = 0) then mon.MonsterBehaviour := BH_NORMAL
+ else if (CompareText(P[2], 'killer') = 0) then mon.MonsterBehaviour := BH_KILLER
+ else if (CompareText(P[2], 'maniac') = 0) then mon.MonsterBehaviour := BH_MANIAC
+ else if (CompareText(P[2], 'insane') = 0) then mon.MonsterBehaviour := BH_INSANE
+ else if (CompareText(P[2], 'cannibal') = 0) then mon.MonsterBehaviour := BH_CANNIBAL
+ else if (CompareText(P[2], 'good') = 0) then mon.MonsterBehaviour := BH_GOOD
+ else if (CompareText(P[2], 'friend') = 0) then mon.MonsterBehaviour := BH_GOOD
+ else if (CompareText(P[2], 'friendly') = 0) then mon.MonsterBehaviour := BH_GOOD
+ else mon.MonsterBehaviour := Min(Max(StrToIntDef(P[2], BH_NORMAL), BH_NORMAL), BH_GOOD);
+ end;
end;
end;
end