mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* tests for several descriptor loading related problems * fixed copy of cprops from descriptor to intrinsic items fixed container test * added shield npcdesc entry * fixed nodrop/exception loading from itemdesc * fixed compilation error * attackdelay should later also trigger creation of npc weapon, added test for it * intrinsic weapon gets created when AttackSpeed or AttackDelay is set. * added docs * changed doc entry * fixed typo
26 lines
500 B
Text
26 lines
500 B
Text
use uo;
|
|
use os;
|
|
|
|
include "testutil";
|
|
|
|
program testload()
|
|
return 1;
|
|
endprogram
|
|
|
|
exported function load_container()
|
|
var cnt:=CreateItemAtLocation(0,0,0,0x200001);
|
|
if (!cnt)
|
|
return ret_error("Failed to create container "+cnt);
|
|
endif
|
|
if (!cnt.no_drop_exception)
|
|
DestroyItem(cnt);
|
|
return ret_error("Failed to load nodropexception");
|
|
endif
|
|
if (!cnt.no_drop)
|
|
DestroyItem(cnt);
|
|
return ret_error("Failed to load nodrop");
|
|
endif
|
|
DestroyItem(cnt);
|
|
return 1;
|
|
endfunction
|
|
|