Commit Graph

239 Commits

Author SHA1 Message Date
1b440b828f
Fixed an issue where the number of weapons to be picked up after being thrown is 0, making it impossible to throw them again.
解决武器扔出后再捡起数量为0,导致无法再次扔出的问题。
2024-06-25 23:54:37 +08:00
dea683dbc5
No backpack nesting backpack.
禁止背包嵌套背包。
2024-06-25 22:11:19 +08:00
d587c4fc01
Separation NodeUtils InstantiatePackedScene method.
分离NodeUtils.InstantiatePackedScene方法。
2024-06-24 22:19:12 +08:00
b7f72c0456
Add item generator.
加入物品生成器。
2024-06-22 23:29:24 +08:00
18d9ccb8ab
Adjust the namespace.
调整命名空间。
2024-06-22 19:21:06 +08:00
53f830d5a6
Fixed an issue where items could not be thrown.
修复无法扔出物品的问题。
2024-06-21 22:55:31 +08:00
309a7b73d2
Remove item slots.
移除物品槽位。
2024-06-21 19:16:40 +08:00
5d6d42aa54
Adds the selected slot change event to the item container.
加入物品容器选中的槽位改变事件。
2024-06-20 00:02:32 +08:00
1e5b466c6f
Add whether the item is selected.Adjust the display logic of the backpack UI.
加入物品是否被选择。调整背包UI的显示逻辑。
2024-06-19 22:33:00 +08:00
a58ddeb039
Optimized drag and drop of items.
优化物品的拖拽。
2024-06-18 23:37:18 +08:00
c1f0e30671
Backpack Ui will not prevent clicking the button below anymore.
背包Ui不会阻止点击下面的按钮了。
2024-06-17 22:12:51 +08:00
8391396191
Level graphs migrated to yaml.
关卡图迁移到yaml。
2024-06-16 22:44:50 +08:00
Cold-Mint
7f55bd7d53
Merge pull request #7 from Web13234/loot_rebuild
Loot rebuild-Done
2024-06-16 20:22:58 +08:00
Cold-Mint
1a25325aa8
Merge branch 'master' into loot_rebuild 2024-06-16 20:22:25 +08:00
adeda2f786
Support display backpack page.
支持展示背包页面。
2024-06-16 20:18:44 +08:00
霧雨烨
3063680786 Add CanPutInPack property of IItem 2024-06-16 18:41:26 +08:00
霧雨烨
ced2618a5e Fixed a bug where the last item always looted in the same loot group
修复了同一个掉落组中总是掉落最后一项的bug
2024-06-16 18:35:00 +08:00
霧雨烨
703c19d09f fix a bug from a spelling mistake 2024-06-16 17:38:54 +08:00
霧雨烨
9c8d98da02 Merge branch 'refs/heads/master' into loot_rebuild
# Conflicts:
#	data/itemRegs/weapons.yaml
#	locals/Log.csv
#	prefab/weapons/staffOfTheUndead.tscn
#	scripts/character/CharacterTemplate.cs
#	scripts/item/ItemTypeManager.cs
#	scripts/item/weapon/WeaponTemplate.cs
#	scripts/loader/uiLoader/MainMenuLoader.cs
2024-06-16 17:32:29 +08:00
霧雨烨
2484bff229 Replaced a while(true); 2024-06-16 17:22:43 +08:00
霧雨烨
2d3fa08d0d Replaced all hardcoded stringName call.
移除了所有硬编码的StringName调用。
2024-06-16 17:09:40 +08:00
霧雨烨
40b52abb48 fixed bug, add return for CreateItem 2024-06-16 17:05:19 +08:00
霧雨烨
abf03c00a1 Preliminary rewrite of the loot system
初步重写掉落系统
2024-06-16 16:56:45 +08:00
db0a2fa1ee
Add PickAbleItem.Change item icon and backgrounds.
加入可拾捡物,更换物品图标和背景。
2024-06-16 15:28:16 +08:00
霧雨烨
edaa490b5b Updated WeaponTemplate's FiringInterval calculation so that it can be changed by FiringIntervalAsMillisecond even after instantiation.
更新了WeaponTemplate的FiringInterval计算方式以使该值即便在实例化之后也可通过FiringIntervalAsMillisecond更改
2024-06-15 17:16:41 +08:00
霧雨烨
197930f446 Support for optional custom parameters for registering item information from yaml
为从yaml注册物品信息提供了可选自定义参数的支持
2024-06-15 17:07:50 +08:00
霧雨烨
9a83fd1dd2 Creates a non-generic overload for NodeUtils.InstantiatePackedScene<T> and removes the Try-Catch block from the generic version
为NodeUtils.InstantiatePackedScene<T>创建非泛型重载,并移除泛型版本中的Try-Catch块
2024-06-15 17:07:02 +08:00
霧雨烨
4f2a6e8110 Split loops and extract functions 2024-06-15 14:30:22 +08:00
霧雨烨
efc289b3ad Add dotsettings file 2024-06-15 11:34:07 +08:00
霧雨烨
437d136421 Fixed a bug that caused some text of UI elements to be displayed incorrectly in the level editor. 2024-06-15 11:27:04 +08:00
霧雨烨
2661fd2735 Fixed the bug that GetItem returns null when the PacksackStack is not empty 2024-06-15 09:04:16 +08:00
4077d77b32
Add a contributor page.
添加贡献者页面。
2024-06-15 00:14:17 +08:00
霧雨烨
8ea04f00be Move RegisterFromFile to ItemTypeRegister.cs 2024-06-14 22:38:29 +08:00
30a0a6539f
Merge branch 'master' of github.com:Cold-Mint/Traveller 2024-06-14 19:33:21 +08:00
Cold-Mint
b3436dcb73
Merge pull request #6 from Web13234/master
Add Packsack Stack
2024-06-14 19:32:43 +08:00
a57416c7a9
Merge branch 'master' of github.com:Cold-Mint/Traveller 2024-06-14 19:26:49 +08:00
b018165e3c
Remove ambiguous comments.
移除有歧义的注释。
2024-06-14 19:25:48 +08:00
霧雨烨
bb44d77805 Ban Packsack nesting
禁止背包嵌套
2024-06-14 19:12:06 +08:00
霧雨烨
0f9e7d0283 Change the index parameter when adding a slot to ItemContainer to automatically get the latest index , add a test slot for Packsack item
更改ItemContainer添加槽位时的index参数为自动获取最新索引,为Packsack加入一个测试用槽位
2024-06-14 12:44:31 +08:00
霧雨烨
e5664f1553 Add PacksackStack for item Packsack
为Packsack物品添加PacksackStack
2024-06-14 12:22:44 +08:00
Cold-Mint
25f2e94ee6
Merge pull request #3 from Web13234/master
Register item types from .yaml files, and others
2024-06-14 07:34:29 +08:00
霧雨烨
edbafdcbda Add gitignore of *.Dotsettings & *.user 2024-06-14 00:47:23 +08:00
霧雨烨
6745324855 Fixed a bug that packsack scenarios did not have item ids set resulting in not being able to pick up the packs.
修复了packsack场景没有设置物品id导致无法捡起背包的bug
2024-06-14 00:44:41 +08:00
霧雨烨
b35fb50073 Subdivision of Misc and Action from UI translation files. 2024-06-14 00:43:31 +08:00
霧雨烨
0efb3d9abf Merge remote-tracking branch 'refs/remotes/upstream/master'
# Conflicts:
#	scripts/item/ItemTypeManager.cs
2024-06-14 00:23:45 +08:00
霧雨烨
e26db60790 Add the prefix "ui_" to the translation items for game UI.
Maybe did not cover all usage, sry for that.
2024-06-14 00:12:06 +08:00
霧雨烨
9558829d15 Add the prefix "log_" to the translation items for the log function. 2024-06-13 23:54:41 +08:00
霧雨烨
3c33b055ab Add the feature to load simple item type information from yaml files 2024-06-13 23:50:07 +08:00
b8b8e81d8f
Review the merged code to resolve an issue where the game is unresponsive after a player dies.
审查合并后的代码,解决玩家死亡后游戏无响应的问题。
2024-06-13 22:29:18 +08:00
霧雨烨
c735851cc3 Add NuGet lib YamlDotNet to project 2024-06-13 21:11:51 +08:00