<commit_before>// Costs, requirements, descriptions, and cooldowns for all player actions plus some related helper functions
define(['ash',
    'game/constants/GameConstants',
    'game/constants/CampConstants',
    'game/constants/ImprovementConstants',
],
function (Ash, GameConstants, CampConstants, ImprovementConstants) {

    var PlayerActionConstants = {

            requirements: {

                scout: {
                    vision: [30, -1],
                    sector: {
                        scouted: false,
                    },
                    busy: false,
                },

                scavenge: {
                    vision: [10, -1],
                },

                fight: {
                    busy: false,
                },

                clear_workshop: {
                    vision: [30, -1],
                    health: 70,
                    sector: {
                        scouted: true,
                    },
                },

                clear_waste: {
                    vision: [50, -1],
                    health: 80,
                    sector: {
                        scouted: true,
                        acessible_to_workers: true,
                    },
                },
                
                clear_debris: {
                    sector: {
                        scouted: true,
                        acessible_to_workers: true,
                    },
                },

                use_spring: {
                    vision: [10, -1],
                    sector: {
                        scouted: true,
                        spring: true,
                    },
                    bag: {
                        full: false,
                    },
                },

                fight_gang: {
                    health: 70,
                },
                
                nap: {
                    sector: {
                        hasCamp: false,
                    },
                    excursion: {
                        numNaps: [0, 1],
                    }
                },

                send_caravan: {
                    outgoingcaravan: {
                        available: true,
                        validSelection: true,
                    },
                    improvements: {
                        tradepost: [1, -1],
                    },
                },

                trade_with_caravan: {
                    incomingcaravan: {
                        validSelection: true,
                    }
                },

                move_sector_north: {
                    vision: [5, -1],
                    sector: {
                        blockerNorth: false,
                    },
                    busy: false,
                },

                move_sector_south: {
                    vision: [5, -1],
                    sector: {
                        blockerSouth: false,
                    },
                    busy: false,
                },

                move_sector_east: {
                    vision: [5, -1],
                    sector: {
                        blockerEast: false,
                    },
                    busy: false,
                },

                move_sector_west: {
                    vision: [5, -1],
                    sector: {
                        blockerWest: false,
                    },
                    busy: false,
                },

                move_sector_ne: {
                    vision: [5, -1],
                    sector: {
                        blockerNE: false,
                    },
                    busy: false,
                },

                move_sector_se: {
                    vision: [5 -1],
                    sector: {
                        blockerSE: false,
                    },
                    busy: false,
                },

                move_sector_sw: {
                    vision: [5, -1],
                    sector: {
                        blockerSW: false,
                    },
                    busy: false,
                },

                move_sector_nw: {
                    vision: [5, -1],
                    sector: {
                        blockerNW: false,
                    },
                    busy: false,
                },

                move_level_up: {
                    vision: [25, -1],
                    sector: {
                        passageUp: true,
                    },<commit_msg>[bugfix] ensure it's not possible to move while in camp<commit_after>// Costs, requirements, descriptions, and cooldowns for all player actions plus some related helper functions
define(['ash',
    'game/constants/GameConstants',
    'game/constants/CampConstants',
    'game/constants/ImprovementConstants',
],
function (Ash, GameConstants, CampConstants, ImprovementConstants) {

    var PlayerActionConstants = {

            requirements: {

                scout: {
                    vision: [30, -1],
                    sector: {
                        scouted: false,
                    },
                    busy: false,
                },

                scavenge: {
                    vision: [10, -1],
                },

                fight: {
                    busy: false,
                },

                clear_workshop: {
                    vision: [30, -1],
                    health: 70,
                    sector: {
                        scouted: true,
                    },
                },

                clear_waste: {
                    vision: [50, -1],
                    health: 80,
                    sector: {
                        scouted: true,
                        acessible_to_workers: true,
                    },
                },
                
                clear_debris: {
                    sector: {
                        scouted: true,
                        acessible_to_workers: true,
                    },
                },

                use_spring: {
                    vision: [10, -1],
                    sector: {
                        scouted: true,
                        spring: true,
                    },
                    bag: {
                        full: false,
                    },
                },

                fight_gang: {
                    health: 70,
                },
                
                nap: {
                    sector: {
                        hasCamp: false,
                    },
                    excursion: {
                        numNaps: [0, 1],
                    }
                },

                send_caravan: {
                    outgoingcaravan: {
                        available: true,
                        validSelection: true,
                    },
                    improvements: {
                        tradepost: [1, -1],
                    },
                },

                trade_with_caravan: {
                    incomingcaravan: {
                        validSelection: true,
                    }
                },

                move_sector_north: {
                    vision: [5, -1],
                    sector: {
                        blockerNorth: false,
                    },
                    busy: false,
                    inCamp: false,
                },

                move_sector_south: {
                    vision: [5, -1],
                    sector: {
                        blockerSouth: false,
                    },
                    busy: false,
                    inCamp: false,
                },

                move_sector_east: {
                    vision: [5, -1],
                    sector: {
                        blockerEast: false,
                    },
                    busy: false,
                    inCamp: false,
                },

                move_sector_west: {
                    vision: [5, -1],
                    sector: {
                        blockerWest: false,
                    },
                    busy: false,
                    inCamp: false,
                },

                move_sector_ne: {
                    vision: [5, -1],
                    sector: {
                        blockerNE: false,
                    },
                    busy: false,
                    inCamp: false,
                },

                move_sector_se: {
                    vision: [5 -1],
                    sector: {
                        blockerSE: false,
                    },
                    busy: false,
                    inCamp: false,
                },

                move_sector_sw: {
                    vision: [5, -1],
                    sector: {
                        blockerSW: false,
                    },
                    busy: false,
                    inCamp: false,
                },

                move_sector_nw: {
                    vision: [5, -1],
                    sector: {
                        blockerNW: false,
                    },
                    busy: false,
                    inCamp: false,
                },

                move_level_up: {
                    vision: [25, -1],
                    sector: {
                        passageUp: true,
                    },
{'fraction_non_alphanumeric': 0.0791220556745182, 'fraction_numerical': 0.009421841541755889, 'mean_word_length': 0.553725881570193, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1778559', 'n_tokens_mistral': 2235, 'n_tokens_neox': 1900, 'n_words': 395}