index 999db6b3ad32f1dad2dd127da468182a24abcdd6..e39b8c66a3dfdd7b6a2491f85087cae51e119ddb 100644 (file)
--- a/src/game/g_triggers.pas
+++ b/src/game/g_triggers.pas
a, b, c: Integer;
wx, wy, wh, ww: Integer;
- function monsDamage (monidx: Integer; mon: TMonster): Boolean;
+ function monsDamage (mon: TMonster): Boolean;
begin
result := false; // don't stop
if g_Obj_Collide(wx, wy, ww, wh, @mon.Obj) then mon.Damage(TRAP_DAMAGE, 0, 0, 0, HIT_TRAP);
it: PItem;
mon: TMonster;
- function monsShotTarget (monidx: Integer; mon: TMonster): Boolean;
+ function monsShotTarget (mon: TMonster): Boolean;
begin
result := false; // don't stop
if mon.Live and tr_ShotAimCheck(Trigger, @(mon.Obj)) then
end;
end;
- function monsShotTargetMonPlr (monidx: Integer; mon: TMonster): Boolean;
+ function monsShotTargetMonPlr (mon: TMonster): Boolean;
begin
result := false; // don't stop
if mon.Live and tr_ShotAimCheck(Trigger, @(mon.Obj)) then
end;
end;
- function monShotTargetPlrMon (monidx: Integer; mon: TMonster): Boolean;
+ function monShotTargetPlrMon (mon: TMonster): Boolean;
begin
result := false; // don't stop
if mon.Live and tr_ShotAimCheck(Trigger, @(mon.Obj)) then
a, b, i: Integer;
Affected: array of Integer;
- {function monsNear (monidx: Integer; mon: TMonster): Boolean;
+ {function monsNear (mon: TMonster): Boolean;
begin
result := false; // don't stop
if mon.Collide(gTriggers[a].X, gTriggers[a].Y, gTriggers[a].Width, gTriggers[a].Height) then
end;
end;}
- function monsNear (monidx: Integer; mon: TMonster): Boolean;
+ function monsNear (mon: TMonster): Boolean;
begin
result := false; // don't stop
gTriggers[a].ActivateUID := mon.UID;