v 0.11 CBT: прокачка, from_web, wipe_db
Задача на аналитику:
Задача на разработку:
Основная таблица в Google Spreadsheets
В таблице может быть удобнее смотреть изменения.
Смотреть лист res_movement, в блоке соответствующей версии.
Добавить
transaction_type = level_up надо добавить начисление титана при левелапе
| event_id | soft_context_rm | hard_context_rm | soft_paid_context_rm | hard_paid_context_rm | movement | transaction_type | transaction | transaction_id | resource_type | resource | resource_amount | resource_source | equip_params |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| abcd1234567 | 20000 | 20 | 0 | 0 | income | levelup | levelup | hard | hard | 50 | |||
| abcd1234567 | 20000 | 20 | 0 | 0 | income | levelup | levelup | soft | soft | 2000 | |||
| abcd1234567 | 20000 | 20 | 0 | 0 | income | levelup | levelup | robot_detail | {robot_detail_id} | 1 | {"instance_id":"qwerty12","level":1,"rarity":"common} | ||
| abcd1234567 | 20000 | 20 | 0 | 0 | income | levelup | levelup | weapon | {weapon_id} | 1 | {"instance_id":"qwerty12","level":1,"rarity":"common} | ||
| abcd1234567 | 20000 | 20 | 0 | 0 | income | levelup | levelup | titan | {titan_id} | 1 | {"instance_id":"qwerty12","level":1,"rarity":"common} |
transaction_type = upgrade_weapon -- трата ресурсов на прокачку оружия. В transaction – json-массив, описывающий, какой именно предмет левелапаем
| event_id | soft_context_rm | hard_context_rm | soft_paid_context_rm | hard_paid_context_rm | movement | transaction_type | transaction | transaction_id | resource_type | resource | resource_amount | resource_source | equip_params |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| abcd1234567 | 20000 | 20 | 0 | 0 | outcome | upgrade_weapon | {"instance_id":"qwerty12","level":1,"rarity":"common} | alloy | alloy | 10 |
transaction_type = upgrade_robot_part -- трата ресурсов на прокачку частей робота (торс, шасси, плечи и т.д.). В transaction –j son-массив, описывающий, какой именно предмет левелапаем
| event_id | soft_context_rm | hard_context_rm | soft_paid_context_rm | hard_paid_context_rm | movement | transaction_type | transaction | transaction_id | resource_type | resource | resource_amount | resource_source | equip_params |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| abcd1234567 | 20000 | 20 | 0 | 0 | outcome | upgrade_robot_part | {"instance_id":"qwerty12","level":1,"rarity":"common} | alloy | alloy | 10 |
transaction_type = upgrade_ability -- трата ресурсов на прокачку модулей (абилок и усилителей). В transaction –json-массив, описывающий, какой именно предмет левелапаем
| event_id | soft_context_rm | hard_context_rm | soft_paid_context_rm | hard_paid_context_rm | movement | transaction_type | transaction | transaction_id | resource_type | resource | resource_amount | resource_source | equip_params |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| abcd1234567 | 20000 | 20 | 0 | 0 | outcome | upgrade_ability | {"instance_id":"qwerty12","level":1,"rarity":"common} | alloy | alloy | 10 |
transaction_type = from_web -- начисление/списание предметов или ресурсов пользователем из веб-аккаунта (НРБ). Сейчас оно все идет в transaction_type = operator_api, а это неправильно
| event_id | soft_context_rm | hard_context_rm | soft_paid_context_rm | hard_paid_context_rm | movement | transaction_type | transaction | transaction_id | resource_type | resource | resource_amount | resource_source | equip_id |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| abcd1234567 | 0 | 0 | 0 | 0 | income | from_web | from_web | {transaction_id} | soft | soft | 20000 | ||
| abcd1234567 | 0 | 0 | 0 | 0 | income | from_web | from_web | {transaction_id} | hard | hard | 200 | ||
| abcd1234567 | 0 | 0 | 0 | 0 | income | from_web | from_web | {transaction_id} | robot_detail | {robot_detail_id} | 1 | {"instance_id":"qwerty12","level":1,"rarity":"common} | |
| abcd1234567 | 0 | 0 | 0 | 0 | income | from_web | from_web | {transaction_id} | weapon | {weapon_id} | 1 | {"instance_id":"qwerty12","level":1,"rarity":"common} |
Изменить
в параметрах resource / resource_type:
- из названий ресурсов убрать лишнее. Например, сейчас DA_ModuleType_Weapon, хотя достаточно Weapon.
- заменить Craft на Alloy
Необходимо пересмотреть логику transaction_type = operator_api. В нем должны быть только действия оператора – начисление компенсации, списание лишнего и так далее. Покупки в паков на сайте и начисление их из инвентаря на сайте в игру – отдельное действие, transaction_type = from_web
| event_id | soft_context_rm | hard_context_rm | soft_paid_context_rm | hard_paid_context_rm | movement | transaction_type | transaction | transaction_id | resource_type | resource | resource_amount | resource_source | equip_id |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| abcd1234567 | 0 | 0 | 0 | 0 | income | operator_api | operator_api | {transaction_id} | soft | soft | 20000 | ||
| abcd1234567 | 0 | 0 | 0 | 0 | income | operator_api | operator_api | {transaction_id} | hard | hard | 200 | ||
| abcd1234567 | 0 | 0 | 0 | 0 | income | operator_api | operator_api | {transaction_id} | robot_detail | {robot_detail_id} | 1 | {"instance_id":"qwerty12","level":1,"rarity":"common} | |
| abcd1234567 | 0 | 0 | 0 | 0 | income | operator_api | operator_api | {transaction_id} | weapon | {weapon_id} | 1 | {"instance_id":"qwerty12","level":1,"rarity":"common} |