Coder Social home page Coder Social logo

textchanger.mod's Introduction

place your cardtypesmsg.txt file in .../Mojang/Scrolls/game/  and have fun
example is on githup-source (old data, containing only cards till noaidi release)
you can even lower each of the data from (example of gravelock elder):

{"id":1,"name":"Gravelock Elder","description":"Other Gravelock creatures you control gain +1 Attack and +1 Health while Gravelock Elder is in play.","flavor":"Gravelocks look up to their elders... literally.","subTypesStr":"Gravelock","kind":"CREATURE","rarity":2,"hp":5,"ap":3,"ac":2,"costDecay":0,"costOrder":0,"costGrowth":0,"costEnergy":5,"rulesList":["AttackForwardRanged","Move","GravelockStrengthModifier"],"cardImage":479,"animationPreviewImage":445,"animationPreviewInfo":"54.75,50.5,0.25","animationBundle":98,"abilities":[{"id":"Move","name":"Move","description":"Move unit to adjacent tile","cost":{"DECAY":0,"ORDER":0,"ENERGY":0,"GROWTH":0}}],"targetArea":"FORWARD","passiveRules":[{"displayName":"Ranged attack","description":"This unit does not take damage from attacking Spiky units."}],"available":true,"sound":"impact_gravelock_physical"}

to

{"id":1,"name":"Gravelock Elder","description":"Other Gravelock creatures you control gain +1 Attack and +1 Health while Gravelock Elder is in play.","flavor":"Gravelocks look up to their elders... literally."}


note: 	the begin of the textfile : 	{"cardTypes":[... 
	and the end:    		...],"msg":"CardTypes"}
	are necessary!

if you wanna only change gravelock elder then the cardtypemsg.txt could only contain the following line. (other data is keept from the original server-message):

{"cardTypes":[{"id":1,"name":"Gravelock Elder","description":"it does whatever a gravelock elder does!","flavor":"Look at the description, baby!"}],"msg":"CardTypes"}

have fun
noHero

textchanger.mod's People

Stargazers

JaeHeon Jeong avatar

Watchers

James Cloos avatar JaeHeon Jeong avatar  avatar

textchanger.mod's Issues

Don't refeed the message, but modify the incoming one.

Use BeforeInvoke to modify the incoming Message instead of calling reset() and feed(). (Make sure you only work with the CardTypesMessage, because overloaded methods are broken/ignored in Summoner)

public override void BeforeInvoke (InvocationInfo info) {
    if (info.arguments[0] is CardTypesMessage) {
        CardTypesMessage cardTypeMessage = (CardTypesMessage)info.arguments [0];
        foreach(CardType cardType in cardTypeMessage.cardTypes) {
            if (cardType.flavor.Length > 0) {
                cardType.flavor = "It works";
            }
        }
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.