1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-19 00:17:56 +02:00
Commit Graph

16 Commits

Author SHA1 Message Date
86b832be67 Remove CPack::applyGs method in favor of GameStatePackVisitor class 2025-05-10 17:51:35 +03:00
283adc37d7 Unit stack rebalancing rework
- CStackInstance::count is now private with accessor methods
- CStackInstance::experience renamed to totalExperience and now stores
total stack experience (multiplied by stack size) to reduce rounding
errors
- CStackInstance::totalExperience is now private with accessors methods
- stack experience is now automatically reallocated on stack management
- Removed buggy BulkSmartRebalanceStacks pack, that mostly duplicates
BulkRebalanceStacks
- Renamed BulkSmartSplitStack to BulkSplitAndRebalanceStack to drop
unclear "smart" in name
- Reworked split-and-rebalance logic to correctly reallocate stack
experience
2025-05-01 18:18:30 +03:00
2fdf40e7a9 Remove connection pointer from CPack 2025-03-03 10:46:00 +00:00
679181c103 Implemented serialization of local player state in json form 2024-10-08 20:04:32 +00:00
a9327b3fa3 netpacks 2024-09-27 22:47:22 +02:00
327ff01471 Implemented explicitly visitable town buildings, e.g. hota mana vortex
Added flag `manualHeroVisit` flag to town building. If this flag is set,
then building will only be activated on click and will not give its
effect on hero recrutiment, hero visit, or new day.

This allows implementing changes to Mana Vortex from HotA
2024-09-03 16:31:07 +00:00
072af5bd6d basic support for bank 2024-08-04 15:44:57 +02:00
25dea7e364 Saving costume 2024-04-27 21:35:37 +03:00
b1f52eec41 ManageBackpackArtifacts 2024-03-07 18:16:22 +02:00
522cb571b3 Remove redundant virtual specifiers
`grep -nr virtual | grep -v googletest | grep override > ../redundant_virtual.txt`

```python
import os

with open("../redundant_virtual.txt") as f:
    for line in f:
        print()
        line: str = line.strip()
        print(line)
        tmp = line.split(":")
        file = tmp[0].strip()
        code = tmp[-1].strip()
        print(file)
        print(code)
        new_code = code.replace("virtual ", "", 1)
        # https://superuser.com/a/802490/578501
        command = f"export FIND='{code}' && export REPLACE='{new_code}' && ruby -p -i -e \"gsub(ENV['FIND'], ENV['REPLACE'])\" {file}"
        os.system(command)
```
2024-02-10 20:46:13 +01:00
b88a8da4e8 Split off some netpack structures into separate files 2023-10-23 13:59:15 +03:00
d7d435dcb7 Add game pause 2023-10-08 16:03:57 +02:00
c4bc6840ea Moved management of turn order into a new class 2023-08-24 23:34:33 +03:00
6297140bf5 Start of stabilization - battles now start correctly 2023-08-21 17:55:49 +03:00
ea7dd14d8b client is able to erase artifact 2023-04-08 00:41:55 +03:00
9f55666931 rework netpacks to avoid double typeinfo 2023-02-13 20:26:39 +02:00