Uncurse take_damage and document obj_defense.dm (#45146)
Uncurse take_damage and document obj_defense.dm (#45146)

The original take_damage proc defined vars for no good reason had some 
duplicate code and wasn't very readable.

If you are wondering why it calls obj_break every time it takes damage 
while below integrity_failure, that's the way it used to be. Most (if 
not all) stuff that takes advantage of this functionality already 
accounts for this.
PKPenguin321/-tg-station,Profakos/tgstation,Cruix/-tg-station,kingofkosmos/-tg-station,kingofkosmos/-tg-station,AnturK/-tg-station,TheVekter/-tg-station,HippieStation/HippieStation,infinitystation/-tg-station,MicroWorldwide/SS13-TG-station,Razharas/-tg-station,MicroWorldwide/SS13-TG-station,nicbn/tgstation,anconfuzedrock/tgstation,optimumtact/-tg-station,Cruix/-tg-station,Arianya/tgstation,tgstation/tgstation,MrStonedOne/tgstation,nicbn/tgstation,tgstation/tgstation,XDTM/tgstation,anconfuzedrock/tgstation,Cyberboss/tgstation,AnturK/-tg-station,WJohn/-tg-station,AnturK/-tg-station,JStheguy/tgstation,WJohn/-tg-station,MrStonedOne/tgstation,coiax/-tg-station,WJohn/-tg-station,tgstation/-tg-station,TheVekter/-tg-station,Poojawa/tgstation-fork,Arianya/tgstation,JJRcop/tgstation,JJRcop/tgstation,Razharas/-tg-station,JJRcop/tgstation,nicbn/tgstation,optimumtact/-tg-station,tgstation/-tg-station,ShizCalev/tgstation,JStheguy/tgstation,AnturK/-tg-station,Jordie0608/tgstation,Jordie0608/tgstation,HippieStation/HippieStation,infinitystation/-tg-station,ShizCalev/tgstation,Jordie0608/tgstation,JJRcop/tgstation,coiax/-tg-station,XDTM/tgstation,TheVekter/-tg-station,Mark9013100/tgstation-m9,Thunder12345/-tg-station,MrStonedOne/tgstation,Thunder12345/-tg-station,XDTM/tgstation,HippieStation/HippieStation,CPTANT/-tg-station,Fox-McCloud/-tg-station,anconfuzedrock/tgstation,nicbn/tgstation,Mark9013100/tgstation-m9,WJohn/-tg-station,optimumtact/-tg-station,erwgd/-tg-station,Mark9013100/tgstation-m9,Cyberboss/tgstation,TalkingCactus/tgstation,MicroWorldwide/SS13-TG-station,Bawhoppen/-tg-station,CPTANT/-tg-station,Razharas/-tg-station,Cruix/-tg-station,Arianya/tgstation,Fox-McCloud/-tg-station,Poojawa/tgstation-fork,JJRcop/tgstation,Bawhoppen/-tg-station,tgstation/tgstation,JStheguy/tgstation,JJRcop/tgstation,Niknakflak/-tg-station,Niknakflak/-tg-station,erwgd/-tg-station,Mark9013100/tgstation-m9,anconfuzedrock/tgstation,infinitystation/-tg-station,Niknakflak/-tg-station,PKPenguin321/-tg-station,CPTANT/-tg-station,Cruix/-tg-station,kingofkosmos/-tg-station,Fox-McCloud/-tg-station,kingofkosmos/-tg-station,tgstation/tgstation,MrStonedOne/tgstation,HippieStation/HippieStation,tgstation/tgstation,Mark9013100/tgstation-m9,Cruix/-tg-station,Mark9013100/tgstation-m9,Cyberboss/tgstation,MicroWorldwide/SS13-TG-station,Mark9013100/tgstation-m9,tgstation/-tg-station,Poojawa/tgstation-fork,SamuelRowe/-tg-station,Razharas/-tg-station,anconfuzedrock/tgstation,CPTANT/-tg-station,Poojawa/tgstation-fork,GunHog/-tg-station,infinitystation/-tg-station,nicbn/tgstation,HippieStation/HippieStation,TalkingCactus/tgstation,coiax/-tg-station,AnturK/-tg-station,ShizCalev/tgstation,nicbn/tgstation,erwgd/-tg-station,Bawhoppen/-tg-station,CPTANT/-tg-station,infinitystation/-tg-station,QualityVan/tgstation,Razharas/-tg-station,QualityVan/tgstation,TheVekter/-tg-station,Bawhoppen/-tg-station,coiax/-tg-station,WJohn/-tg-station,tgstation/-tg-station,PKPenguin321/-tg-station,JStheguy/tgstation,MicroWorldwide/SS13-TG-station,HippieStation/HippieStation,Jordie0608/tgstation,Thunder12345/-tg-station,HippieStation/HippieStation,Arianya/tgstation,ShizCalev/tgstation,PKPenguin321/-tg-station,GunHog/-tg-station,Fox-McCloud/-tg-station,Arianya/tgstation,coiax/-tg-station,AnturK/-tg-station,coiax/-tg-station,Fox-McCloud/-tg-station,Arianya/tgstation,WJohn/-tg-station,Profakos/tgstation,MicroWorldwide/SS13-TG-station,JStheguy/tgstation,AnturK/-tg-station,Thunder12345/-tg-station,CPTANT/-tg-station,optimumtact/-tg-station,Bawhoppen/-tg-station,QualityVan/tgstation,anconfuzedrock/tgstation,MicroWorldwide/SS13-TG-station,PKPenguin321/-tg-station,optimumtact/-tg-station,anconfuzedrock/tgstation,SamuelRowe/-tg-station,Profakos/tgstation,MrStonedOne/tgstation,QualityVan/tgstation,optimumtact/-tg-station,QualityVan/tgstation,GunHog/-tg-station,PKPenguin321/-tg-station,MicroWorldwide/SS13-TG-station,MrStonedOne/tgstation,Cruix/-tg-station,XDTM/tgstation,JJRcop/tgstation,Cyberboss/tgstation,Fox-McCloud/-tg-station,optimumtact/-tg-station,Thunder12345/-tg-station,Jordie0608/tgstation,Arianya/tgstation,Cruix/-tg-station,SamuelRowe/-tg-station,Razharas/-tg-station,JStheguy/tgstation,nicbn/tgstation,QualityVan/tgstation,tgstation/tgstation,ShizCalev/tgstation,Cyberboss/tgstation,kingofkosmos/-tg-station,Razharas/-tg-station,WJohn/-tg-station,XDTM/tgstation,Profakos/tgstation,GunHog/-tg-station,TheVekter/-tg-station,infinitystation/-tg-station,Poojawa/tgstation-fork,Poojawa/tgstation-fork,XDTM/tgstation,Fox-McCloud/-tg-station,CPTANT/-tg-station,Jordie0608/tgstation,Poojawa/tgstation-fork,TalkingCactus/tgstation,GunHog/-tg-station,infinitystation/-tg-station,MrStonedOne/tgstation,ShizCalev/tgstation,Cyberboss/tgstation,Bawhoppen/-tg-station,Niknakflak/-tg-station,Bawhoppen/-tg-station,kingofkosmos/-tg-station,tgstation/tgstation,infinitystation/-tg-station,Razharas/-tg-station,TalkingCactus/tgstation,ShizCalev/tgstation,Cruix/-tg-station,Jordie0608/tgstation,coiax/-tg-station,TheVekter/-tg-station,Niknakflak/-tg-station,Niknakflak/-tg-station,Niknakflak/-tg-station,MrStonedOne/tgstation,Profakos/tgstation,ShizCalev/tgstation,Thunder12345/-tg-station,GunHog/-tg-station,XDTM/tgstation,Jordie0608/tgstation,PKPenguin321/-tg-station,Cyberboss/tgstation,QualityVan/tgstation,PKPenguin321/-tg-station,Profakos/tgstation,JStheguy/tgstation,CPTANT/-tg-station,Thunder12345/-tg-station,Profakos/tgstation,GunHog/-tg-station,tgstation/tgstation,TheVekter/-tg-station,SamuelRowe/-tg-station,kingofkosmos/-tg-station,Bawhoppen/-tg-station