Not just your state, but your county and city/town. For example, regardless of the laws, if you get into that kind of situation and you have a Second Amendment police/DA, there’s a damn good chance they’ll say “have a nice day” and that would be it.
But live under Blue government, you may well be perfectly in your rights to defend yourself, but that doesn’t mean that the cops/DA won’t make a ‘mistake’ and cost you a huge amount of money in attorney’s fees.
Here in Washington State you can use deadly force in defense of yourself and/or your property, or in defense of someone else and/or their property wherever you might legally be (home, business, park, street, etc.).
But liberal District Attorneys are trying to make a name for themselves, especially if it was defense of “only” property.
AFAIK, cities and Counties cannot make gun laws more stringent than the State laws.