Page 1 of 1

New Core build for 2018-10-10

Posted: Tue Oct 09, 2018 11:15 pm
by Yukiko
You can download it here.

From the core-changes.txt:

Code: Select all

-- POL100 --
10-07-2018 Turley:
  Added:   array.sorted_insert(obj, sub_index:=0, reverse:=0)
           assumes an already sorted array and inserts given obj. sub_index and reverse parameter have to match the sorting criteria of the array.
10-06-2018 DevGIB:
  Added:   ConsumeAmmunition syshook to hook the cores check for ammunition consumption during combat. Hook should return 1 if combat is to go ahead and 0 if the weapon should not fire.

Re: New Core build for 2018-10-10

Posted: Wed Oct 10, 2018 3:10 pm
by guialtran
wonderful! :whip:

sort 1.000.000 itens 2880 milliseconds
sorted_insert, insert into an array with 1,000,000 elements is less than 10 milliseconds
:bacondance: Perfect :D

the ammo hook was perfect too!

thank you!
Gib Turley