Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_nv_sect(slot)
- local nv_obj = db.actor:item_in_slot(slot or 7)
- if not nv_obj then
- return
- end
- local nv_sect
- local ini = system_ini()
- local function get_nv_from_upgrade(sec,itm)
- nv_sect = alun_utils.read_from_ini(ini,sec,"nightvision_section","string")
- if (nv_sect) then
- return nv_sect
- end
- end
- nv_obj:iterate_installed_upgrades(get_nv_from_upgrade,nv_obj)
- return nv_sect or nil
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement