07-04-2016, 10:36 AM
Yes! I recall you posting about this in IRC, the code looks alright but i do have some suggestions if you don't mind!
- You are updating the icon_state for the arrestIcon each Life() tick, I'd suggest checking for changes first, and then updating the icon_state only when there are changes to prevent appearance churn.
- I would suggest not using the colon operator to seek variables, you could easily replace that with a istype(variable, path) and then typecast.
- I would suggest changing the if(contrabandLevel) to if(contrabandLevel > 0)