bridge
b60481c99c
fix death bug
2026-01-06 21:23:06 +08:00
bridge
3f980d4593
fix a bug
2026-01-06 20:42:53 +08:00
bridge
fa909e5a2a
update frontend
2026-01-06 01:08:51 +08:00
bridge
d25a84953b
refactor log
2026-01-05 23:58:32 +08:00
bridge
9f5ad04e92
refactor buy and sell
2026-01-05 23:52:38 +08:00
bridge
6873746d29
refactor buy and sell
2026-01-05 23:37:52 +08:00
bridge
4bff8e503b
add buy action
2026-01-05 23:16:58 +08:00
bridge
8d7e11b021
add elixir
2026-01-05 23:04:55 +08:00
bridge
2a68f352bc
add elixir
2026-01-05 22:26:16 +08:00
bridge
96c43c7cf5
Merge branch 'pr-10'
2026-01-05 20:46:43 +08:00
bridge
53459b9abe
fix: use {{}} instead of {}
2026-01-05 20:46:17 +08:00
4thfever
cd40c1f201
Merge pull request #9 from xzhseh/xzhseh/fix-dead-avatar-actions
...
fix: prevent actions on dead avatars
2026-01-05 20:32:56 +08:00
Zihao Xu
8c8e28264f
fix: handle null action_params from LLM response
...
LLM sometimes returns null instead of {} for action_params when an
action doesn't require parameters (e.g., ["Cultivate", null]). This
caused AttributeError when calling .items() on None.
Changes:
- Add defensive check in ai.py to convert null to {}
- Update prompt to explicitly require {} instead of null
2026-01-05 01:36:50 -08:00
Zihao Xu
8d985e0a2b
fix: prevent actions on dead avatars
...
- Add validate_target_avatar() to TargetingMixin for unified validation.
- Update Attack and Assassinate to use the new validation method.
- Add comment to MutualAction.can_start() explaining why it uses inline check.
- Add tests for dead target validation.
2026-01-04 19:29:35 -08:00
4thfever
8727a4f29a
Merge pull request #8 from xzhseh/xzhseh/fix-misleading-docstring
...
fix: correct misleading docstring in to_json_str_with_intent
2026-01-05 09:26:25 +08:00
Zihao Xu
8f99f3edb2
fix: correct misleading docstring in to_json_str_with_intent
2026-01-04 17:22:58 -08:00
bridge
77390fa647
fix pytest
2026-01-04 22:55:59 +08:00
bridge
b74014f9f2
add emotion
2026-01-04 22:49:20 +08:00
bridge
441f8c8e3a
refactor battle strength system
2026-01-04 22:28:13 +08:00
bridge
4fc74b1531
refactor battle strength system
2026-01-04 22:25:25 +08:00
bridge
276902bca0
refactor effect system
2026-01-04 22:03:05 +08:00
bridge
806e2c1262
refactor price system
2026-01-04 21:49:58 +08:00
bridge
5429e25b1e
update readme
2026-01-04 21:18:20 +08:00
bridge
c24c0819ce
add issue template
2026-01-04 21:15:42 +08:00
bridge
7320773bfe
update readme
2026-01-04 21:12:35 +08:00
bridge
9865bd170b
update readme
2026-01-04 21:06:10 +08:00
bridge
5ffeef897a
update readme
2026-01-04 21:05:03 +08:00
bridge
1ec3ec092b
update readme
2026-01-04 20:57:28 +08:00
4thfever
5633d113f8
Merge pull request #7 from xzhseh/xzhseh/feat-avatar-name-highlighting
...
feat: highlight avatar names with unique colors in event panel
2026-01-04 20:52:34 +08:00
4thfever
5de69b8e6f
Merge pull request #6 from xzhseh/xzhseh/add-pr-template
...
chore: add PR template
2026-01-04 20:51:57 +08:00
4thfever
21e56276cd
Merge pull request #5 from xzhseh/xzhseh/fix-fortune-master-relation
...
fix: correct master-apprentice relation direction in fortune event
2026-01-04 20:51:09 +08:00
4thfever
f0290af13a
Merge pull request #4 from xzhseh/xzhseh/fix-gender-display-chinese
...
fix: display gender in Chinese for avatar list API
2026-01-04 20:50:40 +08:00
4thfever
0b773b1726
Merge pull request #3 from xzhseh/xzhseh/fix-macos-npm-subprocess
...
fix: cross-platform subprocess compatibility for npm dev server
2026-01-04 20:49:59 +08:00
Zihao Xu
fafe1b5997
feat: highlight avatar names with unique colors in event panel
2026-01-04 02:07:47 -08:00
Zihao Xu
aca71bc2d4
chore: add PR template with Summary and Test Plan
2026-01-04 01:43:42 -08:00
Zihao Xu
354050e2b5
fix: correct master-apprentice relation in fortune event
...
The set_relation(from, to, rel) means "from views to as rel".
When avatar (student) takes master (teacher), avatar should view
master as MASTER, not APPRENTICE.
Before: avatar.set_relation(master, APPRENTICE) - wrong direction
After: avatar.set_relation(master, MASTER) - correct direction
2026-01-04 01:22:34 -08:00
Zihao Xu
233aea47d3
fix: display gender in Chinese for avatar list API
...
Use str(a.gender) instead of a.gender.value to return Chinese
"男"/"女" instead of English "male"/"female" in the avatar_list
endpoint, consistent with other APIs that use get_structured_info().
2026-01-04 00:59:24 -08:00
Zihao Xu
1a94117607
fix: cross-platform subprocess compatibility for npm dev server
...
On macOS/Linux, using shell=True with a list argument doesn't work as expected.
Only the first element is passed to the shell, causing npm to print help instead
of running the dev command.
Changes:
- Use shell=False + list on macOS/Linux, shell=True + string on Windows.
- Use terminate() instead of taskkill on macOS/Linux for cleanup.
2026-01-03 23:53:31 -08:00
bridge
b8de42aeb3
add badge
2026-01-04 00:58:51 +08:00
bridge
367b09fac3
add badge
2026-01-04 00:52:26 +08:00
bridge
f6ebe7c037
add badge
2026-01-04 00:49:30 +08:00
bridge
450d38e15a
update version
2026-01-04 00:01:22 +08:00
bridge
7245a89774
update readme
2026-01-03 23:59:44 +08:00
bridge
f9ad2dcd87
update readme
2026-01-03 23:59:30 +08:00
bridge
868e355e41
refactor cast
2026-01-03 23:54:47 +08:00
bridge
11cef02d74
add cast readme
2026-01-03 23:29:25 +08:00
bridge
ea0296f3e2
add cast readme
2026-01-03 23:28:55 +08:00
bridge
775d830ec3
add cast
2026-01-03 23:25:38 +08:00
bridge
6129e0f898
update choice helper
2026-01-03 22:30:33 +08:00
bridge
3a9a9fd6f0
add choice helper
2026-01-03 22:26:55 +08:00