polserver/testsuite/pol/testpkgs/item/test_load.src
turleypol ec9cd8026b
Descriptorbugs (#406)
* 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
2021-08-03 14:58:50 +02:00

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