OK, that's clear regarding projects. But I still a doubt about items/personnel/craft. Let's say a Hangar is occupied by 2 craft, it is hit and damaged reducing it's capacity to 1. What happens to the excess craft? It is destroyed or can it be transferred to a base with spare capacity? My question also applies to personnel/items when living quarters/stores are hit.
Only one craft can occupy a hangar.
If the hangar "allows" more than one craft, additional craft are stored in the base, NOT in any particular hangar.
So if the capacity is reduced to 1, the single craft that occupied the hangar before will be saved... and other craft will also be saved, or better said not affected, because they are not in any hangar.
As for other things:
1/ Destroying hangar:
a/ If it has a "main" craft:
- deassigns any soldiers assigned to the main craft
- deequips all items assigned to the main craft (not counting craft weapons I think)
- destroys the main craft (and its weapons I think)
b/ If it doesn't have a main craft:
- destroys craft production for this hangar... potentially for the base too (until base limit is reached), if you allow craft that are not in a hangar
- destroys craft transfers for this hangar... potentially for the base too (until base limit is reached), if you allow craft that are not in a hangar
2/ Destroying psi lab:
- just removes people from training
3/ Destroying labs:
- just removes scientists from projects... does NOT cancel projects
4/ Destroying workshops:
- removes engineers from projects
- cancels projects if necessary too
5/ Destroying stores:
- does NOT destroy items in the base...
- ... but, destroys excess transfers/purchases for this base
6/ Destroying living quarters:
- does NOT kill people at the base...
- ... but, KILLS scientists/engineers in transfer/hired... does NOT kill soldiers in transfer/hired
If a facility has more than one of these attributes... all effects are applied simultaneously in OXCE.
In OpenXcom, only the first relevant effect (in the above order) would be applied (which is a bug IMO, that's why we changed it).
PS:
7/ Destroying training facility (gym)... doesn't do anything yet... I could swear I added it some time ago... but I can't find it... I'll add it too... and it will just remove people from training same as psi labs