Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. function get_nv_sect(slot)
  2. local nv_obj = db.actor:item_in_slot(slot or 7)
  3.  
  4. if not nv_obj then
  5. return
  6. end
  7.  
  8. local nv_sect
  9. local ini = system_ini()
  10. local function get_nv_from_upgrade(sec,itm)
  11. local section = alun_utils.read_from_ini(ini,sec,"section","string")
  12. if (section) then
  13. nv_sect = alun_utils.read_from_ini(ini,section,"nightvision_sect","string")
  14. return
  15. end
  16. end
  17. nv_obj:iterate_installed_upgrades(get_nv_from_upgrade,nv_obj)
  18. return nv_sect
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement