Switch to edit mode.
Name(s): phobia_animals phobia_insects phobia_reptiles phobia_things1: "checks to see if player is afraid of something or perhaps it's parent species, and returns the total 'fear points'."
2: "for ex: phobia_insects() 'wasp'(well, it's phobic name) will return 1 if they're afraid of wasps specifically + 1 if they're just afraid of bugs."
3: phobL = this.("phobias_" + verb[8..$])
4: {targ, phobia} = args
5: prof = this:profile_get(targ)
6: species = {"animals", "insects", "reptiles"}
7: exfear = 0
8: if (w = verb[8..$] in species)
9: exphob = phobL[1]
10: name = this:get_name(exphob)
11: if (name in prof[3])
12: exfear = this:get_degree(exphob)
13: this:phobia_tell_fear(targ, this:get_degree(exphob), this:get_english(exphob))
14: endif
15: endif
16: fear = 0
17: if (phobia in prof[3])
18: exphob = this:phobias_match(phobia, "name", phobL)
19: fear = this:get_degree(exphob)
20: this:phobia_tell_fear(targ, this:get_degree(exphob), this:get_english(exphob))
21: for also in (this:get_phobias(exphob))
22: if ((exphob = this:phobias_match(also, "english")) in prof[3])
23: fear = fear + 1
24: this:phobia_tell_fear(targ, this:get_degree(exphob), this:get_english(exphob))
25: endif
26: endfor
27: endif
28: return fear + exfear
29: "Last modified by Eve (#2633) on Fri Sep 22 06:36:36 2000 MDT."