X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fmapdef%2Fmapdef.txt;h=71e712f138c1fe05c01325febf0098730ef8d13d;hb=7259c7b9df1bf0d4e7296bb3f7227f754a52df48;hp=db3a64fe7de8c6d1b20d16f2c3a58ab9ee103385;hpb=2b04301f4303668096c37c21e06af70930f55b7f;p=d2df-sdl.git diff --git a/src/mapdef/mapdef.txt b/src/mapdef/mapdef.txt index db3a64f..71e712f 100644 --- a/src/mapdef/mapdef.txt +++ b/src/mapdef/mapdef.txt @@ -15,6 +15,7 @@ // `as txy` will use `tX` and `tY` for points // `as wh` will use `Width` and `Height` for size // `as twh` will use `tWidth` and `tHeight` for size +// `as monsterid`: special hack for triggers: monster record number+1 in binary (so 0 means "none") //////////////////////////////////////////////////////////////////////////////// @@ -398,7 +399,7 @@ TriggerData for (TRIGGER_PRESS, TRIGGER_ON, TRIGGER_OFF, TRIGGER_ONOFF) { Size is "size" type size offset 8 as twh; Wait is "wait" type ushort offset 12; Count is "count" type ushort offset 14; - MonsterID is "monsterid" type int offset 16 monster; + MonsterID is "monsterid" type int offset 16 monster as monsterid; ExtRandom is "extrandom" type bool offset 20; }