|
4 | 4 | "type": "widget",
|
5 | 5 | "style": "phrase",
|
6 | 6 | "phrases": [
|
7 |
| - { "id": "bitten", "text": "bitten", "sym": "B", "color": "yellow" }, |
8 |
| - { "id": "infected", "text": "infected", "sym": "I", "color": "pink" }, |
9 |
| - { "id": "broken", "text": "broken", "sym": "%", "color": "magenta" }, |
10 |
| - { "id": "splinted", "text": "splinted", "sym": "=", "color": "light_gray" }, |
11 |
| - { "id": "bandaged", "text": "bandaged", "sym": "+", "color": "white" }, |
12 |
| - { "id": "disinfected", "text": "disinfected", "sym": "$", "color": "light_green" }, |
13 |
| - { "id": "bleeding", "text": "bleeding", "value": 0, "sym": "b", "color": "light_red" }, |
14 |
| - { "id": "bleeding", "text": "bleeding", "value": 11, "sym": "b", "color": "red" }, |
15 |
| - { "id": "bleeding", "text": "bleeding", "value": 21, "sym": "b", "color": "red_red" } |
| 7 | + { "id": "bitten", "text": "bitten", "sym": "B", "color": "yellow", "condition": { "u_has_effect": "bite" } }, |
| 8 | + { |
| 9 | + "id": "infected", |
| 10 | + "text": "infected", |
| 11 | + "sym": "I", |
| 12 | + "color": "pink", |
| 13 | + "condition": { "u_has_effect": "infected" } |
| 14 | + }, |
| 15 | + { |
| 16 | + "id": "broken", |
| 17 | + "text": "broken", |
| 18 | + "sym": "%", |
| 19 | + "color": "magenta", |
| 20 | + "condition": { "compare_int": [ { "u_val": "hp" }, "==", { "const": 0 } ] } |
| 21 | + }, |
| 22 | + { |
| 23 | + "id": "splinted", |
| 24 | + "text": "splinted", |
| 25 | + "sym": "=", |
| 26 | + "color": "light_gray", |
| 27 | + "condition": { "u_has_worn_with_flag": "SPLINT" } |
| 28 | + }, |
| 29 | + { |
| 30 | + "id": "bandaged", |
| 31 | + "text": "bandaged", |
| 32 | + "sym": "+", |
| 33 | + "color": "white", |
| 34 | + "condition": { "u_has_effect": "bandaged" } |
| 35 | + }, |
| 36 | + { |
| 37 | + "id": "disinfected", |
| 38 | + "text": "disinfected", |
| 39 | + "sym": "$", |
| 40 | + "color": "light_green", |
| 41 | + "condition": { "u_has_effect": "disinfected" } |
| 42 | + }, |
| 43 | + { |
| 44 | + "id": "bleeding", |
| 45 | + "text": "bleeding", |
| 46 | + "sym": "b", |
| 47 | + "color": "light_red", |
| 48 | + "condition": { |
| 49 | + "and": [ |
| 50 | + { "u_has_effect": "bleed", "intensity": 1 }, |
| 51 | + { "compare_int": [ { "u_val": "effect_intensity", "effect": "bleed" }, "<", { "const": 11 } ] } |
| 52 | + ] |
| 53 | + } |
| 54 | + }, |
| 55 | + { |
| 56 | + "id": "bleeding", |
| 57 | + "text": "bleeding", |
| 58 | + "sym": "b", |
| 59 | + "color": "red", |
| 60 | + "condition": { |
| 61 | + "and": [ |
| 62 | + { "u_has_effect": "bleed", "intensity": 11 }, |
| 63 | + { "compare_int": [ { "u_val": "effect_intensity", "effect": "bleed" }, "<", { "const": 21 } ] } |
| 64 | + ] |
| 65 | + } |
| 66 | + }, |
| 67 | + { |
| 68 | + "id": "bleeding", |
| 69 | + "text": "bleeding", |
| 70 | + "sym": "b", |
| 71 | + "color": "red_red", |
| 72 | + "condition": { "u_has_effect": "bleed", "intensity": 21 } |
| 73 | + } |
16 | 74 | ]
|
17 | 75 | },
|
18 | 76 | {
|
|
350 | 408 | "id": "test_status_torso_text",
|
351 | 409 | "type": "widget",
|
352 | 410 | "label": "TORSO STATUS",
|
353 |
| - "var": "bp_status_text", |
354 | 411 | "bodypart": "torso",
|
355 | 412 | "style": "text",
|
| 413 | + "default_phrase": { "text": "--" }, |
356 | 414 | "copy-from": "test_bp_status_indicator_template"
|
357 | 415 | },
|
358 | 416 | {
|
359 | 417 | "id": "test_status_left_arm_text",
|
360 | 418 | "type": "widget",
|
361 | 419 | "label": "LEFT ARM STATUS",
|
362 |
| - "var": "bp_status_text", |
363 | 420 | "bodypart": "arm_l",
|
364 | 421 | "style": "text",
|
| 422 | + "default_phrase": { "text": "--" }, |
365 | 423 | "copy-from": "test_bp_status_indicator_template"
|
366 | 424 | },
|
367 | 425 | {
|
|
0 commit comments