Did some refactoring
Did some refactoring

Used slotObj instead of slot name to check if slot is a weapon
Removed redundant else branch

Xeio/tswcalc,Xeio/tswcalc,joakibj/tswcalc,lucidmotifs/tswcalc,lucidmotifs/tswcalc,joakibj/tswcalc