1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00
vcmi/lib/bonuses
Alexander Wilms 678cacbd25 Remove more redundant virtual specifiers
`grep -nr "virtual " | grep -v googletest | grep " override" | grep -v overriden > ../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(":",2)
        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-13 15:21:30 +01:00
..
Bonus.cpp Slight simplification of bonus system node class 2024-01-19 13:54:49 +02:00
Bonus.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
BonusCustomTypes.cpp Merged accurate shot bonus into death stare bonus 2024-01-13 15:55:07 +02:00
BonusCustomTypes.h Merged accurate shot bonus into death stare bonus 2024-01-13 15:55:07 +02:00
BonusEnum.cpp Add UNTIL_OWN_ATTACK bonus duration and use for berserk 2023-12-19 19:52:40 +01:00
BonusEnum.h Merged accurate shot bonus into death stare bonus 2024-01-13 15:55:07 +02:00
BonusList.cpp MetaIdentifier now uses std::variant internally 2023-10-22 16:55:19 +03:00
BonusList.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
BonusParams.cpp Renamed new types for consistency with code style 2023-10-22 16:55:19 +03:00
BonusParams.h Fix error: 'auto' not allowed in non-static struct member 2024-01-17 14:49:28 +00:00
BonusSelector.cpp Removed most of non-const static fields in lib. Reduced header includes. 2024-01-19 13:55:22 +02:00
BonusSelector.h Removed most of non-const static fields in lib. Reduced header includes. 2024-01-19 13:55:22 +02:00
CBonusProxy.cpp vcmi: split bonus to enumerator and HeroBonus.h 2023-05-03 18:01:06 +03:00
CBonusProxy.h vcmi: rename HeroBonus.h to Bonus.h 2023-05-02 11:20:58 +03:00
CBonusSystemNode.cpp Code cleanup 2024-01-19 23:02:00 +02:00
CBonusSystemNode.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
IBonusBearer.cpp Slight simplification of bonus system node class 2024-01-19 13:54:49 +02:00
IBonusBearer.h Renamed new types for consistency with code style 2023-10-22 16:55:19 +03:00
Limiters.cpp Use toEntity/toXXX methods in Identifier instead VLC objects access 2023-11-03 16:03:29 +02:00
Limiters.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
Propagators.cpp vcmi: split CBonusSystemNode, BonusParams and prop 2023-05-02 00:54:53 +03:00
Propagators.h Refactoring of serialization versioning handling 2024-01-20 20:34:51 +02:00
Updaters.cpp Replace redundant types with auto for the lvalues of template factory functions for smart pointers 2024-01-17 12:50:00 +00:00
Updaters.h Remove more redundant virtual specifiers 2024-02-13 15:21:30 +01:00