scoreboard players set @s meteorite.damage 1
scoreboard players operation @s meteorite.health -= @s meteorite.damage
execute as @e[tag=meteorite.health,tag=!meteorite.passive.display] run function ws:work/misc/tier2/scientist/displayhealth
execute if score @s meteorite.common matches 1.. run scoreboard players add @a[team=scientist] scientist.capital 1
execute if score @s meteorite.common matches ..0 if score @s meteorite.uncommon matches 1.. if score @s meteorite.study.health matches ..250 run scoreboard players add @a[team=scientist] scientist.capital 2
execute if score @s meteorite.uncommon matches ..0 if score @s meteorite.rare matches 1.. if score @s meteorite.study.health matches ..100 run scoreboard players add @a[team=scientist] scientist.capital 8
function ws:work/misc/tier2/scientist/x
execute as @e[tag=scientist.counter,type=marker] on vehicle run function ws:work/misc/tier2/scientist/setcounttext with entity @s Passengers[].data
execute if score @s meteorite.health matches ..0 run function ws:work/misc/tier2/scientist/deactivatemeteorite