mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-22 13:48:24 +00:00
41 lines
1 KiB
JavaScript
41 lines
1 KiB
JavaScript
|
|
const blocks = {
|
||
|
|
'4gems': {
|
||
|
|
gems: 4,
|
||
|
|
iosProducts: ['com.habitrpg.ios.Habitica.4gems'],
|
||
|
|
androidProducts: ['com.habitrpg.android.habitica.iap.4gems'],
|
||
|
|
price: 99, // in cents, web only
|
||
|
|
},
|
||
|
|
'21gems': {
|
||
|
|
gems: 21,
|
||
|
|
iosProducts: [
|
||
|
|
'com.habitrpg.ios.Habitica.20gems',
|
||
|
|
'com.habitrpg.ios.Habitica.21gems',
|
||
|
|
],
|
||
|
|
androidProducts: [
|
||
|
|
'com.habitrpg.android.habitica.iap.20.gems',
|
||
|
|
'com.habitrpg.android.habitica.iap.21.gems',
|
||
|
|
],
|
||
|
|
price: 499, // in cents, web only
|
||
|
|
},
|
||
|
|
'42gems': {
|
||
|
|
gems: 42,
|
||
|
|
iosProducts: ['com.habitrpg.ios.Habitica.42gems'],
|
||
|
|
androidProducts: ['com.habitrpg.android.habitica.iap.42gems'],
|
||
|
|
price: 999, // in cents, web only
|
||
|
|
},
|
||
|
|
'84gems': {
|
||
|
|
gems: 84,
|
||
|
|
iosProducts: ['com.habitrpg.ios.Habitica.84gems'],
|
||
|
|
androidProducts: ['com.habitrpg.android.habitica.iap.84gems'],
|
||
|
|
price: 1999, // in cents, web only
|
||
|
|
},
|
||
|
|
};
|
||
|
|
|
||
|
|
// Add the block key to all blocks
|
||
|
|
Object.keys(blocks).forEach(blockKey => {
|
||
|
|
const block = blocks[blockKey];
|
||
|
|
block.key = blockKey;
|
||
|
|
});
|
||
|
|
|
||
|
|
export default blocks;
|