Skip to content

Instantly share code, notes, and snippets.

View RecoX's full-sized avatar
🎯
Focusing

Lucas Recoaro RecoX

🎯
Focusing
View GitHub Profile
@RecoX
RecoX / ao_percentage_modifier_exp_gold.py
Created September 7, 2024 02:12
Incrementar porcentualmente dificultad global
# Este script incrementa la dificultad del juego globalmente.
# Reduce la cantidad de oro y experiencia que da cada NPC
import os
import re
# Ruta al archivo NPCS.DAT
file_path = r'C:\Users\reco_\github-projects\ao20\Recursos\Dat\npcs.dat'
# Verificar si el archivo existe
import Ember from 'ember';
export default Ember.Controller.extend({
myService: Ember.inject.service('my-service'),
appName: 'Ember Twiddle',
init() {
this.get('myService');
}
});
import Ember from 'ember';
import file from '../file';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
variable: file.variable,
adToShow: Ember.computed("file.variable.{catType,listCategory,search}", function() {
if (file.variable.search == true) {
return "ad-search"
}else if (file.variable.listCategory) {
import Ember from 'ember';
import file from '../file';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
adToShow: Ember.computed("file.variable.{catType,listCategory,search}", function() {
if (file.variable.search == true) {
return "ad-search"
}else if (file.variablelistCategory) {
return "ad-listing-details";
import Ember from 'ember';
import file from '../file';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
adToShow: Ember.computed("file.variable.{catType,listCategory,search}", function() {
if (file.variable.search == true) {
return "ad-search"
}else if (file.variablelistCategory) {
return "ad-listing-details";