v 0.11 CBT: прокачка, from_web, wipe_db

Задача на аналитику: 

Задача на разработку: 

Основная таблица в Google Spreadsheets

В таблице может быть удобнее смотреть изменения.

Смотреть лист res_movement, в блоке соответствующей версии.

Добавить

transaction_type = level_up надо добавить начисление титана при левелапе

event_idsoft_context_rmhard_context_rmsoft_paid_context_rmhard_paid_context_rmmovementtransaction_typetransactiontransaction_idresource_typeresourceresource_amountresource_sourceequip_params
abcd1234567200002000incomeleveluplevelup
hardhard50

abcd1234567200002000incomeleveluplevelup
softsoft2000

abcd1234567200002000incomeleveluplevelup
robot_detail{robot_detail_id}1
{"instance_id":"qwerty12","level":1,"rarity":"common}
abcd1234567200002000incomeleveluplevelup
weapon{weapon_id}1
{"instance_id":"qwerty12","level":1,"rarity":"common}
abcd1234567200002000incomeleveluplevelup
titan{titan_id}1

{"instance_id":"qwerty12","level":1,"rarity":"common}


transaction_type = upgrade_weapon -- трата ресурсов на прокачку оружия. В transaction  – json-массив, описывающий, какой именно предмет левелапаем

event_idsoft_context_rmhard_context_rmsoft_paid_context_rmhard_paid_context_rmmovementtransaction_typetransactiontransaction_idresource_typeresourceresource_amountresource_sourceequip_params
abcd1234567200002000outcomeupgrade_weapon

{"instance_id":"qwerty12","level":1,"rarity":"common}


alloyalloy10


transaction_type = upgrade_robot_part -- трата ресурсов на прокачку частей робота (торс, шасси, плечи и т.д.). В transaction  –j son-массив, описывающий, какой именно предмет левелапаем

event_idsoft_context_rmhard_context_rmsoft_paid_context_rmhard_paid_context_rmmovementtransaction_typetransactiontransaction_idresource_typeresourceresource_amountresource_sourceequip_params
abcd1234567200002000outcomeupgrade_robot_part

{"instance_id":"qwerty12","level":1,"rarity":"common}


alloyalloy10


transaction_type = upgrade_ability -- трата ресурсов на прокачку модулей (абилок и усилителей). В transaction  –json-массив, описывающий, какой именно предмет левелапаем

event_idsoft_context_rmhard_context_rmsoft_paid_context_rmhard_paid_context_rmmovementtransaction_typetransactiontransaction_idresource_typeresourceresource_amountresource_sourceequip_params
abcd1234567200002000outcomeupgrade_ability

{"instance_id":"qwerty12","level":1,"rarity":"common}


alloyalloy10


transaction_type = from_web -- начисление/списание предметов или ресурсов пользователем из веб-аккаунта (НРБ). Сейчас оно все идет в transaction_type = operator_api, а это неправильно

event_idsoft_context_rmhard_context_rmsoft_paid_context_rmhard_paid_context_rmmovementtransaction_typetransactiontransaction_idresource_typeresourceresource_amountresource_sourceequip_id
abcd12345670000incomefrom_webfrom_web{transaction_id}softsoft20000

abcd12345670000incomefrom_webfrom_web{transaction_id}hardhard200

abcd12345670000incomefrom_webfrom_web{transaction_id}robot_detail{robot_detail_id}1
{"instance_id":"qwerty12","level":1,"rarity":"common}
abcd12345670000incomefrom_webfrom_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_idsoft_context_rmhard_context_rmsoft_paid_context_rmhard_paid_context_rmmovementtransaction_typetransactiontransaction_idresource_typeresourceresource_amountresource_sourceequip_id
abcd12345670000incomeoperator_apioperator_api{transaction_id}softsoft20000

abcd12345670000incomeoperator_apioperator_api{transaction_id}hardhard200

abcd12345670000incomeoperator_apioperator_api{transaction_id}robot_detail{robot_detail_id}1
{"instance_id":"qwerty12","level":1,"rarity":"common}
abcd12345670000incomeoperator_apioperator_api{transaction_id}weapon{weapon_id}1
{"instance_id":"qwerty12","level":1,"rarity":"common}