mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-15 08:25:09 +01:00
Compare commits
4 Commits
b2768e5af8
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f265ee291 | ||
|
|
2a297e693f | ||
|
|
531b3d2fa6 | ||
|
|
7459dede49 |
@@ -1,7 +1,7 @@
|
|||||||
# Docker for erupe
|
# Docker for erupe
|
||||||
|
|
||||||
## Building the container
|
## Building the container
|
||||||
Run the following from the route of the soruce folder. In this example we give it the tag of dev to seperate it from any other container verions.
|
Run the following from the route of the source folder. In this example we give it the tag of dev to seperate it from any other container verions.
|
||||||
```bash
|
```bash
|
||||||
docker build . -t erupe:dev
|
docker build . -t erupe:dev
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import (
|
|||||||
"erupe-ce/common/mhfitem"
|
"erupe-ce/common/mhfitem"
|
||||||
_config "erupe-ce/config"
|
_config "erupe-ce/config"
|
||||||
"fmt"
|
"fmt"
|
||||||
"math"
|
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
@@ -748,8 +747,7 @@ func handleMsgMhfOperateGuild(s *Session, p mhfpacket.MHFPacket) {
|
|||||||
case mhfpacket.OperateGuildChangePugi3:
|
case mhfpacket.OperateGuildChangePugi3:
|
||||||
handleChangePugi(s, uint8(pkt.Data1.ReadUint32()), guild, 3)
|
handleChangePugi(s, uint8(pkt.Data1.ReadUint32()), guild, 3)
|
||||||
case mhfpacket.OperateGuildUnlockOutfit:
|
case mhfpacket.OperateGuildUnlockOutfit:
|
||||||
// TODO: This doesn't implement blocking, if someone unlocked the same outfit at the same time
|
s.server.db.Exec(`UPDATE guilds SET pugi_outfits=$1 WHERE id=$2`, pkt.Data1.ReadUint32(), guild.ID)
|
||||||
s.server.db.Exec(`UPDATE guilds SET pugi_outfits=pugi_outfits+$1 WHERE id=$2`, int(math.Pow(float64(pkt.Data1.ReadUint32()), 2)), guild.ID)
|
|
||||||
case mhfpacket.OperateGuildDonateRoom:
|
case mhfpacket.OperateGuildDonateRoom:
|
||||||
quantity := uint16(pkt.Data1.ReadUint32())
|
quantity := uint16(pkt.Data1.ReadUint32())
|
||||||
bf.WriteBytes(handleDonateRP(s, quantity, guild, 2))
|
bf.WriteBytes(handleDonateRP(s, quantity, guild, 2))
|
||||||
|
|||||||
Reference in New Issue
Block a user