Guns in home defense are always going to be a double edged sword. A gun in your hand can deter theft and violence but once laid down it is a prime target for thieves.
In a recent case a man who was known to have guns was overpowered and tortured to extract the combination to his large gun safe. He was then killed.
If he he didn't have such a large collection of guns that were seen as valuable to thugs and/or easily sold on the black market... If it was not known he had such an attractive hoard... If he had not been tricked, forced or persuaded to allow the intruders in... If he had fled out the back instead of becoming a hostage to his battery of guns.... Things would have turned out differently.
Also there is the cautionary tale of a typical accidental shooting related by a police detective in Virginia: The man is in the military. He feels bad about leaving his wife behind and gets her a handgun for protection. He returns home and has a night out with the guys. He stays out drinking far later than he expected. Returning home he realizes he has left his keys inside. He could pound on the door but this would risk upsetting the wife. Remembering a window that is unlocked he proceeds to break in. The wife wakes to someone breaking in. Nothing makes as much noise as a drunk trying to be quiet. She reaches for the gun and bravely advances on the source of the noise. She sees in silhouette a large gibbering and incoherent man thrashing and struggling through a window. In fear of her life she shoots. Realizing what she has done only after the fact.
The police detective relates that this happens with husbands attempting to sneak in but also with teenagers who were thought to be safe in their bed.
Also be careful about assuming that your entirely safe shooting someone in your home.
It may be an open and shut case if the door has been obviously battered down, the guy still has a lethal weapon in his cold-dead hand, the person doing the shooting was up for beatification and the dead guy was on the FBI most-wanted list for home invasion and murder.
Anything less clear and you can expect problems.
The more likely case is that your family and neighbors have been in a feud for some time. The victim was heard saying that what he should do is to go to your house and settle things peacefully. When you answered the door he seemed calm and sober and he claimed to just want to talk. You unlocked the door and he pushed his way in. He is much larger than you are and he is clearly irrational and violent. While screaming that that he has a gun he says that he is 'going to settle it by killing your entire stinking family'. He keeps his hand in his pocket like he has a gun. You think he has one and in fear of your life and the children sleeping in the back bedroom you shoot him.
After the police arrive they note that the door is not damaged and he doesn't have a weapon. Blood taken from the corpse is lost so nobody knows if he was on drugs. There are no other witnesses.
There are people who testify that you had previously said that if you caught him on your property you would shoot him. The victim's family claims that he went to your house to 'bury the hatchet' and that you let him in and then ambushed him while he was seeking peace and unarmed. Of course you are presented as a scheming manipulative villain and the guy you shot as a saint.
I'm not trying to dissuade anyone from being armed, keeping guns or using one when necessary to protect yourself. But it isn't as simple as buying a gun and keeping it in your nightstand. And certainly a collection of thirty guns is not thirty times as good for home defense as having only one. Particularly if the neighbors know you have them.
It is also clear that just because your state has a 'castle' law your not foot-loose and fancy-free to casually shoot just anyone in your home. Even if your entirely in the right and under direct credible threat you can expect repercussions. Some people who have been cleared after a justified shooting have commented that considering the amount of time, money and legal and civil jeopardy they now wish they had just let the intruder run away.
I am advocating that people think these issues through.
If you keep firearms limit the types and numbers to the sort that is less likely to attract thieves. Limit who knows you have them. Practice information control. No showing off or bragging. On-line or otherwise. Having nothing significant to steal and/or nobody knowing about what you have is the simplest and most cost effective step.
Have a strong perimeter. This is the second most cost effective step. IMHO limiting temptation, information control and sturdy locks in stout construction combined and well used will get you most of the way there.
More esoterically: Plan on how to control your perimeter in difficult scenarios. Expect the tough calls. If someone shows up with your daughter and holds a gun to her head demanding to get into the house what do you do? In some cases there may be no easy answers.
Make sure you have protocols in place and well understood to avoid accidentally shooting people who are supposed to be there but who may be 'out of place'.
Careful familiarization with the weapon and its capabilities can help to keep a user calm and confident enough to fully identify the potential target before they shoot. Calm people in control of tools they feel confident with make better decisions than people who are operating out of fear and hiding behind a weapon they are unfamiliar with.
Even if your entirely in the right and in a 'castle' state having one or more witnesses, person/s or electronic documentation, can go a long way to helping the judge and jury see it your way.