File tree Expand file tree Collapse file tree 2 files changed +50
-14
lines changed Expand file tree Collapse file tree 2 files changed +50
-14
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,17 @@ ideologies = [
3
3
"name" : "Anarcho-Communism" ,
4
4
"stats" : {
5
5
"econ" : 100 ,
6
- "dipl" : 80 ,
6
+ "dipl" : 50 ,
7
7
"govt" : 100 ,
8
+ "scty" : 90
9
+ }
10
+ } ,
11
+ {
12
+ "name" : "Libertarian Communism" ,
13
+ "stats" : {
14
+ "econ" : 100 ,
15
+ "dipl" : 70 ,
16
+ "govt" : 80 ,
8
17
"scty" : 80
9
18
}
10
19
} ,
@@ -98,11 +107,20 @@ ideologies = [
98
107
"scty" : 80
99
108
}
100
109
} ,
110
+ {
111
+ "name" : "Revolutionary Socialism" ,
112
+ "stats" : {
113
+ "econ" : 80 ,
114
+ "dipl" : 20 ,
115
+ "govt" : 50 ,
116
+ "scty" : 70
117
+ }
118
+ } ,
101
119
{
102
120
"name" : "Libertarian Socialism" ,
103
121
"stats" : {
104
122
"econ" : 80 ,
105
- "dipl" : 70 ,
123
+ "dipl" : 80 ,
106
124
"govt" : 80 ,
107
125
"scty" : 80
108
126
}
@@ -260,20 +278,38 @@ ideologies = [
260
278
"scty" : 30
261
279
}
262
280
} ,
281
+ {
282
+ "name" : "Reactionary" ,
283
+ "stats" : {
284
+ "econ" : 40 ,
285
+ "dipl" : 40 ,
286
+ "govt" : 40 ,
287
+ "scty" : 10
288
+ }
289
+ } ,
290
+ {
291
+ "name" : "Social Libertarianism" ,
292
+ "stats" : {
293
+ "econ" : 60 ,
294
+ "dipl" : 70 ,
295
+ "govt" : 80 ,
296
+ "scty" : 70
297
+ }
298
+ } ,
263
299
{
264
300
"name" : "Libertarianism" ,
265
301
"stats" : {
266
302
"econ" : 40 ,
267
303
"dipl" : 60 ,
268
- "govt" : 70 ,
269
- "scty" : 50
304
+ "govt" : 80 ,
305
+ "scty" : 60
270
306
}
271
307
} ,
272
308
{
273
309
"name" : "Anarcho-Egoism" ,
274
310
"stats" : {
275
311
"econ" : 40 ,
276
- "dipl" : 60 ,
312
+ "dipl" : 50 ,
277
313
"govt" : 100 ,
278
314
"scty" : 50
279
315
}
@@ -327,8 +363,8 @@ ideologies = [
327
363
"name" : "Neo-Liberalism" ,
328
364
"stats" : {
329
365
"econ" : 30 ,
330
- "dipl" : 40 ,
331
- "govt" : 40 ,
366
+ "dipl" : 30 ,
367
+ "govt" : 50 ,
332
368
"scty" : 60
333
369
}
334
370
} ,
@@ -354,7 +390,7 @@ ideologies = [
354
390
"name" : "Neo-Conservatism" ,
355
391
"stats" : {
356
392
"econ" : 20 ,
357
- "dipl" : 10 ,
393
+ "dipl" : 20 ,
358
394
"govt" : 40 ,
359
395
"scty" : 20
360
396
}
@@ -373,7 +409,7 @@ ideologies = [
373
409
"stats" : {
374
410
"econ" : 20 ,
375
411
"dipl" : 50 ,
376
- "govt" : 70 ,
412
+ "govt" : 80 ,
377
413
"scty" : 60
378
414
}
379
415
} ,
Original file line number Diff line number Diff line change @@ -112,13 +112,13 @@ <h2>Closest Match: <span class="weight-300" id="ideology-label"></span></h2>
112
112
document . getElementById ( "society-label" ) . innerHTML = setLabel ( progress , sctyArray )
113
113
114
114
ideology = ""
115
- ideodist = 30000
115
+ ideodist = Infinity
116
116
for ( var i = 0 ; i < ideologies . length ; i ++ ) {
117
117
dist = 0
118
- dist += Math . pow ( ideologies [ i ] . stats . econ - equality , 2 )
119
- dist += Math . pow ( ideologies [ i ] . stats . govt - liberty , 2 )
120
- dist += Math . pow ( ideologies [ i ] . stats . dipl - peace , 2 ) / 3
121
- dist += Math . pow ( ideologies [ i ] . stats . scty - progress , 2 ) / 2
118
+ dist += Math . pow ( Math . abs ( ideologies [ i ] . stats . econ - equality ) , 2 )
119
+ dist += Math . pow ( Math . abs ( ideologies [ i ] . stats . govt - liberty ) , 2 )
120
+ dist += Math . pow ( Math . abs ( ideologies [ i ] . stats . dipl - peace ) , 1.73856063 )
121
+ dist += Math . pow ( Math . abs ( ideologies [ i ] . stats . scty - progress ) , 1.73856063 )
122
122
if ( dist < ideodist ) {
123
123
ideology = ideologies [ i ] . name
124
124
ideodist = dist
You can’t perform that action at this time.
0 commit comments