Commit a5f8d06
committed
equip_slot_by_name(): Remove duplicated list and catch "Body Armour"
Allows Lua API's `item.equip_type` to work with `l_item_equipped_at()` and `l_slot_is_available()`.
Previously didn't work for body armour.
`s_equip_slot_names` was only created to support this function afaict, and just shadows `enum equipment_slot`.
It's not used anywhere else and afaict was just tech debt.
Tested locally and everything works as before, just with the body armour improvement.1 parent 9201133 commit a5f8d06
2 files changed
+6
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1999 | 1999 | | |
2000 | 2000 | | |
2001 | 2001 | | |
2002 | | - | |
2003 | | - | |
2004 | | - | |
2005 | | - | |
2006 | | - | |
2007 | | - | |
2008 | 2002 | | |
2009 | 2003 | | |
2010 | 2004 | | |
2011 | | - | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
2012 | 2009 | | |
| 2010 | + | |
2013 | 2011 | | |
2014 | 2012 | | |
2015 | 2013 | | |
| |||
0 commit comments