Giter Site home page Giter Site logo

Comments (4)

TheGroxEmpire avatar TheGroxEmpire commented on September 14, 2024 2

I'm working on fixing weapon skills. It'll be overhauled completely.

from sod.

rosenrusinov avatar rosenrusinov commented on September 14, 2024

@kayla-glick We dont do Weapon Skill with Reg-ex because its much more involved. We do it with NewItemEffects in the common/sod code. You can find examples in there I think in the melee_items.go

from sod.

kayla-glick avatar kayla-glick commented on September 14, 2024

Aah ok so it's done on an item-by-item basis then?

from sod.

Foknetics avatar Foknetics commented on September 14, 2024

Started to implement this for Bonk-Maestro's Handguards and Power-Assisted Lifting Belt but realized the current ApplyWeaponSpecialization ref is not handling the difference between one hand and two hand. This is fine for the racials (because they cover both 1h and 2h), and fine for the dagger skill on the gnomer set (because there is no 2h daggers) but not usable for the two new items.

	// Bonk-Maestro's Handguards
	core.NewItemEffect(213278, func(agent core.Agent) {
		character := agent.GetCharacter()

		character.ApplyWeaponSpecialization(3, proto.WeaponType_WeaponTypeFist)
		character.ApplyWeaponSpecialization(3, proto.WeaponType_WeaponTypeMace)
	})
	
	// Power-Assisted Lifting Belt
	core.NewItemEffect(215380, func(agent core.Agent) {
		character := agent.GetCharacter()

		character.ApplyWeaponSpecialization(3, proto.WeaponType_WeaponTypeAxe)
		character.ApplyWeaponSpecialization(3, proto.WeaponType_WeaponTypeSword)
		character.ApplyWeaponSpecialization(3, proto.WeaponType_WeaponTypeMace)
	})

from sod.

Related Issues (20)

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.