private void setDeathDrain(QbItemArray ar, NotesMarker[] markers)
{
if (ar.Items.Count != 0 && ar.Items[0].QbItemType == QbItemType.ArrayStruct)
{
foreach (QbItemBase qib in ar.Items[0].Items)
{
QbItemStruct hdr = qib as QbItemStruct;
if (qib != null && hdr.ItemCount == 2 && hdr.Items[0].QbItemType == QbItemType.StructItemInteger && hdr.Items[1].QbItemType == QbItemType.StructItemQbKey)
{
if (((QbItemQbKey)hdr.Items[1]).Values[0] == QbKey.Create("boss_battle_begin_deathlick"))
((QbItemInteger)hdr.Items[0]).Values[0] = Math.Max((uint)this.Length - 11000, (uint)0); //10000 can be read from DeathLick in guitar_battle.qb
}
}
}
}