--- title: Missions ---
This page contains **HEAVY SPOILERS**! Read at your own risk. You can hide this warning and enable spoilers by checking the spoilers checkbox in the top-right corner.

### Campaigns

<%= out = "" @items.find_all('/cmpn/**/*.md').each do |c| #*** if c[:missions].length() > 0 missions = "

##### Missions:

" missions += "

" c[:missions].each do |m| missions += "
- #{m[:name]}
" end missions += "

" missions += "
" else missions = "" end if c[:events].length() > 0 events = "

##### Events:

" events += "

" c[:events].each do |e| events += "
- #{e[:name]}
" end events += "

" events += "
" else events = "" end if c[:npcs].length()+c[:spob].length()+c[:ssys].length() > 0 spob = "
" c[:npcs].each do |n| spob += npc_card( npc_get(n) ) end c[:ssys].each do |sys| spob += ssys_card( ssys_get(sys) ) end c[:spob].each do |spb| spob += spob_card( spob_get(spb) ) end spob += "
" else spob = "" end out += <<-EOF

##### #{c[:name]}

#{c[:missions].length()} Missions #{c[:events].length()} Events

# #{c[:name]}

#{c[:missions].length()} Missions #{c[:events].length()} Events
#{c.compiled_content(snapshot: :raw)}

### Related Items

#{missions} #{events} #{spob}
EOF end out %>

### Missions

<%= modal_addAll() %>