Code: Select all
inventory_info.damage_types = 4
inventory_info.dtype.psychic = 3
If you provide a suitable image, DSB will automatically draw it, when you invoke it with code like:
Code: Select all
dsb_damage_popup(ppos, inventory_info.dtype.psychic, damage_amount)
You can do this for however many new damage types you want to add, for example:
Code: Select all
inventory_info.damage_types = 5
inventory_info.dtype.psychic = 3
inventory_info.dtype.something_else = 4


However, you can also use a purely custom renderer, if you'd like. Take a look at h_damage_popup in base/hooks.lua for details.