/**
* Created by KellyCode on 1/16/2016.
*/
/**
* Diagnosis based on
* 1. http://www.carls-sims-4-guide.com/careers/gettowork/doctor/
* 2. http://sims-online.com/sims-4-doctor-career-guide-active/
* 3. my own testing
*
* I included in the html but commented out and didn't use the
* thought bubble symptoms because the sims use a ton of thought
* bubbles and I just didn't have time to test them and the symptoms they display
* otherwise seem like more than enough for a diagnosis.
*/
var ailments;
/*
* List of possible ailments listed in the order of how often they tend to occur
*/
ailments = {
'starry_eyes': {
'symptoms': ['dizziness', 'swirl_rash', 'swatting'],
'name': 'Starry Eyes'
},
'bloaty_head': {
'symptoms': ['head_steam', 'headache', 'spot_rash'],
'name': 'Bloaty Head'
},
'gas_and_giggles': {
'symptoms': ['stomach_ache', 'food_bubble', 'thermometer_bubble', 'giggling', 'stripes_rash', 'passing_gas_bubble', 'passing_gas'],
'name': 'Gas-and-Giggles'
},
'llama_flu': {
'symptoms': ['spot_rash', 'sneeze', 'cough', 'thermometer_bubble', 'fever', 'pepto_bubble'],
'name': 'Llama Flu'
},
'sweaty_shivers': {
'symptoms': ['spot_rash', 'itchiness', 'thermometer_bubble', 'fever'],
'name': 'Sweaty Shivers'
},
'itchy_plumbob': {
'symptoms': ['itchiness', 'giggling', 'stripes_rash', 'spot_rash'],
'name': 'Itchy Plumbob'
},
'burnin_belly': {
'symptoms': ['stomach_ache', 'pepto_bubble', 'fever'],
'name': 'Burnin\' Belly'
},
// pass_gas symptom added (cheek lift and waves hand in front of face)
'triple_threat': {
'symptoms': ['dizziness', 'sneeze', 'itchiness', 'cough', 'stripes_rash', 'spot_rash', 'swirl_rash', 'pepto_bubble', 'passing_gas'],
'name': 'Triple Threat'
}
};
var symptomsClearAll = function() {
// remove the checks from all boxes
$("input[name='symptoms']").removeAttr('checked');
// signal a change to the first one so the list gets updated
...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Get Fiddle Pages with PRO
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.